com.sparsity.sparksee.gdb
Class DefaultExport

java.lang.Object
  extended by com.sparsity.sparksee.gdb.ExportManager
      extended by com.sparsity.sparksee.gdb.DefaultExport

public class DefaultExport
extends ExportManager

Default implementation for ExportManager class.

It uses the default values from GraphExport, NodeExport and EdgeExport to export all node and edge types.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Constructor Summary
DefaultExport()
          Creates a new instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExport

public DefaultExport()
Creates a new instance.

Method Detail

enableType

public boolean enableType(int type)
Default implementation of the ExportManager class method EnableType.

This enables all node and edge types to be exported.

Overrides:
enableType in class ExportManager
Parameters:
type - null
Returns:
TRUE.

getEdge

public boolean getEdge(long edge,
                       EdgeExport edgeExport)
Default implementation of the ExportManager class method GetEdge.

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.

Overrides:
getEdge in class ExportManager
Parameters:
edge - null
edgeExport - null
Returns:
TRUE.

getGraph

public boolean getGraph(GraphExport graphExport)
Default implementation of the ExportManager class method GetGraph.

This sets the default GraphExport values and "Graph" as the label.

Overrides:
getGraph in class ExportManager
Parameters:
graphExport - null
Returns:
TRUE.

getEdgeType

public boolean getEdgeType(int type,
                           EdgeExport edgeExport)
Default implementation of the ExportManager class method GetEdgeType.

This sets de default EdgeExport values.

Overrides:
getEdgeType in class ExportManager
Parameters:
type - null
edgeExport - null
Returns:
TRUE.

getNodeType

public boolean getNodeType(int type,
                           NodeExport nodeExport)
Default implementation of the ExportManager class method GetNodeType.

This sets de default NodeExport values.

Overrides:
getNodeType in class ExportManager
Parameters:
type - null
nodeExport - null
Returns:
TRUE.

release

public void release()
Default implementation of the ExportManager class method Release.

Overrides:
release in class ExportManager

getNode

public boolean getNode(long node,
                       NodeExport nodeExport)
Default implementation of the ExportManager class method GetNode.

This sets the default NodeExport values and sets the OID as the label.

Overrides:
getNode in class ExportManager
Parameters:
node - null
nodeExport - null
Returns:
TRUE.

prepare

public void prepare(Graph graph)
Default implementation of the ExportManager class method Prepare.

Overrides:
prepare in class ExportManager
Parameters:
graph - null