Package org.apache.spark.graphx
Class PartitionStrategy.CanonicalRandomVertexCut$
Object
org.apache.spark.graphx.PartitionStrategy.CanonicalRandomVertexCut$
- All Implemented Interfaces:
- Serializable,- PartitionStrategy,- scala.Equals,- scala.Product
- Enclosing interface:
- PartitionStrategy
public static class PartitionStrategy.CanonicalRandomVertexCut$
extends Object
implements PartitionStrategy, scala.Product, Serializable
Assigns edges to partitions by hashing the source and destination vertex IDs in a canonical
 direction, resulting in a random vertex cut that colocates all edges between two vertices,
 regardless of direction.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.spark.graphx.PartitionStrategyPartitionStrategy.CanonicalRandomVertexCut$, PartitionStrategy.EdgePartition1D$, PartitionStrategy.EdgePartition2D$, PartitionStrategy.RandomVertexCut$
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PartitionStrategy.CanonicalRandomVertexCut$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetPartition(long src, long dst, int numParts) Returns the partition number for a given edge.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Field Details- 
MODULE$Static reference to the singleton instance of this Scala object.
 
- 
- 
Constructor Details- 
CanonicalRandomVertexCut$public CanonicalRandomVertexCut$()
 
- 
- 
Method Details- 
getPartitionpublic int getPartition(long src, long dst, int numParts) Description copied from interface:PartitionStrategyReturns the partition number for a given edge.- Specified by:
- getPartitionin interface- PartitionStrategy
 
 
-