public final class ParallelTransformers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Comparable<? super T>> |
orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source)
Merges the source ParallelFlowable rails in an ordered fashion picking the smallest of the available value from
them (determined by their natural order).
|
static <T extends java.lang.Comparable<? super T>> |
orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
boolean delayErrors)
Merges the source ParallelFlowable rails in an ordered fashion picking the smallest of the available value from
them (determined by their natural order) and allows delaying any error they may signal.
|
static <T extends java.lang.Comparable<? super T>> |
orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
boolean delayErrors,
int prefetch)
Merges the source ParallelFlowable rails in an ordered fashion picking the smallest of the available value from
them (determined by their natural order), allows delaying any error they may signal and sets the prefetch
amount when requesting from these Publishers.
|
static <T> io.reactivex.Flowable<T> |
orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
java.util.Comparator<? super T> comparator)
Merges the source ParallelFlowable rails in an ordered fashion picking the smallest of the available value from
them (determined by the Comparator).
|
static <T> io.reactivex.Flowable<T> |
orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
java.util.Comparator<? super T> comparator,
boolean delayErrors)
Merges the source ParallelFlowable rails in an ordered fashion picking the smallest of the available value from
them (determined by the Comparator) and allows delaying any error they may signal.
|
static <T> io.reactivex.Flowable<T> |
orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
java.util.Comparator<? super T> comparator,
boolean delayErrors,
int prefetch)
Merges the source ParallelFlowable rails in an ordered fashion picking the smallest of the available value from
them (determined by the Comparator), allows delaying any error they may signal and sets the prefetch
amount when requesting from these Publishers.
|
static <T extends java.lang.Number> |
sumDouble()
Sums the numbers as longs on each rail.
|
static <T extends java.lang.Number> |
sumInteger()
Sums the numbers as integers on each rail.
|
static <T extends java.lang.Number> |
sumLong()
Sums the numbers as longs on each rail.
|
public static <T extends java.lang.Comparable<? super T>> io.reactivex.Flowable<T> orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source)
T - the value type of all sourcessource - the source ParallelFlowablepublic static <T extends java.lang.Comparable<? super T>> io.reactivex.Flowable<T> orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
boolean delayErrors)
T - the value type of all sourcessource - the source ParallelFlowabledelayErrors - if true, source errors are delayed until all sources terminate in some waypublic static <T extends java.lang.Comparable<? super T>> io.reactivex.Flowable<T> orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
boolean delayErrors,
int prefetch)
T - the value type of all sourcessource - the source ParallelFlowabledelayErrors - if true, source errors are delayed until all sources terminate in some wayprefetch - the number of items to prefetch from the sourcespublic static <T> io.reactivex.Flowable<T> orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
java.util.Comparator<? super T> comparator)
T - the value type of all sourcessource - the source ParallelFlowablecomparator - the comparator to use for comparing items;
it is called with the last known smallest in its first argumentpublic static <T> io.reactivex.Flowable<T> orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
java.util.Comparator<? super T> comparator,
boolean delayErrors)
T - the value type of all sourcessource - the source ParallelFlowablecomparator - the comparator to use for comparing items;
it is called with the last known smallest in its first argumentdelayErrors - if true, source errors are delayed until all sources terminate in some waypublic static <T> io.reactivex.Flowable<T> orderedMerge(io.reactivex.parallel.ParallelFlowable<T> source,
java.util.Comparator<? super T> comparator,
boolean delayErrors,
int prefetch)
T - the value type of all sourcessource - the source ParallelFlowablecomparator - the comparator to use for comparing items;
it is called with the last known smallest in its first argumentdelayErrors - if true, source errors are delayed until all sources terminate in some wayprefetch - the number of items to prefetch from the sourcespublic static <T extends java.lang.Number> io.reactivex.parallel.ParallelTransformer<T,java.lang.Integer> sumInteger()
T - the numerical type of the input valuespublic static <T extends java.lang.Number> io.reactivex.parallel.ParallelTransformer<T,java.lang.Long> sumLong()
T - the numerical type of the input valuespublic static <T extends java.lang.Number> io.reactivex.parallel.ParallelTransformer<T,java.lang.Double> sumDouble()
T - the numerical type of the input values