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

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

public class SortEdgeMR
extends java.lang.Object

This class partition the edge list input by the hash of the source vertex.


Nested Class Summary
static class SortEdgeMR.SortEdgeMapper
          This mapper class maps each edge into (h(edge.source), edge).
static class SortEdgeMR.SortEdgeReducer
          This reducer class takes the input (hashval, edge) from mapper and outputs edge directly.
 
Constructor Summary
SortEdgeMR(int numChunks, 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

SortEdgeMR

public SortEdgeMR(int numChunks,
                  GraphParser graphparser,
                  FieldParser vidparser,
                  FieldParser edataparser)
Method Detail

run

public void run(java.lang.String inputpath,
                java.lang.String outputpath)
         throws java.io.IOException
Throws:
java.io.IOException