Package org.apache.arrow.vector.util
Class ElementAddressableVectorIterator<T extends ElementAddressableVector>
java.lang.Object
org.apache.arrow.vector.util.ElementAddressableVectorIterator<T>
- Type Parameters:
T
- vector type.
- All Implemented Interfaces:
Iterator<ArrowBufPointer>
public class ElementAddressableVectorIterator<T extends ElementAddressableVector>
extends Object
implements Iterator<ArrowBufPointer>
Iterator for traversing elements of a
ElementAddressableVector
.-
Constructor Summary
ConstructorDescriptionElementAddressableVectorIterator
(T vector) Constructs an iterator for theElementAddressableVector
.ElementAddressableVectorIterator
(T vector, ArrowBufHasher hasher) Constructs an iterator for theElementAddressableVector
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
Retrieves the next pointer from the vector.void
next
(ArrowBufPointer outPointer) Retrieves the next pointer from the vector.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ElementAddressableVectorIterator
Constructs an iterator for theElementAddressableVector
.- Parameters:
vector
- the vector to iterate.
-
ElementAddressableVectorIterator
Constructs an iterator for theElementAddressableVector
.- Parameters:
vector
- the vector to iterate.hasher
- the hasher to calculate the hash code.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T extends ElementAddressableVector>
-
next
Retrieves the next pointer from the vector.- Specified by:
next
in interfaceIterator<T extends ElementAddressableVector>
- Returns:
- the pointer pointing to the next element in the vector. Note that the returned pointer is only valid before the next call to this method.
-
next
Retrieves the next pointer from the vector.- Parameters:
outPointer
- the pointer to populate.
-