Class ChunkedShortColumnIterator
java.lang.Object
io.deephaven.engine.table.iterators.ChunkedColumnIterator<Short,ShortChunk<? extends Any>>
io.deephaven.engine.table.iterators.ChunkedShortColumnIterator
- All Implemented Interfaces:
CloseableIterator<Short>
,CloseablePrimitiveIterator<Short,
,ShortConsumer> CloseablePrimitiveIteratorOfShort
,ColumnIterator<Short>
,ShortColumnIterator
,SafeCloseable
,AutoCloseable
,Iterator<Short>
,PrimitiveIterator<Short,
ShortConsumer>
public final class ChunkedShortColumnIterator
extends ChunkedColumnIterator<Short,ShortChunk<? extends Any>>
implements ShortColumnIterator
Chunked
ShortColumnIterator
implementation for chunk sources
of primitive shorts.-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Field Summary
Fields inherited from class io.deephaven.engine.table.iterators.ChunkedColumnIterator
DEFAULT_CHUNK_SIZE
Fields inherited from interface io.deephaven.engine.primitive.iterator.CloseableIterator
EMPTY
Fields inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfShort
EMPTY
-
Constructor Summary
ConstructorDescriptionChunkedShortColumnIterator
(@NotNull ChunkSource<? extends Any> chunkSource, @NotNull RowSequence rowSequence) Create a new ChunkedShortColumnIterator.ChunkedShortColumnIterator
(@NotNull ChunkSource<? extends Any> chunkSource, @NotNull RowSequence rowSequence, int chunkSize, long firstRowKey, long length) Create a new ChunkedShortColumnIterator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachRemaining
(@NotNull ShortConsumer action) short
Returns the nextshort
element in the iteration.Methods inherited from class io.deephaven.engine.table.iterators.ChunkedColumnIterator
close, hasNext, make, make, remaining
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.CloseablePrimitiveIteratorOfShort
adaptToOfInt
Methods inherited from interface io.deephaven.engine.table.iterators.ColumnIterator
close, remaining
Methods inherited from interface io.deephaven.engine.table.iterators.ShortColumnIterator
forEachRemaining, next, stream, streamAsInt, streamAsInt
-
Constructor Details
-
ChunkedShortColumnIterator
public ChunkedShortColumnIterator(@NotNull @NotNull ChunkSource<? extends Any> chunkSource, @NotNull @NotNull RowSequence rowSequence, int chunkSize, long firstRowKey, long length) Create a new ChunkedShortColumnIterator.- Parameters:
chunkSource
- TheChunkSource
to fetch values from; must havechunk type
ofChunkType.Short
rowSequence
- TheRowSequence
to iterate overchunkSize
- The buffer size to use when fetching datafirstRowKey
- The first row key fromrowSequence
to iteratelength
- The total number of rows to iterate
-
ChunkedShortColumnIterator
public ChunkedShortColumnIterator(@NotNull @NotNull ChunkSource<? extends Any> chunkSource, @NotNull @NotNull RowSequence rowSequence) Create a new ChunkedShortColumnIterator.- Parameters:
chunkSource
- TheChunkSource
to fetch values from; must havechunk type
ofChunkType.Short
rowSequence
- TheRowSequence
to iterate over
-
-
Method Details
-
nextShort
public short nextShort()Description copied from interface:CloseablePrimitiveIteratorOfShort
Returns the nextshort
element in the iteration.- Specified by:
nextShort
in interfaceCloseablePrimitiveIteratorOfShort
- Returns:
- The next
short
element in the iteration
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceCloseablePrimitiveIteratorOfShort
- Specified by:
forEachRemaining
in interfacePrimitiveIterator<Short,
ShortConsumer>
-