Class MapOperation<I,​O>

    • Constructor Detail

      • MapOperation

        public MapOperation​(Function<? super I,​? extends O> function)
    • Method Detail

      • perform

        public Stream<O> perform​(Stream<I> stream)
        Description copied from interface: IntermediateOperation
        Performs the actualy intermediate operation returning the resulting stream
        Specified by:
        perform in interface IntermediateOperation<I,​Stream<I>,​O,​Stream<O>>
        Parameters:
        stream - the stream to have the operation performed on
        Returns:
        the resulting stream after the operation was applied
      • getFunction

        public Function<? super I,​? extends O> getFunction()
      • mapFlowable

        public io.reactivex.rxjava3.core.Flowable<O> mapFlowable​(io.reactivex.rxjava3.core.Flowable<I> input)
        Description copied from interface: IntermediateOperation
        Performs the intermediate operation on a Flowable. This is an interop method to allow Distributed Streams to actually use Distributed Publisher
        Specified by:
        mapFlowable in interface IntermediateOperation<I,​Stream<I>,​O,​Stream<O>>
        Parameters:
        input - the input flowable
        Returns: