org.apache.spark.graphx
Class PartitionStrategy.RandomVertexCut$

Object
  extended by org.apache.spark.graphx.PartitionStrategy.RandomVertexCut$
All Implemented Interfaces:
java.io.Serializable, PartitionStrategy, scala.Equals, scala.Product
Enclosing interface:
PartitionStrategy

public static class PartitionStrategy.RandomVertexCut$
extends Object
implements PartitionStrategy, scala.Product, scala.Serializable

Assigns edges to partitions by hashing the source and destination vertex IDs, resulting in a random vertex cut that colocates all same-direction edges between two vertices.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.spark.graphx.PartitionStrategy
PartitionStrategy.CanonicalRandomVertexCut$, PartitionStrategy.EdgePartition1D$, PartitionStrategy.EdgePartition2D$, PartitionStrategy.RandomVertexCut$
 
Field Summary
static PartitionStrategy.RandomVertexCut$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
PartitionStrategy.RandomVertexCut$()
           
 
Method Summary
 int getPartition(long src, long dst, int numParts)
          Returns the partition number for a given edge.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Field Detail

MODULE$

public static final PartitionStrategy.RandomVertexCut$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

PartitionStrategy.RandomVertexCut$

public PartitionStrategy.RandomVertexCut$()
Method Detail

getPartition

public int getPartition(long src,
                        long dst,
                        int numParts)
Description copied from interface: PartitionStrategy
Returns the partition number for a given edge.

Specified by:
getPartition in interface PartitionStrategy