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

Base TypeExporter class. More...

Inheritance diagram for com.sparsity.sparksee.io.TypeExporter:
Inheritance graph

Public Member Functions

void SetRowWriter (com.sparsity.sparksee.io.RowWriter rw)
 Sets the output data destination.
 
void SetFrequency (int freq)
 Sets the frequency of listener notification.
 
void Run () throws System.IO.IOException, System.ApplicationException
 Runs export process.
 
void Register (com.sparsity.sparksee.io.TypeExporterListener tel)
 Registers a new listener.
 
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 SetType (int type)
 Sets the type to be exported.
 
void SetAttributes (com.sparsity.sparksee.gdb.AttributeList attrs)
 Sets the list of Attributes.
 

Detailed Description

Base TypeExporter class.

Base class to export a node or edge type from a graph using a RowWriter.

TypeExporterListener can be registered to receive information about the progress of the export process by means of TypeExporterEvent. The default frequency of notification to listeners is 100000.

By default no header row is created.

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

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

Member Function Documentation

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

Registers a new listener.

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

Runs export process.

Exceptions
System.IO.IOExceptionIf bad things happen writing to the RowWriter.
System.ApplicationExceptionnull
void com.sparsity.sparksee.io.TypeExporter.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.TypeExporter.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.TypeExporter.SetGraph ( com.sparsity.sparksee.gdb.Graph  graph)

Sets the graph that will be exported.

Parameters
graph[in] Graph.
void com.sparsity.sparksee.io.TypeExporter.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.TypeExporter.SetRowWriter ( com.sparsity.sparksee.io.RowWriter  rw)

Sets the output data destination.

Parameters
rw[in] Input RowWriter.
void com.sparsity.sparksee.io.TypeExporter.SetType ( int  type)

Sets the type to be exported.

Parameters
type[in] Type identifier.