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

NodeTypeLoader class. More...

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

List of all members.

Public Member Functions

void SetLogOff ()
 Truns off all the error reporting.
void SetLogError (System.String path) throws System.IO.IOException
 Sets a log error file.
void SetAttributes (com.sparsity.dex.gdb.AttributeList attrs)
 Sets the list of Attributes.
void RunTwoPhases () throws System.IO.IOException, System.ApplicationException
 See TypeLoader::RunTwoPhases.
void SetRowReader (com.sparsity.dex.io.RowReader rr)
 Sets the input data source.
 NodeTypeLoader ()
 Creates a new instance.
void RunNPhases (int partitions) throws System.IO.IOException, System.ApplicationException
 See TypeLoader::RunNPhases.
 NodeTypeLoader (com.sparsity.dex.io.RowReader rr, com.sparsity.dex.gdb.Graph g, int t, com.sparsity.dex.gdb.AttributeList attrs, com.sparsity.dex.gdb.Int32List attrsPos)
 Creates a new instance.
void Register (com.sparsity.dex.io.TypeLoaderListener tel)
 Registers a new listener.
void SetLocale (System.String localeStr)
 Sets the locale that will be used to read the data.
void Run () throws System.IO.IOException, System.ApplicationException
 See TypeLoader::Run.
void SetAttributePositions (com.sparsity.dex.gdb.Int32List attrsPos)
 Sets the list of attribute positions.
void SetFrequency (int freq)
 Sets the frequency of listener notification.
void SetGraph (com.sparsity.dex.gdb.Graph g)
 Sets the graph where the data will be loaded.
void SetTimestampFormat (System.String timestampFormat)
 Sets a specific timestamp format.
void SetType (int t)
 Sets the type to be loaded.

Detailed Description

NodeTypeLoader class.

Specific TypeLoader implementation for node types.

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

Constructor & Destructor Documentation

com::sparsity::dex::io::NodeTypeLoader::NodeTypeLoader ( com.sparsity.dex.io.RowReader  rr,
com.sparsity.dex.gdb.Graph  g,
int  t,
com.sparsity.dex.gdb.AttributeList  attrs,
com.sparsity.dex.gdb.Int32List  attrsPos 
)

Creates a new instance.

Parameters:
rr[in] Input RowReader.
g[in] Graph.
t[in] Type identifier.
attrs[in] Attribute identifiers to be loaded.
attrsPos[in] Attribute positions (column index >=0).

Member Function Documentation

void com::sparsity::dex::io::NodeTypeLoader::Register ( com.sparsity.dex.io.TypeLoaderListener  tel)

Registers a new listener.

Parameters:
telTypeLoaderListener to be registered.

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

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

See TypeLoader::Run.

Exceptions:
System.IO.IOExceptionnull
System.ApplicationExceptionnull

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

void com::sparsity::dex::io::NodeTypeLoader::RunNPhases ( int  partitions) throws System.IO.IOException, System.ApplicationException

See TypeLoader::RunNPhases.

Parameters:
partitionsnull
Exceptions:
System.IO.IOExceptionnull
System.ApplicationExceptionnull

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

void com::sparsity::dex::io::NodeTypeLoader::RunTwoPhases ( ) throws System.IO.IOException, System.ApplicationException

See TypeLoader::RunTwoPhases.

Exceptions:
System.IO.IOExceptionnull
System.ApplicationExceptionnull

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

void com::sparsity::dex::io::NodeTypeLoader::SetAttributePositions ( com.sparsity.dex.gdb.Int32List  attrsPos)

Sets the list of attribute positions.

attrsPos [in] Attribute positions (column index >=0).

Parameters:
attrsPosnull

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

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

Sets the list of Attributes.

Parameters:
attrs[in] Attribute identifiers to be loaded

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

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

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

Sets the graph where the data will be loaded.

Parameters:
g[in] Graph.

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

void com::sparsity::dex::io::NodeTypeLoader::SetLocale ( System.String  localeStr)

Sets the locale that will be used to read the data.

It should match the locale used in the rowreader.

Parameters:
localeStr[in] The locale string for the read data. See CSVReader.

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

void com::sparsity::dex::io::NodeTypeLoader::SetLogError ( System.String  path) throws System.IO.IOException

Sets a log error file.

By default errors are thrown as a exception and the load process ends. If a log file is set, errors are logged there and the load process does not stop.

Parameters:
pathnull
Exceptions:
System.IO.IOExceptionIf bad things happen opening the file.

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

void com::sparsity::dex::io::NodeTypeLoader::SetLogOff ( )

Truns off all the error reporting.

The log file will not be created and no exceptions for invalid data will be thrown. If you just want to turn off the logs, but abort at the first error what you should do is not call this method and not set a logError file.

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

void com::sparsity::dex::io::NodeTypeLoader::SetRowReader ( com.sparsity.dex.io.RowReader  rr)

Sets the input data source.

Parameters:
rr[in] Input RowReader.

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

void com::sparsity::dex::io::NodeTypeLoader::SetTimestampFormat ( System.String  timestampFormat)

Sets a specific timestamp format.

Parameters:
timestampFormatnull

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

void com::sparsity::dex::io::NodeTypeLoader::SetType ( int  t)

Sets the type to be loaded.

Parameters:
t[in] Type identifier.

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