Class

monix.tail.batches

GenericBatch

Related Doc: package batches

Permalink

abstract class GenericBatch[+A] extends Batch[A]

Reusable Batch base class that can be used for implementing generators that simply modify their underlying cursor reference.

Linear Supertypes
Batch[A], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenericBatch
  2. Batch
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenericBatch()

    Permalink

Abstract Value Members

  1. abstract def cursor(): BatchCursor[A]

    Permalink
    Definition Classes
    Batch

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def collect[B](pf: PartialFunction[A, B]): Batch[B]

    Permalink

    Creates a generator by transforming values produced by the source with a partial function, dropping those values for which the partial function is not defined.

    Creates a generator by transforming values produced by the source with a partial function, dropping those values for which the partial function is not defined.

    pf

    the partial function which filters and maps the generator.

    returns

    a new generator which yields each value x produced by this generator for which pf is defined

    Definition Classes
    GenericBatchBatch
  7. final def drop(n: Int): Batch[A]

    Permalink

    Creates a new generator from the source, with the first n elements dropped, of if n is higher than the length of the underlying collection, the it mirrors the source, whichever applies.

    Creates a new generator from the source, with the first n elements dropped, of if n is higher than the length of the underlying collection, the it mirrors the source, whichever applies.

    Definition Classes
    GenericBatchBatch
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def filter(p: (A) ⇒ Boolean): Batch[A]

    Permalink

    Returns a generator over all the elements of the source that satisfy the predicate p.

    Returns a generator over all the elements of the source that satisfy the predicate p. The order of the elements is preserved.

    p

    the predicate used to test values.

    returns

    a generator which produces those values of the source which satisfy the predicate p.

    Definition Classes
    GenericBatchBatch
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def foldLeft[R](initial: R)(op: (R, A) ⇒ R): R

    Permalink

    Applies a binary operator to a start value and all elements of this generator, going left to right.

    Applies a binary operator to a start value and all elements of this generator, going left to right.

    R

    is the result type of the binary operator.

    initial

    is the start value.

    op

    the binary operator to apply

    returns

    the result of inserting op between consecutive elements of this generator, going left to right with the start value initial on the left. Returns initial if the generator is empty.

    Definition Classes
    GenericBatchBatch
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def map[B](f: (A) ⇒ B): Batch[B]

    Permalink

    Creates a new generator that maps all values produced by the source to new values using a transformation function.

    Creates a new generator that maps all values produced by the source to new values using a transformation function.

    f

    is the transformation function

    returns

    a new generator which transforms every value produced by the source by applying the function f to it.

    Definition Classes
    GenericBatchBatch
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def slice(from: Int, until: Int): Batch[A]

    Permalink

    Creates a new generator emitting an interval of the values produced by the source.

    Creates a new generator emitting an interval of the values produced by the source.

    from

    the index of the first generated element which forms part of the slice.

    until

    the index of the first element following the slice.

    returns

    a generator which emits the element of the source past the first from elements using drop, and then takes until - from elements, using take

    Definition Classes
    GenericBatchBatch
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. final def take(n: Int): Batch[A]

    Permalink

    Creates a new generator that will only return the first n elements of the source.

    Creates a new generator that will only return the first n elements of the source.

    Definition Classes
    GenericBatchBatch
  23. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]

    Permalink

    Converts this generator into a standard Array.

    Converts this generator into a standard Array.

    Definition Classes
    Batch
  24. def toIterable: Iterable[A]

    Permalink

    Converts this generator into a Scala Iterable.

    Converts this generator into a Scala Iterable.

    Definition Classes
    Batch
  25. def toList: List[A]

    Permalink

    Converts this generator into a Scala immutable List.

    Converts this generator into a Scala immutable List.

    Definition Classes
    Batch
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def transform[B](f: (BatchCursor[A]) ⇒ BatchCursor[B]): Batch[B]

    Permalink

    Transforms this generator with a mapping function for the underlying BatchCursor.

    Transforms this generator with a mapping function for the underlying BatchCursor.

    NOTE: application of this function can be either strict or lazy (depending on the underlying generator type), but it does not modify the original collection.

    • if this generator is an Array-backed generator, the given function will be applied immediately to create a new array with an accompanying generator.
    • if this generator is backed by Iterable, then the given function will be applied lazily, on demand
    f

    is the function used

    returns

    a new generator with its underlying sequence transformed by the mapping function

    Attributes
    protected
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Batch[A]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped