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.
- Alphabetic
- By Inheritance
- MapPreparer
- Preparer
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def prepareFn: (A) ⇒ T
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
aggregate[B, C](aggregator: Aggregator[T, B, C]): Aggregator[A, B, C]
Produce a new Aggregator which includes the Preparer's transformation chain in its prepare stage.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
collect[U](p: PartialFunction[T, U]): FlatMapPreparer[A, U]
- Definition Classes
- Preparer
-
def
count(pred: (T) ⇒ Boolean): MonoidAggregator[A, Long, Long]
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exists(pred: (T) ⇒ Boolean): MonoidAggregator[A, Boolean, Boolean]
- Definition Classes
- Preparer
-
def
filter(fn: (T) ⇒ Boolean): FlatMapPreparer[A, T]
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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[U](fn: (T) ⇒ TraversableOnce[U]): FlatMapPreparer[A, U] { val prepareFn: A => TraversableOnce[U] }
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
- MapPreparer → Preparer
-
def
flatten[U](implicit ev: <:<[T, TraversableOnce[U]]): FlatMapPreparer[A, U]
Like flatMap using identity.
Like flatMap using identity.
- Definition Classes
- Preparer
-
def
forall(pred: (T) ⇒ Boolean): MonoidAggregator[A, Boolean, Boolean]
- Definition Classes
- Preparer
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
head: Aggregator[A, T, T]
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.
-
def
headOption: MonoidAggregator[A, Option[T], Option[T]]
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def last: Aggregator[A, T, T]
-
def
lastOption: MonoidAggregator[A, Option[T], Option[T]]
- Definition Classes
- Preparer
-
def
lift[B, C](aggregator: Aggregator[T, B, C]): MonoidAggregator[A, Option[B], Option[C]]
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
- def map[U](fn: (T) ⇒ U): MapPreparer[A, U]
- def max(implicit ord: Ordering[T]): Aggregator[A, T, T]
- def maxBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): Aggregator[A, T, T]
-
def
maxOption(implicit ord: Ordering[T]): MonoidAggregator[A, Option[T], Option[T]]
- Definition Classes
- Preparer
-
def
maxOptionBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): MonoidAggregator[A, Option[T], Option[T]]
- Definition Classes
- Preparer
- def min(implicit ord: Ordering[T]): Aggregator[A, T, T]
- def minBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): Aggregator[A, T, T]
-
def
minOption(implicit ord: Ordering[T]): MonoidAggregator[A, Option[T], Option[T]]
- Definition Classes
- Preparer
-
def
minOptionBy[U](fn: (T) ⇒ U)(implicit arg0: Ordering[U]): MonoidAggregator[A, Option[T], Option[T]]
- Definition Classes
- Preparer
-
def
monoidAggregate[B, C](aggregator: MonoidAggregator[T, B, C]): MonoidAggregator[A, B, C]
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
- MapPreparer → Preparer
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def reduce(fn: (T, T) ⇒ T): Aggregator[A, T, T]
-
def
reduceOption(fn: (T, T) ⇒ T): MonoidAggregator[A, Option[T], Option[T]]
- Definition Classes
- Preparer
-
def
size: MonoidAggregator[A, Long, Long]
- Definition Classes
- Preparer
-
def
sortedReverseTake(count: Int)(implicit ord: Ordering[T]): MonoidAggregator[A, PriorityQueue[T], Seq[T]]
- Definition Classes
- Preparer
-
def
sortedTake(count: Int)(implicit ord: Ordering[T]): MonoidAggregator[A, PriorityQueue[T], Seq[T]]
- Definition Classes
- Preparer
-
def
split[B1, B2, C1, C2](fn: (MapPreparer[T, T]) ⇒ (Aggregator[T, B1, C1], Aggregator[T, B2, C2])): Aggregator[A, (B1, B2), (C1, C2)]
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.
- def sum(implicit sg: Semigroup[T]): Aggregator[A, T, T]
-
def
sumOption(implicit sg: Semigroup[T]): MonoidAggregator[A, Option[T], Option[T]]
- Definition Classes
- Preparer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toList: MonoidAggregator[A, Option[Batched[T]], List[T]]
- Definition Classes
- Preparer
-
def
toSet: MonoidAggregator[A, Set[T], Set[T]]
- Definition Classes
- Preparer
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uniqueCount: MonoidAggregator[A, Set[T], Int]
- Definition Classes
- Preparer
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )