edu.upc.dama.dex.io
Class EdgeTypeExporter

java.lang.Object
  extended by edu.upc.dama.dex.io.Exporter
      extended by edu.upc.dama.dex.io.EdgeTypeExporter

public class EdgeTypeExporter
extends Exporter

Exporter implementation for edge types.

See Also:
Exporter
Author:
Sparsity Technologies

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.upc.dama.dex.io.Exporter
Exporter.ExporterEvent
 
Field Summary
 
Fields inherited from class edu.upc.dama.dex.io.Exporter
headAttr, headPos, tailAttr, tailPos
 
Constructor Summary
EdgeTypeExporter(RowWriter rowWriter, Graph graph, int edgeType, int tailPos, long tailAttr, int headPos, long headAttr)
          Creates a new instance of EdgeTypeExporter.
All atrributes are exported.
EdgeTypeExporter(RowWriter rowWriter, Graph graph, int edgeType, java.lang.Long[] exportAttr, int tailPos, long tailAttr, int headPos, long headAttr)
          Creates a new instance of EdgeTypeExporter.
All atrributes are exported.
 
Method Summary
 
Methods inherited from class edu.upc.dama.dex.io.Exporter
getFrequency, getNamesOnTop, registerUnloaderListener, run, setFrequency, setNamesOnTop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeTypeExporter

public EdgeTypeExporter(RowWriter rowWriter,
                        Graph graph,
                        int edgeType,
                        int tailPos,
                        long tailAttr,
                        int headPos,
                        long headAttr)
Creates a new instance of EdgeTypeExporter.
All atrributes are exported.

Parameters:
rowWriter - RowWriter to write data.
graph - Graph that nodes are exported.
tailPos - Position to be written the tail id on the RowWriter.
tailAttr - Attribute identifier in the Graph of the tail node type.
headPos - Position to be written the head id on the RowWriter.
headAttr - Attribute identifier in the Graph of the tail head type.

EdgeTypeExporter

public EdgeTypeExporter(RowWriter rowWriter,
                        Graph graph,
                        int edgeType,
                        java.lang.Long[] exportAttr,
                        int tailPos,
                        long tailAttr,
                        int headPos,
                        long headAttr)
Creates a new instance of EdgeTypeExporter.
All atrributes are exported.

Parameters:
rowWriter - RowWriter to write data.
graph - Graph that nodes are exported.
edgeType - Edge type to be exported.
exportAttr - Attributes id of the edgeType to be exported.
tailPos - Position to be written the tail id on the RowWriter.
tailAttr - Attribute identifier in the Graph of the tail node type.
headPos - Position to be written the head id on the RowWriter.
headAttr - Attribute identifier in the Graph of the tail head type.