Boxed
- Companion
- object
Value members
Methods
Inherited methods
Zips this chunk with the supplied chunk, passing each pair to
an output chunk.
f
, resulting inan output chunk.
- Inhertied from
- Chunk
Converts this chunk to a
If this chunk is already backed by an unboxed array of booleans, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
Chunk.Booleans
, allowing access to the underlying array of elements.If this chunk is already backed by an unboxed array of booleans, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
- Inhertied from
- Chunk
Converts this chunk to a
If this chunk is already backed by an unboxed array of doubles, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
Chunk.Floats
, allowing access to the underlying array of elements.If this chunk is already backed by an unboxed array of doubles, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
- Inhertied from
- Chunk
Like
the last element of the accumulated chunk.
scanLeft
except the final element is emitted as a standalone value instead of asthe last element of the accumulated chunk.
Equivalent to
val b = a.scanLeft(z)(f); val (c, carry) = b.splitAt(b.size - 1)
.- Inhertied from
- Chunk
Creates an iterator that iterates the elements of this chunk in reverse order. The returned iterator is not thread safe.
- Inhertied from
- Chunk
Converts this chunk to a
If this chunk is already backed by an unboxed array of bytes, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
Chunk.Ints
, allowing access to the underlying array of elements.If this chunk is already backed by an unboxed array of bytes, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
- Inhertied from
- Chunk
Converts this chunk to a
If this chunk is already backed by an unboxed array of longs, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
Chunk.Longs
, allowing access to the underlying array of elements.If this chunk is already backed by an unboxed array of longs, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
- Inhertied from
- Chunk
Maps the supplied stateful function over each element, outputting the final state and the accumulated outputs.
The first invocation of
the output state of the previous invocation.
The first invocation of
f
uses init
as the input state value. Each successive invocation usesthe output state of the previous invocation.
- Inhertied from
- Chunk
Returns true if this chunk is known to have elements of type
This is determined by checking if the chunk type mixes in
B
.This is determined by checking if the chunk type mixes in
Chunk.KnownElementType
.- Inhertied from
- Chunk
Converts this chunk to a
If this chunk is already backed by an unboxed array of bytes, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
Chunk.Shorts
, allowing access to the underlying array of elements.If this chunk is already backed by an unboxed array of bytes, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
- Inhertied from
- Chunk
Zips the elements of the input chunk with its indices, and returns the new chunk.
- Example
- {{{
scala> Chunk("The", "quick", "brown", "fox").zipWithIndex.toList
res0: List[(String, Int)] = List((The,0), (quick,1), (brown,2), (fox,3))
}}} - Inhertied from
- Chunk
Returns the first element for which the predicate returns true or
None
if no elements satisfy the predicate.- Inhertied from
- Chunk
Converts this chunk to a
If this chunk is already backed by an unboxed array of doubles, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
Chunk.Doubles
, allowing access to the underlying array of elements.If this chunk is already backed by an unboxed array of doubles, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
- Inhertied from
- Chunk
Returns the index of the first element which passes the specified predicate (i.e.,
or
p(i) == true
)or
None
if no elements pass the predicate.- Inhertied from
- Chunk
Converts this chunk to a
If this chunk is already backed by an unboxed array of bytes, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
Chunk.Bytes
, allowing access to the underlying array of elements.If this chunk is already backed by an unboxed array of bytes, this method runs in constant time.
Otherwise, this method will copy of the elements of this chunk in to a single array.
- Inhertied from
- Chunk
Creates an iterator that iterates the elements of this chunk. The returned iterator is not thread safe.
- Inhertied from
- Chunk