public interface QueryApi
Modifier and Type | Method and Description |
---|---|
List<FluxTable> |
query(Query query)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
List<FluxTable> . |
void |
query(Query query,
BiConsumer<Cancellable,FluxRecord> onNext)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
void |
query(Query query,
BiConsumer<Cancellable,FluxRecord> onNext,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
void |
query(Query query,
BiConsumer<Cancellable,FluxRecord> onNext,
Consumer<? super Throwable> onError,
Runnable onComplete)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
<M> List<M> |
query(Query query,
Class<M> measurementType)
Executes the Flux query against the InfluxDB 2.0 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.0 and asynchronously stream POJO classes
to
onNext 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.0 and asynchronously stream POJO classes
to
onNext 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.
|
List<FluxTable> |
query(Query query,
String org)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
List<FluxTable> . |
void |
query(Query query,
String org,
BiConsumer<Cancellable,FluxRecord> onNext)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
void |
query(Query query,
String org,
BiConsumer<Cancellable,FluxRecord> onNext,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext 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.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
<M> List<M> |
query(Query query,
String org,
Class<M> measurementType)
Executes the Flux query against the InfluxDB 2.0 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.0 and asynchronously stream POJO classes
to
onNext 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.0 and asynchronously stream POJO classes
to
onNext 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.
|
List<FluxTable> |
query(String query)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
List<FluxTable> . |
void |
query(String query,
BiConsumer<Cancellable,FluxRecord> onNext)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
void |
query(String query,
BiConsumer<Cancellable,FluxRecord> onNext,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
void |
query(String query,
BiConsumer<Cancellable,FluxRecord> onNext,
Consumer<? super Throwable> onError,
Runnable onComplete)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
<M> List<M> |
query(String query,
Class<M> measurementType)
Executes the Flux query against the InfluxDB 2.0 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.0 and asynchronously stream POJO classes
to
onNext 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.0 and asynchronously stream POJO classes
to
onNext 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.
|
List<FluxTable> |
query(String query,
String org)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
List<FluxTable> . |
void |
query(String query,
String org,
BiConsumer<Cancellable,FluxRecord> onNext)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
void |
query(String query,
String org,
BiConsumer<Cancellable,FluxRecord> onNext,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream
FluxRecord s
to onNext 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.0 and asynchronously stream
FluxRecord s
to onNext consumer. |
<M> List<M> |
query(String query,
String org,
Class<M> measurementType)
Executes the Flux query against the InfluxDB 2.0 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.0 and asynchronously stream POJO classes
to
onNext 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.0 and asynchronously stream POJO classes
to
onNext 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.
|
String |
queryRaw(Query query)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
String result. |
void |
queryRaw(Query query,
BiConsumer<Cancellable,String> onResponse)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(Query query,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(Query query,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError,
Runnable onComplete)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
String |
queryRaw(Query query,
String org)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
String result. |
void |
queryRaw(Query query,
String org,
BiConsumer<Cancellable,String> onResponse)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(Query query,
String org,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(Query query,
String org,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError,
Runnable onComplete)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
String |
queryRaw(String query)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
String result. |
void |
queryRaw(String query,
BiConsumer<Cancellable,String> onResponse)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(String query,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(String query,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError,
Runnable onComplete)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
String |
queryRaw(String query,
Dialect dialect)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
String result. |
void |
queryRaw(String query,
Dialect dialect,
BiConsumer<Cancellable,String> onResponse)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(String query,
Dialect dialect,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(String query,
Dialect dialect,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError,
Runnable onComplete)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
String |
queryRaw(String query,
Dialect dialect,
String org)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
String result. |
void |
queryRaw(String query,
Dialect dialect,
String org,
BiConsumer<Cancellable,String> onResponse)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(String query,
Dialect dialect,
String org,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
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.0 and asynchronously stream response
(line by line) to
onResponse . |
String |
queryRaw(String query,
String org)
Executes the Flux query against the InfluxDB 2.0 and synchronously map whole response
to
String result. |
void |
queryRaw(String query,
String org,
BiConsumer<Cancellable,String> onResponse)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(String query,
String org,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
void |
queryRaw(String query,
String org,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError,
Runnable onComplete)
Executes the Flux query against the InfluxDB 2.0 and asynchronously stream response
(line by line) to
onResponse . |
@Nonnull List<FluxTable> query(@Nonnull String query)
List<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.
query
- the flux query to executeList<FluxTable>
which are matched the query@Nonnull List<FluxTable> query(@Nonnull String query, @Nonnull String org)
List<FluxTable>
.
NOTE: This method is not intended for large query results.
Use query(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.
query
- the flux query to executeorg
- specifies the source organizationList<FluxTable>
which are matched the query@Nonnull List<FluxTable> query(@Nonnull Query query)
List<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.
query
- the flux query to executeList<FluxTable>
which are matched the query@Nonnull List<FluxTable> query(@Nonnull Query query, @Nonnull String org)
List<FluxTable>
.
NOTE: This method is not intended for large query results.
Use query(String, String, BiConsumer, Consumer, Runnable)
for large data streaming.
query
- the flux query to executeorg
- specifies the source organizationList<FluxTable>
which are matched the query@Nonnull <M> List<M> query(@Nonnull String query, @Nonnull Class<M> measurementType)
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.
M
- the type of the measurement (POJO)query
- the flux query to executemeasurementType
- the type of measurementList<T>
which are matched the query@Nonnull <M> List<M> query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType)
NOTE: This method is not intended for large query results.
Use query(String, String, Class, BiConsumer, Consumer, Runnable)
for large data streaming.
M
- the type of the measurement (POJO)query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the type of measurementList<T>
which are matched the query@Nonnull <M> List<M> query(@Nonnull Query query, @Nonnull Class<M> measurementType)
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.
M
- the type of the measurement (POJO)query
- the flux query to executemeasurementType
- the type of measurementList<T>
which are matched the query@Nonnull <M> List<M> query(@Nonnull Query query, @Nonnull String org, @Nonnull Class<M> measurementType)
NOTE: This method is not intended for large query results.
Use query(String, String, Class, BiConsumer, Consumer, Runnable)
for large data streaming.
M
- the type of the measurement (POJO)query
- the flux query to executeorg
- specifies the source organizationmeasurementType
- the type of measurementList<T>
which are matched the queryvoid query(@Nonnull String query, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext)
FluxRecord
s
to onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
query
- the flux query to executeonNext
- the callback to consume the FluxRecord result with capability
to discontinue a streaming queryvoid query(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext)
FluxRecord
s
to onNext
consumer.query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume the FluxRecord result with capability
to discontinue a streaming queryvoid query(@Nonnull Query query, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext)
FluxRecord
s
to onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
query
- the flux query to executeonNext
- the callback to consume the FluxRecord result with capability
to discontinue a streaming queryvoid query(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext)
FluxRecord
s
to onNext
consumer.query
- the flux query to executeorg
- specifies the source organizationonNext
- the callback to consume the FluxRecord result with capability
to discontinue a streaming query<M> void query(@Nonnull String query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext)
onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
M
- the type of the measurement (POJO)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<M> void query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext)
onNext
consumer.M
- the type of the measurement (POJO)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<M> void query(@Nonnull Query query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext)
onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
M
- the type of the measurement (POJO)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<M> void query(@Nonnull Query query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext)
onNext
consumer.M
- the type of the measurement (POJO)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 queryvoid query(@Nonnull String query, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError)
FluxRecord
s
to onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 notificationvoid query(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError)
FluxRecord
s
to onNext
consumer.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 notificationvoid query(@Nonnull Query query, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError)
FluxRecord
s
to onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 notificationvoid query(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError)
FluxRecord
s
to onNext
consumer.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<M> void query(@Nonnull String query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext, @Nonnull Consumer<? super Throwable> onError)
onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
M
- the type of the measurement (POJO)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<M> void query(@Nonnull String query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext, @Nonnull Consumer<? super Throwable> onError)
onNext
consumer.M
- the type of the measurement (POJO)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<M> void query(@Nonnull Query query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext, @Nonnull Consumer<? super Throwable> onError)
onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
M
- the type of the measurement (POJO)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<M> void query(@Nonnull Query query, @Nonnull String org, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext, @Nonnull Consumer<? super Throwable> onError)
onNext
consumer.M
- the type of the measurement (POJO)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 notificationvoid query(@Nonnull String query, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
FluxRecord
s
to onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 streamvoid query(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
FluxRecord
s
to onNext
consumer.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 streamvoid query(@Nonnull Query query, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
FluxRecord
s
to onNext
consumer.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 streamvoid query(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,FluxRecord> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
FluxRecord
s
to onNext
consumer.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<M> void query(@Nonnull String query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
The InfluxDBClientOptions.getOrg()
will be used as source organization.
M
- the type of the measurement (POJO)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<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)
M
- the type of the measurement (POJO)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<M> void query(@Nonnull Query query, @Nonnull Class<M> measurementType, @Nonnull BiConsumer<Cancellable,M> onNext, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
The InfluxDBClientOptions.getOrg()
will be used as source organization.
M
- the type of the measurement (POJO)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<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)
M
- the type of the measurement (POJO)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@Nonnull String queryRaw(@Nonnull String query)
String
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.
query
- the flux query to execute@Nonnull String queryRaw(@Nonnull String query, @Nonnull String org)
String
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.
query
- the flux query to executeorg
- specifies the source organization@Nonnull String queryRaw(@Nonnull String query, @Nullable Dialect dialect)
String
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.
query
- the flux query to executedialect
- Dialect is an object defining the options to use when encoding the response.
See dialect SPEC..@Nonnull String queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org)
String
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.
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@Nonnull String queryRaw(@Nonnull Query query)
String
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.
query
- the flux query to execute@Nonnull String queryRaw(@Nonnull Query query, @Nonnull String org)
String
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.
query
- the flux query to executeorg
- specifies the source organizationvoid queryRaw(@Nonnull String query, @Nonnull BiConsumer<Cancellable,String> onResponse)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
query
- the flux query to executeonResponse
- callback to consume the response line by line with capability
to discontinue a streaming queryvoid queryRaw(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse)
onResponse
.query
- the flux query to executeorg
- specifies the source organizationonResponse
- callback to consume the response line by line with capability
to discontinue a streaming queryvoid queryRaw(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse)
onResponse
.query
- the flux query to executeorg
- specifies the source organizationonResponse
- callback to consume the response line by line with capability
to discontinue a streaming queryvoid queryRaw(@Nonnull Query query, @Nonnull BiConsumer<Cancellable,String> onResponse)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
query
- the flux query to executeonResponse
- callback to consume the response line by line with capability
to discontinue a streaming queryvoid queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull BiConsumer<Cancellable,String> onResponse)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 linevoid queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse)
onResponse
.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 linevoid queryRaw(@Nonnull String query, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 notificationvoid queryRaw(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError)
onResponse
.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 notificationvoid queryRaw(@Nonnull Query query, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 notificationvoid queryRaw(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError)
onResponse
.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 notificationvoid queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 notificationvoid queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError)
onResponse
.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 notificationvoid queryRaw(@Nonnull String query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
onResponse
.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 streamvoid queryRaw(@Nonnull String query, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 streamvoid queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 streamvoid queryRaw(@Nonnull String query, @Nullable Dialect dialect, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
onResponse
.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 streamvoid queryRaw(@Nonnull Query query, @Nonnull String org, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
onResponse
.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 streamvoid queryRaw(@Nonnull Query query, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete)
onResponse
.
The InfluxDBClientOptions.getOrg()
will be used as source organization.
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 streamCopyright © 2018–2019 InfluxData, Inc.. All rights reserved.