DexNet 4.7.0
Public Member Functions
com::sparsity::dex::io::EdgeTypeExporter Class Reference

EdgeTypeExporter class. More...

Inheritance diagram for com::sparsity::dex::io::EdgeTypeExporter:
Inheritance graph
Collaboration diagram for com::sparsity::dex::io::EdgeTypeExporter:
Collaboration graph

List of all members.

Public Member Functions

 EdgeTypeExporter (com.sparsity.dex.io.RowWriter rw, com.sparsity.dex.gdb.Graph g, int t, com.sparsity.dex.gdb.AttributeList attrs, int hPos, int tPos, int hAttr, int tAttr)
 Creates a new instance.
void SetTailPosition (int pos)
 Sets the position (index column) of the tail attribute in the exported data.
void SetAttributes (com.sparsity.dex.gdb.AttributeList attrs)
 Sets the list of Attributes.
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 SetRowWriter (com.sparsity.dex.io.RowWriter rw)
 Sets the output data destination.
void Register (com.sparsity.dex.io.TypeExporterListener tel)
 Registers a new listener.
void Run () throws System.IO.IOException, System.ApplicationException
 See TypeExporter::Run.
 EdgeTypeExporter ()
 Creates a new instance.
void SetHeader (bool header)
 Sets the presence of a header row.
void SetFrequency (int freq)
 Sets the frequency of listener notification.
void SetGraph (com.sparsity.dex.gdb.Graph g)
 Sets the graph that will be exported.
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 SetType (int t)
 Sets the type to be exported.
void SetHeadPosition (int pos)
 Sets the position (index column) of the head attribute in the exported data.

Detailed Description

EdgeTypeExporter class.

Specific TypeExporter implementation for edge types.

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

Constructor & Destructor Documentation

com::sparsity::dex::io::EdgeTypeExporter::EdgeTypeExporter ( com.sparsity.dex.io.RowWriter  rw,
com.sparsity.dex.gdb.Graph  g,
int  t,
com.sparsity.dex.gdb.AttributeList  attrs,
int  hPos,
int  tPos,
int  hAttr,
int  tAttr 
)

Creates a new instance.

Parameters:
rw[in] Output RowWriter.
g[in] Graph.
t[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::dex::io::EdgeTypeExporter::Register ( com.sparsity.dex.io.TypeExporterListener  tel)

Registers a new listener.

Parameters:
tel[in] TypeExporterListener to be registered.

Reimplemented from com::sparsity::dex::io::TypeExporter.

void com::sparsity::dex::io::EdgeTypeExporter::Run ( ) throws System.IO.IOException, System.ApplicationException

See TypeExporter::Run.

Exceptions:
System.IO.IOExceptionnull
System.ApplicationExceptionnull

Reimplemented from com::sparsity::dex::io::TypeExporter.

void com::sparsity::dex::io::EdgeTypeExporter::SetAttributes ( com.sparsity.dex.gdb.AttributeList  attrs)

Sets the list of Attributes.

Parameters:
attrs[in] Attribute identifiers to be exported

Reimplemented from com::sparsity::dex::io::TypeExporter.

void com::sparsity::dex::io::EdgeTypeExporter::SetFrequency ( int  freq)

Sets the frequency of listener notification.

freq [in] Frequency in number of rows managed to notify progress to all listeners

Parameters:
freqnull

Reimplemented from com::sparsity::dex::io::TypeExporter.

void com::sparsity::dex::io::EdgeTypeExporter::SetGraph ( com.sparsity.dex.gdb.Graph  g)

Sets the graph that will be exported.

Parameters:
g[in] Graph.

Reimplemented from com::sparsity::dex::io::TypeExporter.

void com::sparsity::dex::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::dex::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.

Reimplemented from com::sparsity::dex::io::TypeExporter.

void com::sparsity::dex::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::dex::io::EdgeTypeExporter::SetRowWriter ( com.sparsity.dex.io.RowWriter  rw)

Sets the output data destination.

rr[in] Input RowWriter.

Parameters:
rwnull

Reimplemented from com::sparsity::dex::io::TypeExporter.

void com::sparsity::dex::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::dex::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::dex::io::EdgeTypeExporter::SetType ( int  t)

Sets the type to be exported.

Parameters:
t[in] Type identifier.

Reimplemented from com::sparsity::dex::io::TypeExporter.