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