A ChunkIterator
is a specialized iterator that supports efficient
iteration over chunks.
A ChunkIterator
is a specialized iterator that supports efficient
iteration over chunks. Unlike a normal iterator, the caller is responsible
for providing an index
with each call to hasNextAt
and nextAt
. By
contract this should be 0
initially and incremented by 1
each time
nextAt
is called. This allows the caller to maintain the current index in
local memory rather than the iterator having to do it on the heap for array
backed chunks.
Returns a chunk from a number of values.
Returns a chunk from a number of values.
Returns the empty chunk.
Returns the empty chunk.
Returns a chunk backed by an array.
Returns a chunk backed by an array.
WARNING: The array must not be mutated after creating the chunk.
Returns a chunk backed by a java.nio.ByteBuffer.
Returns a chunk backed by a java.nio.CharBuffer.
Returns a chunk backed by a java.nio.DoubleBuffer.
Returns a chunk backed by a java.nio.FloatBuffer.
Returns a chunk backed by a java.nio.IntBuffer.
Returns a chunk backed by an iterable.
Creates a chunk from an iterator.
Returns a chunk backed by a Java iterable.
Creates a chunk from a Java iterator.
Returns a chunk backed by a java.nio.LongBuffer.
Returns a chunk backed by a java.nio.ShortBuffer.
Returns a singleton chunk, eagerly evaluated.
Alias for Chunk.single.
Constructs a Chunk
by repeatedly applying the function f
as long as it
returns Some
.
Constructs a Chunk
by repeatedly applying the effectual function f
as
long as it returns Some
.
The unit chunk