Interface TimeSeries.Query<V>
- Type Parameters:
V
- query value type
- All Known Subinterfaces:
TimeSeries.RangeQuery<V>
- Enclosing interface:
- TimeSeries
A default query that performs a value range query of an entire time
series can be obtained using TimeSeries.rangeQuery()
and further
configured using methods of the TimeSeries.RangeQuery
interface.
-
Method Summary
Modifier and TypeMethodDescriptionselectFrom
(String topicPath) Evaluate this query for a time series topic.
-
Method Details
-
selectFrom
Evaluate this query for a time series topic.The session must have the
READ_TOPIC
topic permission fortopicPath
to evaluate a query. TheQUERY_OBSOLETE_TIME_SERIES_EVENTS
topic permission is also required if this is anedit range
query, or avalue range query
with anedit range
.- Parameters:
topicPath
- the path of the time series topic to query- Returns:
- a CompletableFuture that completes when a response is
received from the server.
If the query returned results, the CompletableFuture will complete successfully and provide an
TimeSeries.QueryResult
.Otherwise, the CompletableFuture will complete exceptionally with a
CompletionException
. Common reasons for failure, listed by the exception reported as thecause
, include:NoSuchTopicException
– if there is no topic bound totopicPath
;IncompatibleTopicException
– if the topic bound totopicPath
is not a time series topic;IncompatibleTopicException
– if thequery value type
is incompatible with the event data type of the time series topic bound totopicPath
;TimeSeries.InvalidQueryException
– if the range query is not valid for the time series;PermissionsException
– if the calling session does not haveREAD_TOPIC
permission fortopicPath
;PermissionsException
– if the calling session does not haveQUERY_OBSOLETE_TIME_SERIES_EVENTS
permission fortopicPath
and this is anedit range
query, or avalue range query
with anedit range
;SessionClosedException
– if the session is closed.
-