Trait/Object

com.twitter.algebird

MapPreparer

Related Docs: object MapPreparer | package algebird

Permalink

trait MapPreparer[A, T] extends Preparer[A, T]

A Preparer that has had zero or more map transformations applied, but no flatMaps. This can produce any type of Aggregator.

Source
Preparer.scala
Linear Supertypes
Preparer[A, T], Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapPreparer
  2. Preparer
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def prepareFn: (A) ⇒ T

    Permalink

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. def aggregate[B, C](aggregator: Aggregator[T, B, C]): Aggregator[A, B, C]

    Permalink

    Produce a new Aggregator which includes the Preparer's transformation chain in its prepare stage.

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def collect[U](p: PartialFunction[T, U]): FlatMapPreparer[A, U]

    Permalink
    Definition Classes
    Preparer
  8. def count(pred: (T) ⇒ Boolean): MonoidAggregator[A, Long, Long]

    Permalink

    count and following methods all just call monoidAggregate with one of the standard Aggregators.

    count and following methods all just call monoidAggregate with one of the standard Aggregators. see the Aggregator object for more docs.

    Definition Classes
    Preparer
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def exists(pred: (T) ⇒ Boolean): MonoidAggregator[A, Boolean, Boolean]

    Permalink
    Definition Classes
    Preparer
  12. def filter(fn: (T) ⇒ Boolean): FlatMapPreparer[A, T]

    Permalink

    Filter out values that do not meet the predicate.

    Filter out values that do not meet the predicate. Like flatMap, this limits future aggregations to MonoidAggregator.

    Definition Classes
    Preparer
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[U](fn: (T) ⇒ TraversableOnce[U]): FlatMapPreparer[A, U] { val prepareFn: A => TraversableOnce[U] }

    Permalink

    Produce a new Preparer that chains this one-to-many transformation.

    Produce a new Preparer that chains this one-to-many transformation. Because "many" could include "none", this limits future aggregations to those done using monoids.

    Definition Classes
    MapPreparerPreparer
  15. def flatten[U](implicit ev: <:<[T, TraversableOnce[U]]): FlatMapPreparer[A, U]

    Permalink

    Like flatMap using identity.

    Like flatMap using identity.

    Definition Classes
    Preparer
  16. def forall(pred: (T) ⇒ Boolean): MonoidAggregator[A, Boolean, Boolean]

    Permalink
    Definition Classes
    Preparer
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def head: Aggregator[A, T, T]

    Permalink

    head and following methods all just call aggregate with one of the standard Aggregators.

    head and following methods all just call aggregate with one of the standard Aggregators. see the Aggregator object for more docs.

  20. def headOption: MonoidAggregator[A, Option[T], Option[T]]

    Permalink

    headOption and following methods are all just calling lift with standard Aggregators see the Aggregator object for more docs

    headOption and following methods are all just calling lift with standard Aggregators see the Aggregator object for more docs

    Definition Classes
    Preparer
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def last: Aggregator[A, T, T]

    Permalink
  23. def lastOption: MonoidAggregator[A, Option[T], Option[T]]

    Permalink
    Definition Classes
    Preparer
  24. def lift[B, C](aggregator: Aggregator[T, B, C]): MonoidAggregator[A, Option[B], Option[C]]

    Permalink

    transform a given Aggregator into a MonoidAggregator by lifting the reduce and present stages into Option space

    transform a given Aggregator into a MonoidAggregator by lifting the reduce and present stages into Option space

    Definition Classes
    Preparer
  25. def map[U](fn: (T) ⇒ U): MapPreparer[A, U]

    Permalink
  26. def max(implicit ord: Ordering[T]): Aggregator[A, T, T]

    Permalink
  27. def maxBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): Aggregator[A, T, T]

    Permalink
  28. def maxOption(implicit ord: Ordering[T]): MonoidAggregator[A, Option[T], Option[T]]

    Permalink
    Definition Classes
    Preparer
  29. def maxOptionBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): MonoidAggregator[A, Option[T], Option[T]]

    Permalink
    Definition Classes
    Preparer
  30. def min(implicit ord: Ordering[T]): Aggregator[A, T, T]

    Permalink
  31. def minBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): Aggregator[A, T, T]

    Permalink
  32. def minOption(implicit ord: Ordering[T]): MonoidAggregator[A, Option[T], Option[T]]

    Permalink
    Definition Classes
    Preparer
  33. def minOptionBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): MonoidAggregator[A, Option[T], Option[T]]

    Permalink
    Definition Classes
    Preparer
  34. def monoidAggregate[B, C](aggregator: MonoidAggregator[T, B, C]): MonoidAggregator[A, B, C]

    Permalink

    Produce a new MonoidAggregator which includes the Preparer's transformation chain in its prepare stage.

    Produce a new MonoidAggregator which includes the Preparer's transformation chain in its prepare stage.

    Definition Classes
    MapPreparerPreparer
  35. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  38. def reduce(fn: (T, T) ⇒ T): Aggregator[A, T, T]

    Permalink
  39. def reduceOption(fn: (T, T) ⇒ T): MonoidAggregator[A, Option[T], Option[T]]

    Permalink
    Definition Classes
    Preparer
  40. def size: MonoidAggregator[A, Long, Long]

    Permalink
    Definition Classes
    Preparer
  41. def sortedReverseTake(count: Int)(implicit ord: Ordering[T]): MonoidAggregator[A, PriorityQueue[T], Seq[T]]

    Permalink
    Definition Classes
    Preparer
  42. def sortedTake(count: Int)(implicit ord: Ordering[T]): MonoidAggregator[A, PriorityQueue[T], Seq[T]]

    Permalink
    Definition Classes
    Preparer
  43. def split[B1, B2, C1, C2](fn: (MapPreparer[T, T]) ⇒ (Aggregator[T, B1, C1], Aggregator[T, B2, C2])): Aggregator[A, (B1, B2), (C1, C2)]

    Permalink

    Split the processing into two parallel aggregations.

    Split the processing into two parallel aggregations. You provide a function which produces two different aggregators from this preparer, and it will return a single aggregator which does both aggregations in parallel. (See also Aggregator's join method.)

    We really need to generate N versions of this for 3-way, 4-way etc splits.

  44. def sum(implicit sg: Semigroup[T]): Aggregator[A, T, T]

    Permalink
  45. def sumOption(implicit sg: Semigroup[T]): MonoidAggregator[A, Option[T], Option[T]]

    Permalink
    Definition Classes
    Preparer
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def toList: MonoidAggregator[A, Option[Batched[T]], List[T]]

    Permalink
    Definition Classes
    Preparer
  48. def toSet: MonoidAggregator[A, Set[T], Set[T]]

    Permalink
    Definition Classes
    Preparer
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def uniqueCount: MonoidAggregator[A, Set[T], Int]

    Permalink
    Definition Classes
    Preparer
  51. final def wait(): Unit

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

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

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

Inherited from Preparer[A, T]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped