Interface ValueIteratorOfFloat
- All Superinterfaces:
AutoCloseable
,CloseableIterator<Float>
,CloseablePrimitiveIterator<Float,
,FloatConsumer> CloseablePrimitiveIteratorOfFloat
,Iterator<Float>
,PrimitiveIterator<Float,
,FloatConsumer> ValueIterator<Float>
- All Known Subinterfaces:
FloatColumnIterator
- All Known Implementing Classes:
ChunkedFloatColumnIterator
,SerialFloatColumnIterator
public interface ValueIteratorOfFloat
extends CloseablePrimitiveIteratorOfFloat, ValueIterator<Float>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueIteratorOfFloat
A re-usable, immutable ValueIteratorOfFloat with no elements. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueIteratorOfFloat
empty()
Get a ValueIteratorOfFloat with no elements.default void
forEachRemaining
(@NotNull Consumer<? super Float> action) default Float
next()
static ValueIteratorOfFloat
of
(@org.jetbrains.annotations.NotNull float... values) Create a ValueIteratorOfFloat over an array offloat
.default DoubleStream
Create an unboxedDoubleStream
over the remaining elements of this ValueIteratorOfFloat by casting each element todouble
with the appropriate adjustment ofNULL_FLOAT
toNULL_DOUBLE
.default DoubleStream
streamAsDouble
(@NotNull FloatToDoubleFunction adapter) Create anDoubleStream
over the remaining elements of this ValueIteratorOfFloat by applyingadapter
to each element.static ValueIteratorOfFloat
wrapWithNulls
(@Nullable ValueIteratorOfFloat iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfFloat with set number of prefix nulls, postfix nulls, or both.Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseableIterator
close
Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfFloat
adaptToOfDouble, forEachRemaining, nextFloat
Methods inherited from interface io.deephaven.engine.primitive.value.iterator.ValueIterator
remaining, stream
-
Field Details
-
EMPTY
A re-usable, immutable ValueIteratorOfFloat with no elements.
-
-
Method Details
-
next
- Specified by:
next
in interfaceCloseablePrimitiveIteratorOfFloat
- Specified by:
next
in interfaceIterator<Float>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceCloseablePrimitiveIteratorOfFloat
- Specified by:
forEachRemaining
in interfaceIterator<Float>
-
streamAsDouble
Create an unboxedDoubleStream
over the remaining elements of this ValueIteratorOfFloat by casting each element todouble
with the appropriate adjustment ofNULL_FLOAT
toNULL_DOUBLE
. The result must beclosed
in order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsDouble
in interfaceCloseablePrimitiveIteratorOfFloat
- Returns:
- An unboxed
DoubleStream
over the remaining contents of this iterator. Must beclosed
.
-
streamAsDouble
Create anDoubleStream
over the remaining elements of this ValueIteratorOfFloat 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:
streamAsDouble
in interfaceCloseablePrimitiveIteratorOfFloat
- Returns:
- An
DoubleStream
over the remaining contents of this iterator. Must beclosed
.
-
empty
Get a ValueIteratorOfFloat with no elements. The result does not need to beclosed
.- Returns:
- A ValueIteratorOfFloat with no elements
-
of
Create a ValueIteratorOfFloat over an array offloat
. The result does not need to beclosed
.- Parameters:
values
- The elements to iterate- Returns:
- A ValueIteratorOfFloat of
values
-
wrapWithNulls
static ValueIteratorOfFloat wrapWithNulls(@Nullable @Nullable ValueIteratorOfFloat iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfFloat with set number of prefix nulls, postfix nulls, or both. The result must beclosed
.- Parameters:
iterator
- The ValueIteratorOfFloat 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 ValueIteratorOfFloat with the specified number of prefix and postfix nulls
-