edu.upc.dama.dex.io
Class EdgeTypeLoader

java.lang.Object
  extended by edu.upc.dama.dex.io.Loader
      extended by edu.upc.dama.dex.io.EdgeTypeLoader

public class EdgeTypeLoader
extends Loader

Loader implementation for edge types.

See Also:
Loader
Author:
Sparsity Technologies

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.upc.dama.dex.io.Loader
Loader.LoaderEvent, Loader.Mode
 
Field Summary
 
Fields inherited from class edu.upc.dama.dex.io.Loader
DEFAULT_DATEFORMAT, headAttr, headPos, headType, tailAttr, tailPos, tailType
 
Constructor Summary
EdgeTypeLoader(RowReader rowReader, Graph graph, int edgeType, long tailAttr, int tailPos, long headAttr, int headPos)
          Create a new instance of EdgeTypeLoader.
 
Method Summary
 
Methods inherited from class edu.upc.dama.dex.io.Loader
getFrequency, getLogFile, registerLoaderListener, run, setAttribute, setDateFormat, setDeleteTemporalFiles, setFrequency, setLogFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeTypeLoader

public EdgeTypeLoader(RowReader rowReader,
                      Graph graph,
                      int edgeType,
                      long tailAttr,
                      int tailPos,
                      long headAttr,
                      int headPos)
Create a new instance of EdgeTypeLoader.

Parameters:
rowReader - RowReader to get the data from.
graph - Graph to load the data to.
edgeType - Edge type to load the data to.
tailAttr - Attribute identifier in the Graph to find tail nodes when loading data for an edge type. It must be an indexed attribute.
tailPos - Column index in the RowReader which stores the tails when loading data for an edge type.
headAttr - Attribute identifier in the Graph to find head nodes when loading data for an edge type. It must be and indexed attribute.
headPos - Column index in the RowReader which stores the heads when loading data for an edge type.