I - Vertex indexE - Edge valuepublic class DefaultEdge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends Object implements ReusableEdge<I,E>
| Modifier | Constructor and Description |
|---|---|
|
DefaultEdge()
Constructor for reflection
|
protected |
DefaultEdge(I targetVertexId,
E value)
Create the edge with final values.
|
| Modifier and Type | Method and Description |
|---|---|
I |
getTargetVertexId()
Get the target vertex index of this edge
|
E |
getValue()
Get the edge value of the edge
|
void |
setTargetVertexId(I targetVertexId)
Set the destination vertex index of this edge.
|
void |
setValue(E value)
Set the value for this edge.
|
String |
toString() |
public I getTargetVertexId()
EdgegetTargetVertexId in interface Edge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>public void setTargetVertexId(I targetVertexId)
ReusableEdgesetTargetVertexId in interface ReusableEdge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>targetVertexId - new destination vertexpublic void setValue(E value)
MutableEdgesetValue in interface MutableEdge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>value - new edge valueCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.