Package org.apache.spark.graphx
Class PartitionStrategy.EdgePartition1D$
Object
org.apache.spark.graphx.PartitionStrategy.EdgePartition1D$
- All Implemented Interfaces:
Serializable
,PartitionStrategy
,scala.Equals
,scala.Product
- Enclosing interface:
- PartitionStrategy
public static class PartitionStrategy.EdgePartition1D$
extends Object
implements PartitionStrategy, scala.Product, Serializable
Assigns edges to partitions using only the source vertex ID, colocating edges with the same
source.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.graphx.PartitionStrategy
PartitionStrategy.CanonicalRandomVertexCut$, PartitionStrategy.EdgePartition1D$, PartitionStrategy.EdgePartition2D$, PartitionStrategy.RandomVertexCut$
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PartitionStrategy.EdgePartition1D$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getPartition
(long src, long dst, int numParts) Returns the partition number for a given edge.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
EdgePartition1D$
public EdgePartition1D$()
-
-
Method Details
-
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 interfacePartitionStrategy
-