Class FlatMapToDoubleOperation<I>
java.lang.Object
org.infinispan.stream.impl.intops.object.FlatMapToDoubleOperation<I>
- Type Parameters:
I- the type of the input stream
- All Implemented Interfaces:
FlatMappingOperation<I,,Stream<I>, Double, DoubleStream> IntermediateOperation<I,,Stream<I>, Double, DoubleStream> MappingOperation<I,Stream<I>, Double, DoubleStream>
public class FlatMapToDoubleOperation<I>
extends Object
implements FlatMappingOperation<I,Stream<I>,Double,DoubleStream>
Performs flat map to double operation on a regular
Stream-
Constructor Summary
ConstructorsConstructorDescriptionFlatMapToDoubleOperation(Function<? super I, ? extends DoubleStream> function) -
Method Summary
Modifier and TypeMethodDescriptionFunction<? super I,? extends DoubleStream> Instead of flat mapping this returns a stream ofFlatMappingOperation.io.reactivex.rxjava3.core.Flowable<Double>mapFlowable(io.reactivex.rxjava3.core.Flowable<I> input) Performs the intermediate operation on a Flowable.Performs the actualy intermediate operation returning the resulting streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.stream.impl.intops.IntermediateOperation
handleInjection
-
Constructor Details
-
FlatMapToDoubleOperation
-
-
Method Details
-
perform
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream- Specified by:
performin interfaceIntermediateOperation<I,Stream<I>, Double, DoubleStream> - Parameters:
stream- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getFunction
-
map
Description copied from interface:FlatMappingOperationInstead of flat mapping this returns a stream ofFlatMappingOperation.- Specified by:
mapin interfaceFlatMappingOperation<I,Stream<I>, Double, DoubleStream> - Parameters:
iStream- the stream to convert- Returns:
- the stream of streams
-
mapFlowable
public io.reactivex.rxjava3.core.Flowable<Double> 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>, Double, DoubleStream> - Parameters:
input- the input flowable- Returns:
-