Interface ByteColumnIterator
- All Superinterfaces:
AutoCloseable
,CloseableIterator<Byte>
,CloseablePrimitiveIterator<Byte,
,ByteConsumer> CloseablePrimitiveIteratorOfByte
,ColumnIterator<Byte>
,Iterator<Byte>
,PrimitiveIterator<Byte,
,ByteConsumer> SafeCloseable
- All Known Implementing Classes:
ChunkedByteColumnIterator
,SerialByteColumnIterator
ColumnIterator
implementation for columns 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 interface io.deephaven.engine.primitive.iterator.CloseableIterator
EMPTY
Fields inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfByte
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
forEachRemaining
(@NotNull Consumer<? super Byte> action) default Byte
next()
stream()
Create a boxedStream
over the remaining elements of this ByteColumnIterator.default IntStream
default IntStream
streamAsInt
(@NotNull ByteToIntFunction adapter) Create aIntStream
over the remaining elements of this ChunkedByteColumnIterator by applyingadapter
to each element.Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfByte
adaptToOfInt, forEachRemaining, nextByte
Methods inherited from interface io.deephaven.engine.table.iterators.ColumnIterator
close, remaining
-
Method Details
-
next
- Specified by:
next
in interfaceCloseablePrimitiveIteratorOfByte
- Specified by:
next
in interfaceIterator<Byte>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceCloseablePrimitiveIteratorOfByte
- Specified by:
forEachRemaining
in interfaceIterator<Byte>
-
streamAsInt
Create aIntStream
over the remaining elements of this ChunkedByteColumnIterator by applyingadapter
to each element. The result must beclosed
in order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsInt
in interfaceCloseablePrimitiveIteratorOfByte
- Returns:
- A
IntStream
over the remaining contents of this iterator. Must beclosed
.
-
streamAsInt
Create an unboxedIntStream
over the remaining elements of this ChunkedByteColumnIterator by casting each element toint
with the appropriate adjustment ofNULL_BYTE
toNULL_INT
. The result must beclosed
in order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsInt
in interfaceCloseablePrimitiveIteratorOfByte
- Returns:
- An unboxed
IntStream
over the remaining contents of this iterator. Must beclosed
.
-
stream
Create a boxedStream
over the remaining elements of this ByteColumnIterator. The result must beclosed
in order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
stream
in interfaceCloseableIterator<Byte>
- Returns:
- A boxed
Stream
over the remaining contents of this iterator. Must beclosed
.
-