SparkseeNet  6.0.2
Public Member Functions | List of all members
com.sparsity.sparksee.io.EdgeTypeExporter Class Reference

EdgeTypeExporter class. More...

Inheritance diagram for com.sparsity.sparksee.io.EdgeTypeExporter:
Inheritance graph
Collaboration diagram for com.sparsity.sparksee.io.EdgeTypeExporter:
Collaboration graph

Public Member Functions

void SetTailAttribute (int attr)
 Sets the attribute that will be used to get the value to be dumped for the tail of the edge.
 
void SetFrequency (int freq)
 Sets the frequency of listener notification.
 
void SetHeadAttribute (int attr)
 Sets the attribute that will be used to get the value to be dumped for the head of the edge.
 
void SetType (int type)
 Sets the type to be exported.
 
void SetTailPosition (int pos)
 Sets the position (index column) of the tail attribute in the exported data.
 
 EdgeTypeExporter (com.sparsity.sparksee.io.RowWriter rowWriter, com.sparsity.sparksee.gdb.Graph graph, int type, com.sparsity.sparksee.gdb.AttributeList attrs, int hPos, int tPos, int hAttr, int tAttr)
 Creates a new instance.
 
void SetRowWriter (com.sparsity.sparksee.io.RowWriter rw)
 Sets the output data destination.
 
void Register (com.sparsity.sparksee.io.TypeExporterListener tel)
 Registers a new listener.
 
void Run () throws System.IO.IOException, System.ApplicationException
 See the TypeExporter class Run method.
 
 EdgeTypeExporter ()
 Creates a new instance.
 
void SetGraph (com.sparsity.sparksee.gdb.Graph graph)
 Sets the graph that will be exported.
 
void SetHeader (bool header)
 Sets the presence of a header row.
 
void SetHeadPosition (int pos)
 Sets the position (index column) of the head attribute in the exported data.
 
void SetAttributes (com.sparsity.sparksee.gdb.AttributeList attrs)
 Sets the list of Attributes.
 

Detailed Description

EdgeTypeExporter class.

Specific TypeExporter implementation for edge types.

Check out the 'Data export' section in the SPARKSEE User Manual for more details on this.

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

Constructor & Destructor Documentation

com.sparsity.sparksee.io.EdgeTypeExporter.EdgeTypeExporter ( com.sparsity.sparksee.io.RowWriter  rowWriter,
com.sparsity.sparksee.gdb.Graph  graph,
int  type,
com.sparsity.sparksee.gdb.AttributeList  attrs,
int  hPos,
int  tPos,
int  hAttr,
int  tAttr 
)

Creates a new instance.

Parameters
rowWriter[in] Output RowWriter.
graph[in] Graph.
type[in] Type identifier.
attrs[in] Attribute identifiers to be exported.
hPos[in] The position (index column) for the head value.
tPos[in] The position (index column) for the tail value.
hAttr[in] The attribute identifier to get the value to be dumped for the head.
tAttr[in] The attribute identifier to get the value to be dumped for the tail.

Member Function Documentation

void com.sparsity.sparksee.io.EdgeTypeExporter.Register ( com.sparsity.sparksee.io.TypeExporterListener  tel)

Registers a new listener.

Parameters
tel[in] TypeExporterListener to be registered.
void com.sparsity.sparksee.io.EdgeTypeExporter.Run ( ) throws System.IO.IOException, System.ApplicationException

See the TypeExporter class Run method.

Exceptions
System.IO.IOExceptionnull
System.ApplicationExceptionnull
void com.sparsity.sparksee.io.EdgeTypeExporter.SetAttributes ( com.sparsity.sparksee.gdb.AttributeList  attrs)

Sets the list of Attributes.

Parameters
attrs[in] Attribute identifiers to be exported
void com.sparsity.sparksee.io.EdgeTypeExporter.SetFrequency ( int  freq)

Sets the frequency of listener notification.

Parameters
freq[in] Frequency in number of rows managed to notify progress to all listeners
void com.sparsity.sparksee.io.EdgeTypeExporter.SetGraph ( com.sparsity.sparksee.gdb.Graph  graph)

Sets the graph that will be exported.

Parameters
graph[in] Graph.
void com.sparsity.sparksee.io.EdgeTypeExporter.SetHeadAttribute ( int  attr)

Sets the attribute that will be used to get the value to be dumped for the head of the edge.

Parameters
attr[in] Head Attribute
void com.sparsity.sparksee.io.EdgeTypeExporter.SetHeader ( bool  header)

Sets the presence of a header row.

Parameters
header[in] If TRUE, a header row is dumped with the name of the attributes.
void com.sparsity.sparksee.io.EdgeTypeExporter.SetHeadPosition ( int  pos)

Sets the position (index column) of the head attribute in the exported data.

Parameters
pos[in] Head position
void com.sparsity.sparksee.io.EdgeTypeExporter.SetRowWriter ( com.sparsity.sparksee.io.RowWriter  rw)

Sets the output data destination.

Parameters
rw[in] Input RowWriter.
void com.sparsity.sparksee.io.EdgeTypeExporter.SetTailAttribute ( int  attr)

Sets the attribute that will be used to get the value to be dumped for the tail of the edge.

Parameters
attr[in] Tail Attribute
void com.sparsity.sparksee.io.EdgeTypeExporter.SetTailPosition ( int  pos)

Sets the position (index column) of the tail attribute in the exported data.

Parameters
pos[in] Tail position
void com.sparsity.sparksee.io.EdgeTypeExporter.SetType ( int  type)

Sets the type to be exported.

Parameters
type[in] Type identifier.