Class LimitLongOperation
java.lang.Object
org.infinispan.stream.impl.intops.primitive.l.LimitLongOperation
- All Implemented Interfaces:
IntermediateOperation<Long,LongStream, Long, LongStream>
public class LimitLongOperation
extends Object
implements IntermediateOperation<Long,LongStream,Long,LongStream>
Performs limit operation on a
LongStream-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetLimit()io.reactivex.rxjava3.core.Flowable<Long> mapFlowable(io.reactivex.rxjava3.core.Flowable<Long> input) Performs the intermediate operation on a Flowable.perform(LongStream stream) Performs the actualy intermediate operation returning the resulting streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.stream.impl.intops.IntermediateOperation
handleInjection
-
Constructor Details
-
LimitLongOperation
public LimitLongOperation(long limit)
-
-
Method Details
-
perform
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream- Specified by:
performin interfaceIntermediateOperation<Long,LongStream, Long, LongStream> - Parameters:
stream- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getLimit
public long getLimit() -
mapFlowable
public io.reactivex.rxjava3.core.Flowable<Long> mapFlowable(io.reactivex.rxjava3.core.Flowable<Long> input) Description copied from interface:IntermediateOperationPerforms the intermediate operation on a Flowable. This is an interop method to allow Distributed Streams to actually use Distributed Publisher- Specified by:
mapFlowablein interfaceIntermediateOperation<Long,LongStream, Long, LongStream> - Parameters:
input- the input flowable- Returns:
-