Class MapToObjLongOperation<R>

java.lang.Object
org.infinispan.stream.impl.intops.primitive.l.MapToObjLongOperation<R>
All Implemented Interfaces:
IntermediateOperation<Long,LongStream,R,Stream<R>>, MappingOperation<Long,LongStream,R,Stream<R>>

public class MapToObjLongOperation<R> extends Object implements MappingOperation<Long,LongStream,R,Stream<R>>
Performs map to object operation on a LongStream
  • Constructor Details

    • MapToObjLongOperation

      public MapToObjLongOperation(LongFunction<? extends R> function)
  • Method Details

    • perform

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

      public LongFunction<? extends R> getFunction()
    • mapFlowable

      public io.reactivex.rxjava3.core.Flowable<R> mapFlowable(io.reactivex.rxjava3.core.Flowable<Long> 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<Long,LongStream,R,Stream<R>>
      Parameters:
      input - the input flowable
      Returns: