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_TOPICtopic permission fortopicPathto evaluate a query. TheQUERY_OBSOLETE_TIME_SERIES_EVENTStopic permission is also required if this is anedit rangequery, or avalue range querywith 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 totopicPathis not a time series topic;IncompatibleTopicException– if thequery value typeis 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_TOPICpermission fortopicPath;PermissionsException– if the calling session does not haveQUERY_OBSOLETE_TIME_SERIES_EVENTSpermission fortopicPathand this is anedit rangequery, or avalue range querywith anedit range;SessionClosedException– if the session is closed.
-