You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have following issues with influxdb-java async query API:
If we are querying large data sets using async query, there is no proper way how to cancel async processing and stop streaming of next chunks.
Current "tricky" implementation of done (all chunks were processed) is not working with MessagePack.
influxDB.query(query, 1_000, result -> {
if (result.getError().equals(“DONE”)) {
System.out.println(“Allchunksarrived”);
} else {
System.out.println(“Processing”);
}
})
Suggested solution - adding new method with cancelleble BiConsumer and onComplete notification. It will be backward compatible and will also work with msgpack.
/** * Execute a streaming query against a database. * * @param query * the query to execute. * @param chunkSize * the number of QueryResults to process in one chunk. * @param onNext * the consumer to invoke for each received QueryResult; with capability to discontinue a streaming query * @param onComplete * the onComplete to invoke for successfully end of stream */publicvoidquery(Queryquery, intchunkSize, BiConsumer<Cancellable, QueryResult> onNext, RunnableonComplete);
The text was updated successfully, but these errors were encountered:
We have following issues with influxdb-java async query API:
If we are querying large data sets using async query, there is no proper way how to cancel async processing and stop streaming of next chunks.
Current "tricky" implementation of done (all chunks were processed) is not working with MessagePack.
Suggested solution - adding new method with cancelleble BiConsumer and onComplete notification. It will be backward compatible and will also work with msgpack.
The text was updated successfully, but these errors were encountered: