Package org.aksw.commons.rx.op
Class RxOps
java.lang.Object
org.aksw.commons.rx.op.RxOps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I,O> io.reactivex.rxjava3.core.FlowableTransformer<I, O> createParallelFlatMapperOrdered(Function<? super I, ? extends Iterable<? extends O>> mapper) static <I,O> io.reactivex.rxjava3.core.FlowableTransformer<I, O> createParallelMapperOrdered(Function<? super I, O> mapper) Factory method for yielding a FlowableTransformer that applies a given flatMap function in parallel but apply local ordering so that items are emitted in orderstatic <I,O> io.reactivex.rxjava3.core.FlowableTransformer<I, O> createParallelMapperOrderedCore(io.reactivex.rxjava3.parallel.ParallelTransformer<Map.Entry<I, Long>, Map.Entry<O, Long>> parallelTransformer) Factory method for yielding a FlowableTransformer that applies a given parallelTransformer thereby providing wrapping for local ordering so that items are emitted in orderstatic <I,O> Iterator<O> Transform an iterator using a flowable transformer
-
Constructor Details
-
RxOps
public RxOps()
-
-
Method Details
-
transform
public static <I,O> Iterator<O> transform(Iterator<I> it, io.reactivex.rxjava3.core.FlowableTransformer<? super I, O> transformer) Transform an iterator using a flowable transformer -
createParallelMapperOrderedCore
public static <I,O> io.reactivex.rxjava3.core.FlowableTransformer<I,O> createParallelMapperOrderedCore(io.reactivex.rxjava3.parallel.ParallelTransformer<Map.Entry<I, Long>, Map.Entry<O, Long>> parallelTransformer) Factory method for yielding a FlowableTransformer that applies a given parallelTransformer thereby providing wrapping for local ordering so that items are emitted in order- Type Parameters:
I-O-- Parameters:
flatMapper-- Returns:
-
createParallelMapperOrdered
public static <I,O> io.reactivex.rxjava3.core.FlowableTransformer<I,O> createParallelMapperOrdered(Function<? super I, O> mapper) Factory method for yielding a FlowableTransformer that applies a given flatMap function in parallel but apply local ordering so that items are emitted in order- Type Parameters:
I-O-- Parameters:
flatMapper-- Returns:
-
createParallelFlatMapperOrdered
-