public class VertexSuppliers extends Object
Modifier and Type | Method and Description |
---|---|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
vertexEdgesSupplier()
Supplier which extracts and returns edges object.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
vertexIdSupplier()
Supplier which extracts and returns vertex ID.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
vertexNeighborsSupplier()
Supplier which extracts and returns Iterator over all neighbor IDs.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
vertexNeighborsSupplier(Predicate<I> toSupply)
Supplier which extracts and returns Iterator over neighbor IDs
that return true for given predicate.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
vertexNeighborsSupplierWithIndex(PairPredicate<PrimitiveRefs.IntRef,I> toSupply)
Supplier which gives Iterator over neighbor IDs that return true for given
predicate over (index, target)
Note - iterator returns reused object, so you need to "use" them,
before calling next() again.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
vertexValueSupplier()
Supplier which extracts and returns vertex value.
|
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> SupplierFromVertex<I,V,E,I> vertexIdSupplier()
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> SupplierFromVertex<I,V,E,V> vertexValueSupplier()
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> SupplierFromVertex<I,V,E,Iterable<Edge<I,E>>> vertexEdgesSupplier()
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> SupplierFromVertex<I,V,E,Iterator<I>> vertexNeighborsSupplier()
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> SupplierFromVertex<I,V,E,Iterator<I>> vertexNeighborsSupplier(Predicate<I> toSupply)
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> SupplierFromVertex<I,V,E,Iterator<I>> vertexNeighborsSupplierWithIndex(PairPredicate<PrimitiveRefs.IntRef,I> toSupply)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.