public abstract class AbstractQueryApi extends AbstractRestClient
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractQueryApi.FluxRecordIterator |
protected class |
AbstractQueryApi.RawIterator |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_DIALECT |
protected static Runnable |
EMPTY_ACTION |
protected static Consumer<Throwable> |
ERROR_CONSUMER |
protected FluxCsvParser |
fluxCsvParser |
protected static Logger |
LOG |
protected FluxResultMapper |
resultMapper |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQueryApi() |
protected |
AbstractQueryApi(FluxCsvParser fluxCsvParser) |
| Modifier and Type | Method and Description |
|---|---|
protected okhttp3.RequestBody |
createBody(String dialect,
String query) |
protected void |
query(retrofit2.Call<okhttp3.ResponseBody> queryCall,
FluxCsvParser.FluxResponseConsumer responseConsumer,
Consumer<? super Throwable> onError,
Runnable onComplete,
Boolean asynchronously) |
protected AbstractQueryApi.FluxRecordIterator |
queryIterator(retrofit2.Call<okhttp3.ResponseBody> queryCall) |
protected void |
queryRaw(retrofit2.Call<okhttp3.ResponseBody> queryCall,
BiConsumer<Cancellable,String> onResponse,
Consumer<? super Throwable> onError,
Runnable onComplete,
Boolean asynchronously) |
protected AbstractQueryApi.RawIterator |
queryRawIterator(retrofit2.Call<okhttp3.ResponseBody> queryCall) |
execute, getLogLevel, ping, responseToError, setLogLevel, toInfluxException, versionprotected static final Logger LOG
protected final FluxCsvParser fluxCsvParser
protected final FluxResultMapper resultMapper
protected static final Runnable EMPTY_ACTION
protected static final String DEFAULT_DIALECT
protected AbstractQueryApi()
protected AbstractQueryApi(@Nonnull FluxCsvParser fluxCsvParser)
@Nonnull protected okhttp3.RequestBody createBody(@Nullable String dialect, @Nonnull String query)
protected void query(@Nonnull retrofit2.Call<okhttp3.ResponseBody> queryCall, @Nonnull FluxCsvParser.FluxResponseConsumer responseConsumer, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete, @Nonnull Boolean asynchronously)
protected AbstractQueryApi.FluxRecordIterator queryIterator(@Nonnull retrofit2.Call<okhttp3.ResponseBody> queryCall)
protected void queryRaw(@Nonnull retrofit2.Call<okhttp3.ResponseBody> queryCall, @Nonnull BiConsumer<Cancellable,String> onResponse, @Nonnull Consumer<? super Throwable> onError, @Nonnull Runnable onComplete, @Nonnull Boolean asynchronously)
protected AbstractQueryApi.RawIterator queryRawIterator(@Nonnull retrofit2.Call<okhttp3.ResponseBody> queryCall)
Copyright © 2018–2022 InfluxData, Inc.. All rights reserved.