Class FlatMapOperation<I,O>
java.lang.Object
org.infinispan.stream.impl.intops.object.FlatMapOperation<I,O>
- Type Parameters:
I- the type of the input streamO- the type of the output stream
- All Implemented Interfaces:
FlatMappingOperation<I,,Stream<I>, O, Stream<O>> IntermediateOperation<I,,Stream<I>, O, Stream<O>> MappingOperation<I,Stream<I>, O, Stream<O>>
public class FlatMapOperation<I,O>
extends Object
implements FlatMappingOperation<I,Stream<I>,O,Stream<O>>
Performs flat map operation on a regular
Stream-
Constructor Summary
ConstructorsConstructorDescriptionFlatMapOperation(Function<? super I, ? extends Stream<? extends O>> function) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleInjection(ComponentRegistry registry) Handles injection of components for various dependencies that the intermediate operation hasInstead of flat mapping this returns a stream ofFlatMappingOperation.io.reactivex.rxjava3.core.Flowable<O>mapFlowable(io.reactivex.rxjava3.core.Flowable<I> input) Performs the intermediate operation on a Flowable.Performs the actualy intermediate operation returning the resulting stream
-
Constructor Details
-
FlatMapOperation
-
-
Method Details
-
perform
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream -
getFunction
-
handleInjection
Description copied from interface:IntermediateOperationHandles injection of components for various dependencies that the intermediate operation has- Specified by:
handleInjectionin interfaceIntermediateOperation<I,Stream<I>, O, Stream<O>> - Parameters:
registry- the registry to use
-
map
Description copied from interface:FlatMappingOperationInstead of flat mapping this returns a stream ofFlatMappingOperation. -
mapFlowable
public io.reactivex.rxjava3.core.Flowable<O> mapFlowable(io.reactivex.rxjava3.core.Flowable<I> input) Description copied from interface:IntermediateOperationPerforms the intermediate operation on a Flowable. This is an interop method to allow Distributed Streams to actually use Distributed Publisher- Specified by:
mapFlowablein interfaceIntermediateOperation<I,Stream<I>, O, Stream<O>> - Parameters:
input- the input flowable- Returns:
-