V
- query value typepublic static interface TimeSeries.QueryResult<V>
stream of events
.Modifier and Type | Interface and Description |
---|---|
static class |
TimeSeries.QueryResult.StreamStructure
Describes the structural properties of a stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isComplete()
Returns whether this result includes all events selected by the
query.
|
TimeSeries.QueryResult<V> |
merge(TimeSeries.QueryResult<V> other)
Merge this result with
other , combining original events and
edit events, to produce an TimeSeries.QueryResult of type
VALUE_EVENT_STREAM |
long |
selectedCount()
Returns the number of events selected by the query.
|
Stream<TimeSeries.Event<V>> |
stream() |
TimeSeries.QueryResult.StreamStructure |
streamStructure()
Returns a description of the structure of the
result
stream . |
long selectedCount()
This number may be greater than stream().count()
due to a
policy of the time series topic to limit the number of returned
results, or the use of TimeSeries.RangeQuery.limit(long)
.
Stream<TimeSeries.Event<V>> stream()
java.util.stream.Stream
interface. Instances benefit from
the various combinator and reduction methods provided by
Stream.boolean isComplete()
Equivalent to
return this.selectedCount() == this.stream().count();
TimeSeries.QueryResult.StreamStructure streamStructure()
result
stream
.TimeSeries.QueryResult<V> merge(TimeSeries.QueryResult<V> other)
other
, combining original events and
edit events, to produce an TimeSeries.QueryResult
of type
VALUE_EVENT_STREAM
The following rules are applied to calculate the result:
other
have an event with equal
sequence numbers, the event from other
is selected.
The returned result implements isComplete()
to return true
and selectedCount()
to return the count of events in the
stream, regardless of whether this result is complete.
Copyright © 2024 DiffusionData Ltd. All Rights Reserved.