I
- Vertex idE
- Edge valuepublic class MapMutableEdge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends Object implements MutableEdge<I,E>
Constructor and Description |
---|
MapMutableEdge() |
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 |
setEntry(Map.Entry<I,E> entry)
Set the backing entry for this edge in the map.
|
void |
setValue(E value)
Set the value for this edge.
|
public void setEntry(Map.Entry<I,E> entry)
entry
- Backing entrypublic void setValue(E value)
MutableEdge
setValue
in interface MutableEdge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
value
- new edge valuepublic I getTargetVertexId()
Edge
getTargetVertexId
in interface Edge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.