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