public interface StreamSupplierComponent
Modifier and Type | Method and Description |
---|---|
default <ENTITY,V extends Comparable<? super V>> |
findAny(TableIdentifier<ENTITY> tableIdentifier,
HasComparableOperators<ENTITY,V> field,
V value)
Finds a particular entity in the source where the specified field has
the specified value.
|
default boolean |
isImmutable()
Returns if this stream component will return the same stream result over
time (immutable or analytics type of data).
|
default Stream<StreamSupplierComponent> |
sourceStreamSupplierComponents()
Creates and returns a new Stream of underlying
StreamSupplierComponent objects
that provides data to this StreamSupplierComponent . |
default void |
start()
Starts the stream suppler and initialized any resources needed for its
operation.
|
default void |
stop()
Stops the stream suppler and releases any previously allocated resources.
|
default <ENTITY> Stream<ENTITY> |
stream(TableIdentifier<ENTITY> tableId)
Basic stream over all entities using the default
ParallelStrategy . |
<ENTITY> Stream<ENTITY> |
stream(TableIdentifier<ENTITY> tableIdentifier,
ParallelStrategy strategy)
Basic stream over all entities.
|
default <ENTITY> Stream<ENTITY> stream(TableIdentifier<ENTITY> tableId)
ParallelStrategy
.ENTITY
- entity typetableId
- the identifier to use<ENTITY> Stream<ENTITY> stream(TableIdentifier<ENTITY> tableIdentifier, ParallelStrategy strategy)
ENTITY
- entity typetableIdentifier
- the identifier to usestrategy
- decorates the stream before building itdefault <ENTITY,V extends Comparable<? super V>> Optional<ENTITY> findAny(TableIdentifier<ENTITY> tableIdentifier, HasComparableOperators<ENTITY,V> field, V value)
ENTITY
- the entity typeV
- the java type of the columntableIdentifier
- the identifier to usefield
- the field to select onvalue
- the value of that field for the entity to returndefault boolean isImmutable()
true
if the source is immutabledefault void start()
default void stop()
default Stream<StreamSupplierComponent> sourceStreamSupplierComponents()
StreamSupplierComponent
objects
that provides data to this StreamSupplierComponent
. If no such component exists
(i.e. the component draws data only from external sources like databases or files) an
empty stream is returned.StreamSupplierComponent
objects
that provides data to this StreamSupplierComponent
Copyright © 2019 Speedment, Inc.. All rights reserved.