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 ValueIteratorOfFloatA re-usable, immutable ValueIteratorOfFloat with no elements. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueIteratorOfFloatempty()Get a ValueIteratorOfFloat with no elements.default voidforEachRemaining(@NotNull Consumer<? super Float> action) default Floatnext()static ValueIteratorOfFloatof(@org.jetbrains.annotations.NotNull float... values) Create a ValueIteratorOfFloat over an array offloat.default DoubleStreamCreate an unboxedDoubleStreamover the remaining elements of this ValueIteratorOfFloat by casting each element todoublewith the appropriate adjustment ofNULL_FLOATtoNULL_DOUBLE.default DoubleStreamstreamAsDouble(@NotNull FloatToDoubleFunction adapter) Create anDoubleStreamover the remaining elements of this ValueIteratorOfFloat by applyingadapterto each element.static ValueIteratorOfFloatwrapWithNulls(@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
closeMethods inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfFloat
adaptToOfDouble, forEachRemaining, nextFloatMethods 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:
nextin interfaceCloseablePrimitiveIteratorOfFloat- Specified by:
nextin interfaceIterator<Float>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceCloseablePrimitiveIteratorOfFloat- Specified by:
forEachRemainingin interfaceIterator<Float>
-
streamAsDouble
Create an unboxedDoubleStreamover the remaining elements of this ValueIteratorOfFloat by casting each element todoublewith the appropriate adjustment ofNULL_FLOATtoNULL_DOUBLE. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsDoublein interfaceCloseablePrimitiveIteratorOfFloat- Returns:
- An unboxed
DoubleStreamover the remaining contents of this iterator. Must beclosed.
-
streamAsDouble
Create anDoubleStreamover the remaining elements of this ValueIteratorOfFloat by applyingadapterto each element. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsDoublein interfaceCloseablePrimitiveIteratorOfFloat- Returns:
- An
DoubleStreamover 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
-