K
- the vertex key typeVV
- the vertex value typeEV
- the edge value typepublic class Triplet<K,VV,EV> extends Tuple5<K,K,VV,VV,EV>
Graph.getTriplets()
method.Constructor and Description |
---|
Triplet() |
Triplet(K srcId,
K trgId,
VV srcVal,
VV trgVal,
EV edgeVal)
Constructs a Triplet from its src vertex id, src target id, src vertex value, src target
value and edge value respectively.
|
Triplet(Vertex<K,VV> srcVertex,
Vertex<K,VV> trgVertex,
Edge<K,EV> edge)
Constructs a Triplet from a given source vertex, target vertex, and edge.
|
Modifier and Type | Method and Description |
---|---|
Edge<K,EV> |
getEdge() |
Vertex<K,VV> |
getSrcVertex() |
Vertex<K,VV> |
getTrgVertex() |
copy, equals, getArity, getField, hashCode, of, setField, setFields, toString
getFieldNotNull, getTupleClass, newInstance
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.