Interface ValueIteratorOfShort
- All Superinterfaces:
AutoCloseable,CloseableIterator<Short>,CloseablePrimitiveIterator<Short,,ShortConsumer> CloseablePrimitiveIteratorOfShort,Iterator<Short>,PrimitiveIterator<Short,,ShortConsumer> ValueIterator<Short>
- All Known Subinterfaces:
ShortColumnIterator
- All Known Implementing Classes:
ChunkedShortColumnIterator,SerialShortColumnIterator
public interface ValueIteratorOfShort
extends CloseablePrimitiveIteratorOfShort, ValueIterator<Short>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueIteratorOfShortA re-usable, immutable ValueIteratorOfShort with no elements. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueIteratorOfShortempty()Get a ValueIteratorOfShort with no elements.default voidforEachRemaining(@NotNull Consumer<? super Short> action) default Shortnext()static ValueIteratorOfShortof(@org.jetbrains.annotations.NotNull short... values) Create a ValueIteratorOfShort over an array ofshort.default IntStreamCreate an unboxedIntStreamover the remaining elements of this ValueIteratorOfShort by casting each element tointwith the appropriate adjustment ofNULL_SHORTtoNULL_INT.default IntStreamstreamAsInt(@NotNull ShortToIntFunction adapter) Create anIntStreamover the remaining elements of this ValueIteratorOfShort by applyingadapterto each element.static ValueIteratorOfShortwrapWithNulls(@Nullable ValueIteratorOfShort iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfShort with set number of prefix nulls, postfix nulls, or both.Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseableIterator
closeMethods inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfShort
adaptToOfInt, forEachRemaining, nextShortMethods inherited from interface io.deephaven.engine.primitive.value.iterator.ValueIterator
remaining, stream
-
Field Details
-
EMPTY
A re-usable, immutable ValueIteratorOfShort with no elements.
-
-
Method Details
-
next
- Specified by:
nextin interfaceCloseablePrimitiveIteratorOfShort- Specified by:
nextin interfaceIterator<Short>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceCloseablePrimitiveIteratorOfShort- Specified by:
forEachRemainingin interfaceIterator<Short>
-
streamAsInt
Create an unboxedIntStreamover the remaining elements of this ValueIteratorOfShort by casting each element tointwith the appropriate adjustment ofNULL_SHORTtoNULL_INT. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsIntin interfaceCloseablePrimitiveIteratorOfShort- Returns:
- An unboxed
IntStreamover the remaining contents of this iterator. Must beclosed.
-
streamAsInt
Create anIntStreamover the remaining elements of this ValueIteratorOfShort by applyingadapterto each element. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsIntin interfaceCloseablePrimitiveIteratorOfShort- Returns:
- An
IntStreamover the remaining contents of this iterator. Must beclosed.
-
empty
Get a ValueIteratorOfShort with no elements. The result does not need to beclosed.- Returns:
- A ValueIteratorOfShort with no elements
-
of
Create a ValueIteratorOfShort over an array ofshort. The result does not need to beclosed.- Parameters:
values- The elements to iterate- Returns:
- A ValueIteratorOfShort of
values
-
wrapWithNulls
static ValueIteratorOfShort wrapWithNulls(@Nullable @Nullable ValueIteratorOfShort iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfShort with set number of prefix nulls, postfix nulls, or both. The result must beclosed.- Parameters:
iterator- The ValueIteratorOfShort to wrapprefixNulls- The number of nulls to add to the beginning of the iteratorpostfixNulls- The number of nulls to add to the end of the iterator- Returns:
- A ValueIteratorOfShort with the specified number of prefix and postfix nulls
-