public class DistributedDoubleCacheStream extends AbstractCacheStream<Double,DoubleStream,DoubleConsumer> implements DoubleStream
DoubleStream that utilizes a lazily evaluated distributed back end execution. Note this
class is only able to be created using Stream.mapToDouble(ToDoubleFunction) or similar
methods from the CacheStream interface.DoubleStream.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 |
DistributedDoubleCacheStream(AbstractCacheStream other)
This constructor is to be used only when a user calls a map or flat map method changing to a DoubleStream
from a CacheStream, Stream, IntStream, LongStream 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, sequentialclose, isParallel, onClose, unorderedprotected DistributedDoubleCacheStream(AbstractCacheStream other)
other - other instance of AbstractCacheStream to copy details fromprotected DoubleStream unwrap()
unwrap in class AbstractCacheStream<Double,DoubleStream,DoubleConsumer>public DoubleStream filter(DoublePredicate predicate)
filter in interface DoubleStreampublic DoubleStream map(DoubleUnaryOperator mapper)
map in interface DoubleStreampublic <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper)
mapToObj in interface DoubleStreampublic IntStream mapToInt(DoubleToIntFunction mapper)
mapToInt in interface DoubleStreampublic LongStream mapToLong(DoubleToLongFunction mapper)
mapToLong in interface DoubleStreampublic DoubleStream flatMap(DoubleFunction<? extends DoubleStream> mapper)
flatMap in interface DoubleStreampublic DoubleStream distinct()
distinct in interface DoubleStreampublic DoubleStream sorted()
sorted in interface DoubleStreampublic DoubleStream peek(DoubleConsumer action)
peek in interface DoubleStreampublic DoubleStream limit(long maxSize)
limit in interface DoubleStreampublic DoubleStream skip(long n)
skip in interface DoubleStreampublic Stream<Double> boxed()
boxed in interface DoubleStreampublic void forEach(DoubleConsumer action)
forEach in interface DoubleStreampublic void forEachOrdered(DoubleConsumer action)
forEachOrdered in interface DoubleStreampublic double[] toArray()
toArray in interface DoubleStreampublic double reduce(double identity,
DoubleBinaryOperator op)
reduce in interface DoubleStreampublic OptionalDouble reduce(DoubleBinaryOperator op)
reduce in interface DoubleStreampublic <R> R collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R,R> combiner)
collect in interface DoubleStreampublic double sum()
sum in interface DoubleStreampublic OptionalDouble min()
min in interface DoubleStreampublic OptionalDouble max()
max in interface DoubleStreampublic OptionalDouble average()
average in interface DoubleStreampublic DoubleSummaryStatistics summaryStatistics()
summaryStatistics in interface DoubleStreampublic boolean anyMatch(DoublePredicate predicate)
anyMatch in interface DoubleStreampublic boolean allMatch(DoublePredicate predicate)
allMatch in interface DoubleStreampublic boolean noneMatch(DoublePredicate predicate)
noneMatch in interface DoubleStreampublic OptionalDouble findFirst()
findFirst in interface DoubleStreampublic OptionalDouble findAny()
findAny in interface DoubleStreampublic PrimitiveIterator.OfDouble iterator()
iterator in interface BaseStream<Double,DoubleStream>iterator in interface DoubleStreampublic Spliterator.OfDouble spliterator()
spliterator in interface BaseStream<Double,DoubleStream>spliterator in interface DoubleStreampublic long count()
count in interface DoubleStreamprotected <R> DistributedCacheStream<R> cacheStream()
protected DistributedIntCacheStream intCacheStream()
protected DistributedLongCacheStream longCacheStream()
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.