Interface QueryApi
- Author:
- Jakub Bednar (bednar@github) (01/10/2018 12:17)
-
Method Summary
Modifier and TypeMethodDescriptionExecutes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.<M> List
<M> Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.<M> void
query
(Query query, Class<M> measurementType, BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(Query query, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(Query query, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.<M> List
<M> Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.<M> void
query
(Query query, String org, Class<M> measurementType, BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(Query query, String org, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(Query query, String org, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.void
query
(Query query, String org, BiConsumer<Cancellable, FluxRecord> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(Query query, String org, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(Query query, String org, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(Query query, BiConsumer<Cancellable, FluxRecord> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(Query query, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(Query query, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.<M> List
<M> Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.<M> void
query
(String query, Class<M> measurementType, BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(String query, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(String query, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.<M> List
<M> Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.<M> void
query
(String query, String org, Class<M> measurementType, BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(String query, String org, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.<M> void
query
(String query, String org, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.<M> void
query
(String query, String org, Class<M> measurementType, BiConsumer<Cancellable, M> onNext, Consumer<? super Throwable> onError, Runnable onComplete, Map<String, Object> params) Executes the Parameterized Flux query and asynchronously stream result as POJO.<M> List
<M> Executes the Parameterized Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.void
query
(String query, String org, BiConsumer<Cancellable, FluxRecord> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(String query, String org, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(String query, String org, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(String query, String org, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError, Runnable onComplete, Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.Executes the Parameterized Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.void
query
(String query, BiConsumer<Cancellable, FluxRecord> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(String query, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.void
query
(String query, BiConsumer<Cancellable, FluxRecord> onNext, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.void
queryRaw
(Query query, String org, BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(Query query, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(Query query, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(Query query, BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(Query query, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(Query query, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.void
queryRaw
(String query, Dialect dialect, String org, BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, Dialect dialect, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, Dialect dialect, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, Dialect dialect, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Runnable onComplete, Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.Executes the Parameterized Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.void
queryRaw
(String query, Dialect dialect, BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, Dialect dialect, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, Dialect dialect, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.void
queryRaw
(String query, String org, BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, String org, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.void
queryRaw
(String query, BiConsumer<Cancellable, String> onResponse, Consumer<? super Throwable> onError, Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.
-
Method Details
-
query
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.NOTE: This method is not intended for large query results. Use
query(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to execute- Returns:
List<FluxTable>
which are matched the query
-
query
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.NOTE: This method is not intended for large query results. Use
query(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.- Parameters:
query
- the flux query to executeorg
- specifies the source organization- Returns:
List<FluxTable>
which are matched the query
-
query
@Nonnull List<FluxTable> query(@Nonnull String query, @Nonnull String org, @Nullable Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
. Query parameters currently are supported only in InfluxDB Cloud.NOTE: This method is not intended for large query results. Use
Parameterized Flux queries support int, float, and string data types. To convert the supported data types into other Flux basic data types, use Flux type conversion functions.query(String, String, BiConsumer, Consumer, Runnable, Map)
for large data streaming.Example:
Instant yesterday = Instant.now().minus(Period.ofDays(1)); QueryApi queryApi = client.getQueryApi(); Map<String, Object> params = new HashMap<>(); params.put("bucketParam", bucket); params.put("startParam", yesterday.toString()); String parametrizedQuery = "from(bucket: params.bucketParam) |> range(start: time(v: params.startParam))"; List<FluxTable> query = queryApi.query(parametrizedQuery, org, params);
- Parameters:
query
- the flux query to executeorg
- specifies the source organizationparams
- the map of query parameters.- Returns:
List<FluxTable>
which are matched the query- See Also:
-
query
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.NOTE: This method is not intended for large query results. Use
query(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to execute- Returns:
List<FluxTable>
which are matched the query
-
query
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toList<FluxTable>
.NOTE: This method is not intended for large query results. Use
query(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.- Parameters:
query
- the flux query to executeorg
- specifies the source organization- Returns:
List<FluxTable>
which are matched the query
-
query
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.NOTE: This method is not intended for large query results. Use
query(String, String, Class, BiConsumer, Consumer, Runnable)
for large data streaming.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the type of measurement- Returns:
List<T>
which are matched the query
-
query
@Nonnull <M> List<M> query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType) Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.NOTE: This method is not intended for large query results. Use
query(String, String, Class, BiConsumer, Consumer, Runnable)
for large data streaming.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the type of measurement- Returns:
List<T>
which are matched the query
-
query
<M> List<M> query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nullable Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.NOTE: This method is not intended for large query results. Use
query(String, String, Class, BiConsumer, Consumer, Runnable)
for large data streaming.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the type of measurementparams
- the map of query parameters. Seequery(String, String, Map)
for parameter usage.- Returns:
List<T>
which are matched the query
-
query
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.NOTE: This method is not intended for large query results. Use
query(String, String, Class, BiConsumer, Consumer, Runnable)
for large data streaming.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the type of measurement- Returns:
List<T>
which are matched the query
-
query
@Nonnull <M> List<M> query(@Nonnull Query query, @Nonnull String org, @Nonnull Class<M> measurementType) Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.NOTE: This method is not intended for large query results. Use
query(String, String, Class, BiConsumer, Consumer, Runnable)
for large data streaming.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the type of measurement- Returns:
List<T>
which are matched the query
-
query
Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonNext
- the callback to consume the FluxRecord result with capability to discontinue a streaming query
-
query
void query(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume the FluxRecord result with capability to discontinue a streaming query
-
query
Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonNext
- the callback to consume the FluxRecord result with capability to discontinue a streaming query
-
query
void query(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume the FluxRecord result with capability to discontinue a streaming query
-
query
<M> void query(@Nonnull String query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the measurement type (POJO)onNext
- the callback to consume the mapped Measurements with capability to discontinue a streaming query
-
query
<M> void query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the measurement type (POJO)onNext
- the callback to consume the mapped Measurements with capability to discontinue a streaming query
-
query
<M> void query(@Nonnull Query query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the measurement type (POJO)onNext
- the callback to consume the mapped Measurements with capability to discontinue a streaming query
-
query
<M> void query(@Nonnull Query query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the measurement type (POJO)onNext
- the callback to consume the mapped Measurements with capability to discontinue a streaming query
-
query
void query(@Nonnull String query, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
void query(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
void query(@Nonnull Query query, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
void query(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
<M> void query(@Nonnull String query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
<M> void query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
<M> void query(@Nonnull Query query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
<M> void query(@Nonnull Query query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream POJO classes toonNext
consumer.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notification
-
query
void query(@Nonnull String query, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
query
void query(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
query
void query(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete, @Nullable Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of streamparams
- the map of query parameters, seequery(String, String, Map)
for parameter usage.
-
query
void query(@Nonnull Query query, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
query
void query(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously streamFluxRecord
s toonNext
consumer.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume FluxRecord result with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
query
<M> void query(@Nonnull String query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
query
<M> void query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
query
<M> void query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete, @Nullable Map<String, Object> params) Executes the Parameterized Flux query and asynchronously stream result as POJO.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of streamparams
- the map of query parameters, Seequery(String, String, Map)
for parameter usage.
-
query
<M> void query(@Nonnull Query query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executemeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
query
<M> void query(@Nonnull Query query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable, M> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query and asynchronously stream result as POJO.- Type Parameters:
M
- the type of the measurement (POJO)- Parameters:
query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the measurement type (POJO)onNext
- the callback to consume POJO record with capability to discontinue a streaming queryonError
- the callback to consume any error notificationonComplete
- the callback to consume a notification about successfully end of stream
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.NOTE: This method is not intended for large responses, that do not fit into memory. Use
queryRaw(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to execute- Returns:
- the raw response that matched the query
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.NOTE: This method is not intended for large responses, that do not fit into memory. Use
queryRaw(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.- Parameters:
query
- the flux query to executeorg
- specifies the source organization- Returns:
- the raw response that matched the query
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.NOTE: This method is not intended for large responses, that do not fit into memory. Use
queryRaw(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..- Returns:
- the raw response that matched the query
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.NOTE: This method is not intended for large responses, that do not fit into memory. Use
queryRaw(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..org
- specifies the source organization- Returns:
- the raw response that matched the query
-
queryRaw
@Nonnull String queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nullable Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.NOTE: This method is not intended for large responses, that do not fit into memory. Use
queryRaw(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..org
- specifies the source organizationparams
- the map of query parameters, Seequery(String, String, Map)
for parameter usage.- Returns:
- the raw response that matched the query
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.NOTE: This method is not intended for large responses, that do not fit into memory. Use
queryRaw(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to execute- Returns:
- the raw response that matched the query
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response toString
result.NOTE: This method is not intended for large responses, that do not fit into memory. Use
queryRaw(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.- Parameters:
query
- the flux query to executeorg
- specifies the source organization- Returns:
- the raw response that matched the query
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonResponse
- callback to consume the response line by line with capability to discontinue a streaming query
-
queryRaw
void queryRaw(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonResponse
- callback to consume the response line by line with capability to discontinue a streaming query
-
queryRaw
void queryRaw(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonResponse
- callback to consume the response line by line with capability to discontinue a streaming query
-
queryRaw
Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonResponse
- callback to consume the response line by line with capability to discontinue a streaming query
-
queryRaw
void queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..onResponse
- the callback to consume the response line by line
-
queryRaw
void queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..org
- specifies the source organizationonResponse
- the callback to consume the response line by line
-
queryRaw
void queryRaw(@Nonnull String query, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notification
-
queryRaw
void queryRaw(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notification
-
queryRaw
void queryRaw(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nullable Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notificationparams
- the map of query parameters, Seequery(String, String, Map)
for parameter usage.
-
queryRaw
void queryRaw(@Nonnull Query query, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notification
-
queryRaw
void queryRaw(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notification
-
queryRaw
void queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..onResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notification
-
queryRaw
void queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..org
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notification
-
queryRaw
void queryRaw(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notificationonComplete
- callback to consume a notification about successfully end of stream
-
queryRaw
void queryRaw(@Nonnull String query, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notificationonComplete
- callback to consume a notification about successfully end of stream
-
queryRaw
void queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..onResponse
- the callback to consume the response line by line with capability to discontinue a streaming query The callback call contains the one line of the response.onError
- callback to consume any error notificationonComplete
- callback to consume a notification about successfully end of stream
-
queryRaw
void queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..org
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming query The callback call contains the one line of the response.onError
- callback to consume any error notificationonComplete
- callback to consume a notification about successfully end of stream
-
queryRaw
void queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete, @Nullable Map<String, Object> params) Executes the Parameterized Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response. See dialect SPEC..org
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming query The callback call contains the one line of the response.onError
- callback to consume any error notificationonComplete
- callback to consume a notification about successfully end of streamparams
- the map of query parameters, Seequery(String, String, Map)
for parameter usage.
-
queryRaw
void queryRaw(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.- Parameters:
query
- the flux query to executeorg
- specifies the source organizationonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notificationonComplete
- callback to consume a notification about successfully end of stream
-
queryRaw
void queryRaw(@Nonnull Query query, @Nonnull BiConsumer<Cancellable, String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete) Executes the Flux query against the InfluxDB 2.x and asynchronously stream response (line by line) toonResponse
.The
InfluxDBClientOptions.getOrg()
will be used as source organization.- Parameters:
query
- the flux query to executeonResponse
- the callback to consume the response line by line with capability to discontinue a streaming queryonError
- callback to consume any error notificationonComplete
- callback to consume a notification about successfully end of stream
-