I
- Vertex idV
- Vertex dataE
- Edge datapublic class ByteValueVertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends DefaultVertex<I,V,E>
Constructor and Description |
---|
ByteValueVertex() |
Modifier and Type | Method and Description |
---|---|
V |
getValue()
Get the vertex value (data stored with vertex)
|
void |
initialize(I id,
V value)
Initialize id and value.
|
void |
initialize(I id,
V value,
Iterable<Edge<I,E>> edges)
Initialize id, value, and edges.
|
void |
setValue(V value)
Set the vertex data (immediately visible in the computation)
|
void |
unwrapMutableEdges()
If a
MutableEdgesWrapper was used to
provide a mutable iterator, copy any remaining edges to the new
OutEdges data structure and keep a direct
reference to it (thus discarding the wrapper). |
addEdge, getAllEdgeValues, getEdges, getEdgeValue, getId, getMutableEdges, getNumEdges, isHalted, removeEdges, setEdges, setEdgeValue, toString, trim, voteToHalt, wakeUp
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConf
setConf
public V getValue()
Vertex
getValue
in interface Vertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
getValue
in class DefaultVertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
public void setValue(V value)
Vertex
setValue
in interface Vertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
setValue
in class DefaultVertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
value
- Vertex data to be setpublic void initialize(I id, V value, Iterable<Edge<I,E>> edges)
Vertex
initialize
in interface Vertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
initialize
in class DefaultVertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
id
- Vertex idvalue
- Vertex valueedges
- Iterable of edgespublic void initialize(I id, V value)
Vertex
initialize
in interface Vertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
initialize
in class DefaultVertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
id
- Vertex idvalue
- Vertex valuepublic void unwrapMutableEdges()
Vertex
MutableEdgesWrapper
was used to
provide a mutable iterator, copy any remaining edges to the new
OutEdges
data structure and keep a direct
reference to it (thus discarding the wrapper).
Called by the Giraph infrastructure after computation.unwrapMutableEdges
in interface Vertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
unwrapMutableEdges
in class DefaultVertex<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.