public class DefaultExport extends ExportManager
It uses the default values from GraphExport, NodeExport and EdgeExport to export all node and edge types.
Constructor and Description |
---|
DefaultExport()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enableType(int type)
Default implementation of the ExportManager class method EnableType.
|
boolean |
getEdge(long edge,
EdgeExport edgeExport)
Default implementation of the ExportManager class method GetEdge.
|
boolean |
getEdgeType(int type,
EdgeExport edgeExport)
Default implementation of the ExportManager class method GetEdgeType.
|
boolean |
getGraph(GraphExport graphExport)
Default implementation of the ExportManager class method GetGraph.
|
boolean |
getNode(long node,
NodeExport nodeExport)
Default implementation of the ExportManager class method GetNode.
|
boolean |
getNodeType(int type,
NodeExport nodeExport)
Default implementation of the ExportManager class method GetNodeType.
|
void |
prepare(Graph graph)
Default implementation of the ExportManager class method Prepare.
|
void |
release()
Default implementation of the ExportManager class method Release.
|
public void prepare(Graph graph)
prepare
in class ExportManager
graph
- nullpublic boolean getGraph(GraphExport graphExport)
This sets the default GraphExport values and "Graph" as the label.
getGraph
in class ExportManager
graphExport
- [out] The GraphExport that will store the information.public void release()
release
in class ExportManager
public boolean getNodeType(int type, NodeExport nodeExport)
This sets de default NodeExport values.
getNodeType
in class ExportManager
type
- [in] A node type.nodeExport
- [out] The NodeExport that will store the information.public boolean enableType(int type)
This enables all node and edge types to be exported.
enableType
in class ExportManager
type
- [in] The type to enable.public boolean getNode(long node, NodeExport nodeExport)
This sets the default NodeExport values and sets the OID as the label.
getNode
in class ExportManager
node
- [in] A node.nodeExport
- [out] The NodeExport that will store the information.public boolean getEdge(long edge, EdgeExport edgeExport)
This sets the default EdgeExport values and sets the OID as the label. Also, it exports the edge as directed just if the edge is directed.
getEdge
in class ExportManager
edge
- [in] An edge.edgeExport
- [out] The EdgeExport that will store the information.public boolean getEdgeType(int type, EdgeExport edgeExport)
This sets de default EdgeExport values.
getEdgeType
in class ExportManager
type
- [in] An edge type.edgeExport
- [out] The EdgeExport that will store the information.