com.intel.hadoop.graphbuilder.partition.strategy
Interface Ingress<VidType>

Type Parameters:
VidType -
All Known Implementing Classes:
GreedyIngress, RandomIngress

public interface Ingress<VidType>

Ingress object assigns a partition id to a source, target id pair. And the partition id is in domain {0,1,..., numProcs() .


Method Summary
 short computePid(VidType source, VidType target)
           
 int numProcs()
           
 

Method Detail

computePid

short computePid(VidType source,
                 VidType target)
Parameters:
source -
target -
Returns:
the partition id for the edge.

numProcs

int numProcs()
Returns:
number of total partitions.