public final class ParallelTransformers extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<? super T>> |
orderedMerge(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 Comparable<? super T>> |
orderedMerge(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 Comparable<? super T>> |
orderedMerge(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> Flowable<T> |
orderedMerge(ParallelFlowable<T> source,
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> Flowable<T> |
orderedMerge(ParallelFlowable<T> source,
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> Flowable<T> |
orderedMerge(ParallelFlowable<T> source,
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 Number> |
sumDouble()
Sums the numbers as longs on each rail.
|
static <T extends Number> |
sumInteger()
Sums the numbers as integers on each rail.
|
static <T extends Number> |
sumLong()
Sums the numbers as longs on each rail.
|
public static <T extends Comparable<? super T>> Flowable<T> orderedMerge(ParallelFlowable<T> source)
T
- the value type of all sourcessource
- the source ParallelFlowablepublic static <T extends Comparable<? super T>> Flowable<T> orderedMerge(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 Comparable<? super T>> Flowable<T> orderedMerge(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> Flowable<T> orderedMerge(ParallelFlowable<T> source, 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> Flowable<T> orderedMerge(ParallelFlowable<T> source, 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> Flowable<T> orderedMerge(ParallelFlowable<T> source, 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 Number> ParallelTransformer<T,Integer> sumInteger()
T
- the numerical type of the input valuespublic static <T extends Number> ParallelTransformer<T,Long> sumLong()
T
- the numerical type of the input valuespublic static <T extends Number> ParallelTransformer<T,Double> sumDouble()
T
- the numerical type of the input values