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
ConstructorsConstructorDescriptionElementAddressableVectorIterator(T vector) Constructs an iterator for theElementAddressableVector.ElementAddressableVectorIterator(T vector, ArrowBufHasher hasher) Constructs an iterator for theElementAddressableVector. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()next()Retrieves the next pointer from the vector.voidnext(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, waitMethods 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:
hasNextin interfaceIterator<T extends ElementAddressableVector>
-
next
Retrieves the next pointer from the vector.- Specified by:
nextin 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.
-