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 regularStream
-
-
Constructor Summary
Constructors Constructor Description FlatMapOperation(Function<? super I,? extends Stream<? extends O>> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<? super I,? extends Stream<? extends O>>
getFunction()
Stream<Stream<O>>
map(Stream<I> iStream)
Instead of flat mapping this returns a stream ofFlatMappingOperation
.Stream<O>
perform(Stream<I> 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
-
-
-
-
Method Detail
-
perform
public Stream<O> perform(Stream<I> stream)
Description copied from interface:IntermediateOperation
Performs the actualy intermediate operation returning the resulting stream
-
map
public Stream<Stream<O>> map(Stream<I> iStream)
Description copied from interface:FlatMappingOperation
Instead of flat mapping this returns a stream ofFlatMappingOperation
.
-
-