Batch

object Batch

Batch builders.

Batch builders.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](elems: A*): Batch[A]

Given a list of elements, builds an array-backed Batch out of it.

Given a list of elements, builds an array-backed Batch out of it.

def booleans(array: Array[Boolean]): BooleansBatch

Returns a Batch specialized for Boolean.

Returns a Batch specialized for Boolean.

Value Params
array

is the underlying reference to use for traversing and transformations

def booleans(array: Array[Boolean], offset: Int, length: Int): BooleansBatch

Returns a Batch specialized for Boolean.

Returns a Batch specialized for Boolean.

Value Params
array

is the underlying reference to use for traversing and transformations

length

is the length of created cursor, which would have been array.length by default

offset

is the offset to start from, which would have been zero by default

def bytes(array: Array[Byte]): BytesBatch

Returns a Batch specialized for Byte.

Returns a Batch specialized for Byte.

Value Params
array

is the underlying reference to use for traversing and transformations

def bytes(array: Array[Byte], offset: Int, length: Int): BytesBatch

Returns a Batch specialized for Byte.

Returns a Batch specialized for Byte.

Value Params
array

is the underlying reference to use for traversing and transformations

length

is the length of created cursor, which would have been array.length by default

offset

is the offset to start from, which would have been zero by default

def chars(array: Array[Char]): CharsBatch

Returns a Batch specialized for Char.

Returns a Batch specialized for Char.

Value Params
array

is the underlying reference to use for traversing and transformations

def chars(array: Array[Char], offset: Int, length: Int): CharsBatch

Returns a Batch specialized for Char.

Returns a Batch specialized for Char.

Value Params
array

is the underlying reference to use for traversing and transformations

length

is the length of created cursor, which would have been array.length by default

offset

is the offset to start from, which would have been zero by default

def doubles(array: Array[Double]): DoublesBatch

Returns a Batch specialized for Double.

Returns a Batch specialized for Double.

Value Params
array

is the underlying reference to use for traversing and transformations

def doubles(array: Array[Double], offset: Int, length: Int): DoublesBatch

Returns a Batch specialized for Double.

Returns a Batch specialized for Double.

Value Params
array

is the underlying reference to use for traversing and transformations

length

is the length of created cursor, which would have been array.length by default

offset

is the offset to start from, which would have been zero by default

def empty[A]: Batch[A]

Returns an empty generator instance.

Returns an empty generator instance.

def fromArray[A](array: Array[A]): ArrayBatch[A]

Builds a Batch from a standard Array, with strict semantics on transformations.

Builds a Batch from a standard Array, with strict semantics on transformations.

Value Params
array

is the underlying reference to use for traversing and transformations

def fromArray[A](array: Array[A], offset: Int, length: Int): ArrayBatch[A]

Builds a Batch from a standard Array, with strict semantics on transformations.

Builds a Batch from a standard Array, with strict semantics on transformations.

Value Params
array

is the underlying reference to use for traversing and transformations

length

is the length of created cursor, which would have been array.length by default

offset

is the offset to start from, which would have been zero by default

def fromIndexedSeq[A](seq: IndexedSeq[A]): Batch[A]

Builds a Batch from a Scala IndexedSeq, with strict semantics on transformations.

Builds a Batch from a Scala IndexedSeq, with strict semantics on transformations.

def fromIterable[A](iter: Iterable[A]): Batch[A]

Converts a Scala Iterable into a Batch.

Converts a Scala Iterable into a Batch.

def fromIterable[A](iter: Iterable[A], recommendedBatchSize: Int): Batch[A]

Converts a Scala Iterable into a Batch.

Converts a Scala Iterable into a Batch.

Value Params
recommendedBatchSize

specifies the BatchCursor.recommendedBatchSize for the generated BatchCursor instances of this Batch, specifying the batch size when doing eager processing.

def fromSeq[A](seq: Seq[A]): Batch[A]

Builds a Batch from a Scala Seq, with lazy semantics on transformations.

Builds a Batch from a Scala Seq, with lazy semantics on transformations.

def fromSeq[A](seq: Seq[A], recommendedBatchSize: Int): Batch[A]

Builds a Batch from a Scala Seq, with lazy semantics on transformations.

Builds a Batch from a Scala Seq, with lazy semantics on transformations.

def integers(array: Array[Int], offset: Int, length: Int): IntegersBatch

Returns a Batch specialized for Int.

Returns a Batch specialized for Int.

Value Params
array

is the underlying reference to use for traversing and transformations

length

is the length of created cursor, which would have been array.length by default

offset

is the offset to start from, which would have been zero by default

def integers(array: Array[Int]): IntegersBatch

Returns a Batch specialized for Int.

Returns a Batch specialized for Int.

Value Params
array

is the underlying reference to use for traversing and transformations

def longs(array: Array[Long]): LongsBatch

Returns a Batch specialized for Long.

Returns a Batch specialized for Long.

Value Params
array

is the underlying reference to use for traversing and transformations

def longs(array: Array[Long], offset: Int, length: Int): LongsBatch

Returns a Batch specialized for Long.

Returns a Batch specialized for Long.

Value Params
array

is the underlying reference to use for traversing and transformations

length

is the length of created cursor, which would have been array.length by default

offset

is the offset to start from, which would have been zero by default

def range(from: Int, until: Int, step: Int): Batch[Int]

A generator producing equally spaced values in some integer interval.

A generator producing equally spaced values in some integer interval.

Value Params
from

the start value of the generator

step

the increment value of the generator (must be positive or negative)

until

the end value of the generator (the first value NOT returned)

Returns

the generator producing values from, from + step, ... up to, but excluding end