Class SerialColumnIterator<DATA_TYPE>
java.lang.Object
io.deephaven.engine.table.iterators.SerialColumnIterator<DATA_TYPE>
- All Implemented Interfaces:
CloseableIterator<DATA_TYPE>
,ColumnIterator<DATA_TYPE>
,SafeCloseable
,AutoCloseable
,Iterator<DATA_TYPE>
- Direct Known Subclasses:
SerialByteColumnIterator
,SerialCharacterColumnIterator
,SerialDoubleColumnIterator
,SerialFloatColumnIterator
,SerialIntegerColumnIterator
,SerialLongColumnIterator
,SerialObjectColumnIterator
,SerialShortColumnIterator
public abstract class SerialColumnIterator<DATA_TYPE>
extends Object
implements ColumnIterator<DATA_TYPE>
Iteration support for values supplied by a
ColumnSource
. Implementations retrieve single values at a time in
a usually-discouraged Deephaven engine retrieval pattern. This is expected to be low throughput relative to
ChunkedColumnIterator
implementations, but may avoid material initialization and teardown costs for small or
sparse iterations.-
Field Summary
Fields inherited from interface io.deephaven.engine.primitive.iterator.CloseableIterator
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
hasNext()
static <DATA_TYPE>
ColumnIterator<DATA_TYPE>make
(@NotNull ColumnSource<DATA_TYPE> columnSource, @NotNull RowSet rowSet) final long
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseableIterator
stream
Methods inherited from interface io.deephaven.engine.table.iterators.ColumnIterator
close
Methods inherited from interface java.util.Iterator
forEachRemaining, next, remove
-
Method Details
-
remaining
public final long remaining()- Specified by:
remaining
in interfaceColumnIterator<DATA_TYPE>
- Returns:
- The number of elements remaining in this ColumnIterator
-
hasNext
public final boolean hasNext() -
make
public static <DATA_TYPE> ColumnIterator<DATA_TYPE> make(@NotNull @NotNull ColumnSource<DATA_TYPE> columnSource, @NotNull @NotNull RowSet rowSet)
-