com.twitter.algebird

Batched

object Batched extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Batched
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. 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).

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

    Constructed a batch from a single value.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. 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).

  11. 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.

  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. 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).

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def fold[T](batchSize: Int)(implicit m: Monoid[T]): Fold[T, T]

  17. def foldOption[T](batchSize: Int)(implicit arg0: Semigroup[T]): Fold[T, Option[T]]

  18. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  21. 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.

  22. 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).

  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. 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.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped