public interface StreamDecorator
Modifier and Type | Field and Description |
---|---|
static StreamDecorator |
COMPUTE_INTENSITY_EXTREAM
A
StreamDecorator that modifies the stream according to the
COMPUTE_INTENSITY_EXTREME
parallel strategy. |
static StreamDecorator |
COMPUTE_INTENSITY_HIGH
A
StreamDecorator that modifies the stream according to the
COMPUTE_INTENSITY_HIGH
parallel strategy. |
static StreamDecorator |
COMPUTE_INTENSITY_MEDIUM
A
StreamDecorator that modifies the stream according to the
COMPUTE_INTENSITY_MEDIUM
parallel strategy. |
static StreamDecorator |
IDENTITY |
Modifier and Type | Method and Description |
---|---|
default StreamDecorator |
and(StreamDecorator other) |
default <H extends HasParallelStrategy> |
apply(H hasParallelStrategy)
Returns the
ParallelStrategy to use for this Stream . |
default <P extends Pipeline> |
apply(P pipeline) |
default <ENTITY,D,V> |
apply(SpeedmentPredicate<ENTITY,D,V> predicate) |
default <ENTITY,S extends Stream<ENTITY>> |
applyOnFinal(S stream)
Method to be used to modify or configure the final stream before it is
returned to the application.
|
default <ENTITY,S extends Stream<ENTITY>> |
applyOnInitial(S stream)
Method to be used to modify or configure the initial stream from the data
source.
|
static StreamDecorator |
of(ParallelStrategy parallelStrategy) |
static final StreamDecorator IDENTITY
static final StreamDecorator COMPUTE_INTENSITY_MEDIUM
StreamDecorator
that modifies the stream according to the
COMPUTE_INTENSITY_MEDIUM
parallel strategy.COMPUTE_INTENSITY_MEDIUM
static final StreamDecorator COMPUTE_INTENSITY_HIGH
StreamDecorator
that modifies the stream according to the
COMPUTE_INTENSITY_HIGH
parallel strategy.COMPUTE_INTENSITY_HIGH
static final StreamDecorator COMPUTE_INTENSITY_EXTREAM
StreamDecorator
that modifies the stream according to the
COMPUTE_INTENSITY_EXTREME
parallel strategy.COMPUTE_INTENSITY_EXTREME
default StreamDecorator and(StreamDecorator other)
default <ENTITY,S extends Stream<ENTITY>> S applyOnFinal(S stream)
ENTITY
- the entity typeS
- the stream typestream
- final stream before it is returned to the applicationdefault <ENTITY,D,V> SpeedmentPredicate<ENTITY,D,V> apply(SpeedmentPredicate<ENTITY,D,V> predicate)
default <P extends Pipeline> P apply(P pipeline)
default <ENTITY,S extends Stream<ENTITY>> S applyOnInitial(S stream)
ENTITY
- the entity typeS
- the stream typestream
- from the data sourcedefault <H extends HasParallelStrategy> H apply(H hasParallelStrategy)
ParallelStrategy
to use for this Stream
. The
ParallelStrategy
defines how parallel streams are divided amongst
the available execution threads.H
- type of strategy receiverhasParallelStrategy
- to apply the strategy onHasParallelStrategy
to use
for this Stream
static StreamDecorator of(ParallelStrategy parallelStrategy)
Copyright © 2016 Speedment, Inc.. All rights reserved.