public abstract class EdgesFunctionWithVertexValue<K,VV,EV,T> extends Object implements EdgesFunctionWithVertexValue<K,VV,EV,T>
Constructor and Description |
---|
EdgesFunctionWithVertexValue() |
Modifier and Type | Method and Description |
---|---|
abstract void |
iterateEdges(Vertex<K,VV> v,
scala.collection.Iterable<Edge<K,EV>> edges,
Collector<T> out) |
void |
iterateEdges(Vertex<K,VV> v,
Iterable<Edge<K,EV>> edges,
Collector<T> out)
This method is called per vertex and can iterate over all of its neighboring edges
with the specified direction.
|
public abstract void iterateEdges(Vertex<K,VV> v, scala.collection.Iterable<Edge<K,EV>> edges, Collector<T> out)
public void iterateEdges(Vertex<K,VV> v, Iterable<Edge<K,EV>> edges, Collector<T> out)
EdgesFunctionWithVertexValue
If called with EdgeDirection.OUT
the group will contain
the out-edges of the grouping vertex.
If called with EdgeDirection.IN
the group will contain
the in-edges of the grouping vertex.
If called with EdgeDirection.ALL
the group will contain
all edges of the grouping vertex.
The method can emit any number of output elements, including none.
iterateEdges
in interface EdgesFunctionWithVertexValue<K,VV,EV,T>
v
- the grouping vertexedges
- the neighboring edges of the grouping vertex.out
- the collector to emit results toCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.