public class DistributedLongCacheStream extends AbstractCacheStream<Long,LongStream,LongConsumer> implements LongStream
LongStream that utilizes a lazily evaluated distributed back end execution. Note this
class is only able to be created using Stream.mapToInt(ToIntFunction) or similar
methods from the CacheStream interface.LongStream.BuildercloseRunnable, csm, distinct, distributedBatchSize, dm, executor, includeLoader, intermediateOperations, intermediateType, iteratorOperation, keyEquivalence, keysToFilter, localAddress, localIntermediateOperations, log, parallel, parallelDistribution, partition, registry, rehashAware, segmentCompletionListener, segmentsToFilter, sorted, supplier, timeout, timeoutUnit| Modifier | Constructor and Description |
|---|---|
protected |
DistributedLongCacheStream(AbstractCacheStream other)
This constructor is to be used only when a user calls a map or flat map method changing to an IntStream
from a CacheStream, Stream, DoubleStream, IntStream etc.
|
addIntermediateOperation, addIntermediateOperationMap, addIntermediateOperationMap, close, isParallel, markDistinct, markSkip, markSorted, onClose, parallel, sequential, supplierForSegments, supplierForSegments, unorderedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, concat, empty, generate, iterate, of, of, parallel, range, rangeClosed, sequentialclose, isParallel, onClose, unorderedprotected DistributedLongCacheStream(AbstractCacheStream other)
other - other instance of AbstractCacheStream to copy details fromprotected LongStream unwrap()
unwrap in class AbstractCacheStream<Long,LongStream,LongConsumer>public LongStream filter(LongPredicate predicate)
filter in interface LongStreampublic LongStream map(LongUnaryOperator mapper)
map in interface LongStreampublic <U> Stream<U> mapToObj(LongFunction<? extends U> mapper)
mapToObj in interface LongStreampublic IntStream mapToInt(LongToIntFunction mapper)
mapToInt in interface LongStreampublic DoubleStream mapToDouble(LongToDoubleFunction mapper)
mapToDouble in interface LongStreampublic LongStream flatMap(LongFunction<? extends LongStream> mapper)
flatMap in interface LongStreampublic LongStream distinct()
distinct in interface LongStreampublic LongStream sorted()
sorted in interface LongStreampublic LongStream peek(LongConsumer action)
peek in interface LongStreampublic DoubleStream asDoubleStream()
asDoubleStream in interface LongStreampublic Stream<Long> boxed()
boxed in interface LongStreampublic LongStream limit(long maxSize)
limit in interface LongStreampublic LongStream skip(long n)
skip in interface LongStreampublic void forEach(LongConsumer action)
forEach in interface LongStreampublic void forEachOrdered(LongConsumer action)
forEachOrdered in interface LongStreampublic long[] toArray()
toArray in interface LongStreampublic long reduce(long identity,
LongBinaryOperator op)
reduce in interface LongStreampublic OptionalLong reduce(LongBinaryOperator op)
reduce in interface LongStreampublic <R> R collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R,R> combiner)
collect in interface LongStreampublic long sum()
sum in interface LongStreampublic OptionalLong min()
min in interface LongStreampublic OptionalLong max()
max in interface LongStreampublic OptionalDouble average()
average in interface LongStreampublic LongSummaryStatistics summaryStatistics()
summaryStatistics in interface LongStreampublic boolean anyMatch(LongPredicate predicate)
anyMatch in interface LongStreampublic boolean allMatch(LongPredicate predicate)
allMatch in interface LongStreampublic boolean noneMatch(LongPredicate predicate)
noneMatch in interface LongStreampublic OptionalLong findFirst()
findFirst in interface LongStreampublic OptionalLong findAny()
findAny in interface LongStreampublic PrimitiveIterator.OfLong iterator()
iterator in interface BaseStream<Long,LongStream>iterator in interface LongStreampublic Spliterator.OfLong spliterator()
spliterator in interface BaseStream<Long,LongStream>spliterator in interface LongStreampublic long count()
count in interface LongStreamprotected <R> DistributedCacheStream<R> cacheStream()
protected DistributedDoubleCacheStream doubleCacheStream()
protected DistributedIntCacheStream intCacheStream()
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.