Class ChunkedByteColumnIterator
java.lang.Object
io.deephaven.engine.table.iterators.ChunkedColumnIterator<Byte,ByteChunk<? extends Any>>
io.deephaven.engine.table.iterators.ChunkedByteColumnIterator
- All Implemented Interfaces:
CloseableIterator<Byte>
,CloseablePrimitiveIterator<Byte,
,ByteConsumer> CloseablePrimitiveIteratorOfByte
,ByteColumnIterator
,ColumnIterator<Byte>
,SafeCloseable
,AutoCloseable
,Iterator<Byte>
,PrimitiveIterator<Byte,
ByteConsumer>
public final class ChunkedByteColumnIterator
extends ChunkedColumnIterator<Byte,ByteChunk<? extends Any>>
implements ByteColumnIterator
Chunked
ByteColumnIterator
implementation for chunk sources
of primitive bytes.-
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.CloseablePrimitiveIteratorOfByte
EMPTY
-
Constructor Summary
ConstructorDescriptionChunkedByteColumnIterator
(@NotNull ChunkSource<? extends Any> chunkSource, @NotNull RowSequence rowSequence) Create a new ChunkedByteColumnIterator.ChunkedByteColumnIterator
(@NotNull ChunkSource<? extends Any> chunkSource, @NotNull RowSequence rowSequence, int chunkSize, long firstRowKey, long length) Create a new ChunkedByteColumnIterator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachRemaining
(@NotNull ByteConsumer action) byte
nextByte()
Returns the nextbyte
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.table.iterators.ByteColumnIterator
forEachRemaining, next, stream, streamAsInt, streamAsInt
Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfByte
adaptToOfInt
Methods inherited from interface io.deephaven.engine.table.iterators.ColumnIterator
close, remaining
-
Constructor Details
-
ChunkedByteColumnIterator
public ChunkedByteColumnIterator(@NotNull @NotNull ChunkSource<? extends Any> chunkSource, @NotNull @NotNull RowSequence rowSequence, int chunkSize, long firstRowKey, long length) Create a new ChunkedByteColumnIterator.- Parameters:
chunkSource
- TheChunkSource
to fetch values from; must havechunk type
ofChunkType.Byte
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
-
ChunkedByteColumnIterator
public ChunkedByteColumnIterator(@NotNull @NotNull ChunkSource<? extends Any> chunkSource, @NotNull @NotNull RowSequence rowSequence) Create a new ChunkedByteColumnIterator.- Parameters:
chunkSource
- TheChunkSource
to fetch values from; must havechunk type
ofChunkType.Byte
rowSequence
- TheRowSequence
to iterate over
-
-
Method Details
-
nextByte
public byte nextByte()Description copied from interface:CloseablePrimitiveIteratorOfByte
Returns the nextbyte
element in the iteration.- Specified by:
nextByte
in interfaceCloseablePrimitiveIteratorOfByte
- Returns:
- The next
byte
element in the iteration
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceCloseablePrimitiveIteratorOfByte
- Specified by:
forEachRemaining
in interfacePrimitiveIterator<Byte,
ByteConsumer>
-