Class FlatMapDoubleOperation
- java.lang.Object
-
- org.infinispan.stream.impl.intops.primitive.d.FlatMapDoubleOperation
-
- All Implemented Interfaces:
FlatMappingOperation<Double,DoubleStream,Double,DoubleStream>,IntermediateOperation<Double,DoubleStream,Double,DoubleStream>,MappingOperation<Double,DoubleStream,Double,DoubleStream>
public class FlatMapDoubleOperation extends Object implements FlatMappingOperation<Double,DoubleStream,Double,DoubleStream>
Performs flat map operation on aDoubleStream
-
-
Constructor Summary
Constructors Constructor Description FlatMapDoubleOperation(DoubleFunction<? extends DoubleStream> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleFunction<? extends DoubleStream>getFunction()Stream<DoubleStream>map(DoubleStream doubleStream)Instead of flat mapping this returns a stream ofFlatMappingOperation.io.reactivex.rxjava3.core.Flowable<Double>mapFlowable(io.reactivex.rxjava3.core.Flowable<Double> input)Performs the intermediate operation on a Flowable.DoubleStreamperform(DoubleStream stream)Performs the actualy intermediate operation returning the resulting stream-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.stream.impl.intops.IntermediateOperation
handleInjection
-
-
-
-
Constructor Detail
-
FlatMapDoubleOperation
public FlatMapDoubleOperation(DoubleFunction<? extends DoubleStream> function)
-
-
Method Detail
-
perform
public DoubleStream perform(DoubleStream stream)
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream- Specified by:
performin interfaceIntermediateOperation<Double,DoubleStream,Double,DoubleStream>- Parameters:
stream- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getFunction
public DoubleFunction<? extends DoubleStream> getFunction()
-
map
public Stream<DoubleStream> map(DoubleStream doubleStream)
Description copied from interface:FlatMappingOperationInstead of flat mapping this returns a stream ofFlatMappingOperation.- Specified by:
mapin interfaceFlatMappingOperation<Double,DoubleStream,Double,DoubleStream>- Parameters:
doubleStream- the stream to convert- Returns:
- the stream of streams
-
mapFlowable
public io.reactivex.rxjava3.core.Flowable<Double> mapFlowable(io.reactivex.rxjava3.core.Flowable<Double> 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<Double,DoubleStream,Double,DoubleStream>- Parameters:
input- the input flowable- Returns:
-
-