Class MapToLongOperation<I>

java.lang.Object
org.infinispan.stream.impl.intops.object.MapToLongOperation<I>
Type Parameters:
I - the type of the input stream
All Implemented Interfaces:
IntermediateOperation<I,Stream<I>,Long,LongStream>, MappingOperation<I,Stream<I>,Long,LongStream>

public class MapToLongOperation<I> extends Object implements MappingOperation<I,Stream<I>,Long,LongStream>
Performs map to long operation on a regular Stream
  • Constructor Details

    • MapToLongOperation

      public MapToLongOperation(ToLongFunction<? super I> function)
  • Method Details

    • perform

      public LongStream 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>,Long,LongStream>
      Parameters:
      stream - the stream to have the operation performed on
      Returns:
      the resulting stream after the operation was applied
    • getFunction

      public ToLongFunction<? super I> getFunction()
    • mapFlowable

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