I - Vertex idV - Vertex valueE - Edge valuepublic class VertexIterator<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object
| Constructor and Description |
|---|
VertexIterator(ExtendedDataOutput extendedDataOutput,
ImmutableClassesGiraphConfiguration<I,V,E> configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
I |
getCurrentVertexId()
Get the current vertex id.
|
Vertex<I,V,E> |
getVertex() |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
void |
next()
Moves to the next element in the iteration.
|
I |
releaseCurrentVertexId()
The backing store of the current vertex id is now released.
|
Vertex<I,V,E> |
releaseVertex()
Release the ownership of the Vertex object to the caller
|
public VertexIterator(ExtendedDataOutput extendedDataOutput, ImmutableClassesGiraphConfiguration<I,V,E> configuration)
extendedDataOutput - Extended data outputconfiguration - Configurationpublic boolean hasNext()
public void next()
public I getCurrentVertexId()
public I releaseCurrentVertexId()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.