I
- Vertex idpublic abstract class ByteStructVertexIdIterator<I extends org.apache.hadoop.io.WritableComparable> extends Object implements VertexIdIterator<I>
Modifier and Type | Field and Description |
---|---|
protected ExtendedDataInput |
extendedDataInput
Reader of the serialized edges
|
protected I |
vertexId
Current vertex id
|
Constructor and Description |
---|
ByteStructVertexIdIterator(ExtendedDataOutput extendedDataOutput,
ImmutableClassesGiraphConfiguration<I,?,?> conf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
I |
getCurrentVertexId()
Get the current vertex id.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
I |
releaseCurrentVertexId()
The backing store of the current vertex id is now released.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
next
protected final ExtendedDataInput extendedDataInput
protected I extends org.apache.hadoop.io.WritableComparable vertexId
public ByteStructVertexIdIterator(ExtendedDataOutput extendedDataOutput, ImmutableClassesGiraphConfiguration<I,?,?> conf)
extendedDataOutput
- Extended data outputconf
- Configurationpublic boolean hasNext()
VertexIdIterator
hasNext
in interface VertexIdIterator<I extends org.apache.hadoop.io.WritableComparable>
public I getCurrentVertexId()
VertexIdIterator
getCurrentVertexId
in interface VertexIdIterator<I extends org.apache.hadoop.io.WritableComparable>
public I releaseCurrentVertexId()
VertexIdIterator
releaseCurrentVertexId
in interface VertexIdIterator<I extends org.apache.hadoop.io.WritableComparable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.