Package com.influxdb.client.domain
Class InfluxQLQuery
java.lang.Object
com.influxdb.client.domain.InfluxQLQuery
A InfluxQL query.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The precision used for the timestamps returned by InfluxQL queries. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetPrecision
(InfluxQLQuery.InfluxQLPrecision precision) setRetentionPolicy
(String retentionPolicy)
-
Constructor Details
-
InfluxQLQuery
- Parameters:
command
- the InfluxQL command to executedatabase
- the database to run this query against
-
-
Method Details
-
getCommand
- Returns:
- the InfluxQL command to execute
-
getDatabase
- Returns:
- the database to run this query against
-
getRetentionPolicy
- Returns:
- the retention policy to use
-
setRetentionPolicy
- Parameters:
retentionPolicy
- the retention policy to use- Returns:
- this
-
getPrecision
- Returns:
- The precision used for the timestamps returned by the query
-
setPrecision
- Parameters:
precision
- The precision used for the timestamps returned by the query- Returns:
- this
-