com.intel.hadoop.graphbuilder.idnormalize.mapreduce
Class TransEdgeMR

java.lang.Object
  extended by com.intel.hadoop.graphbuilder.idnormalize.mapreduce.TransEdgeMR

public class TransEdgeMR
extends java.lang.Object

This MapReduce class translate the rawIds in the edge list into normalized newIds using the partitioned edgelist output from SortEdgeMR and partitioned dictionary output from SortDictMR.

Input directory: list of edges. Output directory: $outputdir/


Constructor Summary
TransEdgeMR(int numChunks, java.lang.String dictionaryPath, GraphParser graphparser, FieldParser vidparser, FieldParser edataparser)
           
 
Method Summary
 void run(java.lang.String inputpath, java.lang.String outputpath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransEdgeMR

public TransEdgeMR(int numChunks,
                   java.lang.String dictionaryPath,
                   GraphParser graphparser,
                   FieldParser vidparser,
                   FieldParser edataparser)
Parameters:
numChunks - number of partitions in the dictionary.
dictionaryPath - path of the partitioned dictionary.
graphparser -
vidparser -
edataparser -
Method Detail

run

public void run(java.lang.String inputpath,
                java.lang.String outputpath)
         throws java.io.IOException
Parameters:
inputpath - path of the partitioned edge list
outputpath - path of the output directory
Throws:
java.io.IOException