Class MapOperation<I,O>
- java.lang.Object
-
- org.infinispan.stream.impl.intops.object.MapOperation<I,O>
-
- Type Parameters:
I
- the type of the input streamO
- the type of the output stream
- All Implemented Interfaces:
IntermediateOperation<I,Stream<I>,O,Stream<O>>
,MappingOperation<I,Stream<I>,O,Stream<O>>
public class MapOperation<I,O> extends Object implements MappingOperation<I,Stream<I>,O,Stream<O>>
Performs map to operation on a regularStream
-
-
Constructor Summary
Constructors Constructor Description MapOperation(Function<? super I,? extends O> function)
MapOperation(SerializableFunction<? super I,? extends O> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<? super I,? extends O>
getFunction()
void
handleInjection(ComponentRegistry registry)
Handles injection of components for various dependencies that the intermediate operation hasStream<O>
perform(Stream<I> stream)
Performs the actualy intermediate operation returning the resulting stream
-
-
-
Method Detail
-
perform
public Stream<O> perform(Stream<I> stream)
Description copied from interface:IntermediateOperation
Performs the actualy intermediate operation returning the resulting stream
-
handleInjection
public void handleInjection(ComponentRegistry registry)
Description copied from interface:IntermediateOperation
Handles injection of components for various dependencies that the intermediate operation has- Specified by:
handleInjection
in interfaceIntermediateOperation<I,Stream<I>,O,Stream<O>>
- Parameters:
registry
- the registry to use
-
-