trait EventuallyAggregator[A, E, O, C] extends AbstractEventuallyAggregator[A, E, O, C]
- Alphabetic
- By Inheritance
- EventuallyAggregator
- AbstractEventuallyAggregator
- Aggregator
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def convert(o: O): E
- Definition Classes
- AbstractEventuallyAggregator
- abstract def leftSemigroup: Semigroup[E]
- Definition Classes
- AbstractEventuallyAggregator
- abstract def mustConvert(o: O): Boolean
- Definition Classes
- AbstractEventuallyAggregator
- abstract def presentLeft(e: E): C
- Definition Classes
- AbstractEventuallyAggregator
- abstract def rightAggregator: Aggregator[A, O, C]
- Definition Classes
- AbstractEventuallyAggregator
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 andThenPresent[D](present2: (C) => D): Aggregator[A, Either[E, O], D]
Like calling andThen on the present function
Like calling andThen on the present function
- Definition Classes
- Aggregator
- def append(l: Either[E, O], r: A): Either[E, O]
- Definition Classes
- Aggregator
- def appendAll(old: Either[E, O], items: TraversableOnce[A]): Either[E, O]
- Definition Classes
- Aggregator
- def apply(inputs: TraversableOnce[A]): C
This may error if inputs are empty (for Monoid Aggregators it never will, instead you see present(Monoid.zero[B])
This may error if inputs are empty (for Monoid Aggregators it never will, instead you see present(Monoid.zero[B])
- Definition Classes
- Aggregator
- def applyCumulatively[In <: TraversableOnce[A], Out](inputs: In)(implicit bf: CanBuildFrom[In, C, Out]): Out
This returns the cumulative sum of its inputs, in the same order.
This returns the cumulative sum of its inputs, in the same order. If the inputs are empty, the result will be empty too.
- Definition Classes
- Aggregator
- def applyOption(inputs: TraversableOnce[A]): Option[C]
This returns None if the inputs are empty
This returns None if the inputs are empty
- Definition Classes
- Aggregator
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def composePrepare[A1](prepare2: (A1) => A): Aggregator[A1, Either[E, O], C]
Like calling compose on the prepare function
Like calling compose on the prepare function
- Definition Classes
- Aggregator
- def cumulativeIterator(inputs: Iterator[A]): Iterator[C]
This returns the cumulative sum of its inputs, in the same order.
This returns the cumulative sum of its inputs, in the same order. If the inputs are empty, the result will be empty too.
- Definition Classes
- Aggregator
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def join[A2 <: A, B2, C2](that: Aggregator[A2, B2, C2]): Aggregator[A2, (Either[E, O], B2), (C, C2)]
This allows you to run two aggregators on the same data with a single pass
This allows you to run two aggregators on the same data with a single pass
- Definition Classes
- Aggregator
- def lift: MonoidAggregator[A, Option[Either[E, O]], Option[C]]
- Definition Classes
- Aggregator
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def prepare(a: A): Right[Nothing, O]
- Definition Classes
- AbstractEventuallyAggregator → Aggregator
- def present(b: Either[E, O]): C
- Definition Classes
- AbstractEventuallyAggregator → Aggregator
- def reduce(items: TraversableOnce[Either[E, O]]): Either[E, O]
This may error if items is empty.
This may error if items is empty. To be safe you might use reduceOption if you don't know that items is non-empty
- Definition Classes
- Aggregator
- def reduce(l: Either[E, O], r: Either[E, O]): Either[E, O]
combine two inner values
combine two inner values
- Definition Classes
- Aggregator
- def reduceOption(items: TraversableOnce[Either[E, O]]): Option[Either[E, O]]
This is the safe version of the above.
This is the safe version of the above. If the input in empty, return None, else reduce the items
- Definition Classes
- Aggregator
- lazy val semigroup: EventuallySemigroup[E, O]
- Definition Classes
- EventuallyAggregator → Aggregator
- Annotations
- @transient()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toFold: Fold[A, Option[C]]
An Aggregator can be converted to a Fold, but not vice-versa Note, a Fold is more constrained so only do this if you require joining a Fold with an Aggregator to produce a Fold
An Aggregator can be converted to a Fold, but not vice-versa Note, a Fold is more constrained so only do this if you require joining a Fold with an Aggregator to produce a Fold
- Definition Classes
- Aggregator
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def zip[A2, B2, C2](ag2: Aggregator[A2, B2, C2]): Aggregator[(A, A2), (Either[E, O], B2), (C, C2)]
This allows you to join two aggregators into one that takes a tuple input, which in turn allows you to chain .composePrepare onto the result if you have an initial input that has to be prepared differently for each of the joined aggregators.
This allows you to join two aggregators into one that takes a tuple input, which in turn allows you to chain .composePrepare onto the result if you have an initial input that has to be prepared differently for each of the joined aggregators.
The law here is: ag1.zip(ag2).apply(as.zip(bs)) == (ag1(as), ag2(bs))
- Definition Classes
- Aggregator