Packages

object Batched extends Serializable

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Batched
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def aggregator[A, B, C](batchSize: Int, agg: Aggregator[A, B, C]): Aggregator[A, Batched[B], C]

    This aggregator batches up agg so that all the addition can be performed at once.

    This aggregator batches up agg so that all the addition can be performed at once.

    It is useful when sumOption is much faster than using plus (e.g. when there is temporary mutable state used to make summation fast).

  5. def apply[T](t: T): Batched[T]

    Constructed a batch from a single value.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def compactingMonoid[A](batchSize: Int)(implicit arg0: Monoid[A]): Monoid[Batched[A]]

    Compacting monoid for batched values.

    Compacting monoid for batched values.

    This monoid ensures that the batch's tree structure has fewer than batchSize values in it. When more values are added, the tree is compacted using m.

    It's worth noting that x + 0 here will produce the same sum as x, but .toList will produce different lists (one will have an extra zero).

  9. def compactingSemigroup[A](batchSize: Int)(implicit arg0: Semigroup[A]): Semigroup[Batched[A]]

    Compacting semigroup for batched values.

    Compacting semigroup for batched values.

    This semigroup ensures that the batch's tree structure has fewer than batchSize values in it. When more values are added, the tree is compacted using s.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. implicit def equiv[A](implicit e: Equiv[A], s: Semigroup[A]): Equiv[Batched[A]]

    Equivalence for batches.

    Equivalence for batches.

    Batches are equivalent if they sum to the same value. Since the free semigroup is associative, it's not correct to take tree structure into account when determining equality.

    One thing to note here is that two equivalent batches might produce different lists (for instance, if one of the batches has more zeros in it than another one).

  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def fold[T](batchSize: Int)(implicit m: Monoid[T]): Fold[T, T]
  15. def foldOption[T](batchSize: Int)(implicit arg0: Semigroup[T]): Fold[T, Option[T]]
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def items[T](ts: TraversableOnce[T]): Option[Batched[T]]

    Constructed an optional batch from a collection of values.

    Constructed an optional batch from a collection of values.

    Since batches cannot be empty, this method returns None if ts is empty, and Some(batch) otherwise.

  20. def monoidAggregator[A, B, C](batchSize: Int, agg: MonoidAggregator[A, B, C]): MonoidAggregator[A, Batched[B], C]

    This monoid aggregator batches up agg so that all the addition can be performed at once.

    This monoid aggregator batches up agg so that all the addition can be performed at once.

    It is useful when sumOption is much faster than using plus (e.g. when there is temporary mutable state used to make summation fast).

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. implicit def semigroup[A]: Semigroup[Batched[A]]

    The free semigroup for batched values.

    The free semigroup for batched values.

    This semigroup just accumulates batches and doesn't ever evaluate them to flatten the tree.

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped