public abstract class VertexPartitionBase<VD>
extends Object
implements scala.Serializable
VertexPartition is the corresponding
concrete implementation. VertexPartitionBaseOps provides a variety of operations for
VertexPartitionBase and subclasses that provide implicit evidence of membership in the
VertexPartitionBaseOpsConstructor typeclass (for example,
VertexPartition.VertexPartitionOpsConstructor).| Constructor and Description |
|---|
VertexPartitionBase(scala.reflect.ClassTag<VD> evidence$3) |
| Modifier and Type | Method and Description |
|---|---|
VD |
apply(long vid)
Return the vertex attribute for the given vertex ID.
|
int |
capacity() |
abstract org.apache.spark.util.collection.OpenHashSet<Object> |
index() |
static <VD> scala.Tuple3<org.apache.spark.util.collection.OpenHashSet<Object>,Object,org.apache.spark.util.collection.BitSet> |
initFrom(scala.collection.Iterator<scala.Tuple2<Object,VD>> iter,
scala.reflect.ClassTag<VD> evidence$1)
Construct the constituents of a VertexPartitionBase from the given vertices, merging duplicate
entries arbitrarily.
|
static <VD> scala.Tuple3<org.apache.spark.util.collection.OpenHashSet<Object>,Object,org.apache.spark.util.collection.BitSet> |
initFrom(scala.collection.Iterator<scala.Tuple2<Object,VD>> iter,
scala.Function2<VD,VD,VD> mergeFunc,
scala.reflect.ClassTag<VD> evidence$2)
Construct the constituents of a VertexPartitionBase from the given vertices, merging duplicate
entries using
mergeFunc. |
boolean |
isDefined(long vid) |
scala.collection.Iterator<scala.Tuple2<Object,VD>> |
iterator() |
abstract org.apache.spark.util.collection.BitSet |
mask() |
int |
size() |
abstract Object |
values() |
public VertexPartitionBase(scala.reflect.ClassTag<VD> evidence$3)
public static <VD> scala.Tuple3<org.apache.spark.util.collection.OpenHashSet<Object>,Object,org.apache.spark.util.collection.BitSet> initFrom(scala.collection.Iterator<scala.Tuple2<Object,VD>> iter,
scala.reflect.ClassTag<VD> evidence$1)
public static <VD> scala.Tuple3<org.apache.spark.util.collection.OpenHashSet<Object>,Object,org.apache.spark.util.collection.BitSet> initFrom(scala.collection.Iterator<scala.Tuple2<Object,VD>> iter,
scala.Function2<VD,VD,VD> mergeFunc,
scala.reflect.ClassTag<VD> evidence$2)
mergeFunc.public abstract org.apache.spark.util.collection.OpenHashSet<Object> index()
public abstract Object values()
public abstract org.apache.spark.util.collection.BitSet mask()
public int capacity()
public int size()
public VD apply(long vid)
public boolean isDefined(long vid)
public scala.collection.Iterator<scala.Tuple2<Object,VD>> iterator()