public class ExportManager
extends java.lang.Object
This is an interface which must be implemented by the user. While the export proces, a call for each node or edge type and node or edge object is done to get how to export that element.
It is possible to export a Graph to a diferent fortmats. Nowadays, available formats are defined in the ExportType enum.
Modifier and Type | Method and Description |
---|---|
boolean |
enableType(int type)
Gets whether a node or edge type must be exported or not.
|
boolean |
getEdge(long edge,
EdgeExport edgeExport)
Gets the edge export definition for the given edge.
|
boolean |
getEdgeType(int type,
EdgeExport edgeExport)
Gets the default node export definition for the given edge type.
|
boolean |
getGraph(GraphExport graphExport)
Gets the graph export definition.
|
boolean |
getNode(long node,
NodeExport nodeExport)
Gets the node export definition for the given node.
|
boolean |
getNodeType(int type,
NodeExport nodeExport)
Gets the default node export definition for the given node type.
|
void |
prepare(Graph graph)
Prepares the graph for the export process.
|
void |
release()
Ends the export process.
|
public boolean getEdge(long edge, EdgeExport edgeExport)
edge
- Edge identifier.edgeExport
- [out] The EdgeExport which defines how to export given edge.public void release()
It is called once after the export process.
public boolean getGraph(GraphExport graphExport)
graphExport
- [out] The GraphExport which defines how to export the graph.public boolean getNode(long node, NodeExport nodeExport)
node
- Node identifier.nodeExport
- [out] The NodeExport which defines how to export given node.public boolean getNodeType(int type, NodeExport nodeExport)
GetNode has a higher priority than this function. That is, only if GetNode returns FALSE, the NodeExport of this function will be used.
type
- [in] Node type identifier.nodeExport
- [out] The NodeExport which defines how to export the nodes of the given type.public boolean enableType(int type)
type
- Node or edge type identifier.public void prepare(Graph graph)
It is called once before the export process.
graph
- Graph to be exported.public boolean getEdgeType(int type, EdgeExport edgeExport)
GetEdge has a higher priority than this function. That is, only if GetEdge returns FALSE, the EdgeExport of this function will be used.
type
- [in] Edge type identifier.edgeExport
- [out] The EdgeExport which defines how to export the edges of the given type.