Package com.influxdb.query.internal
Class FluxCsvParser
java.lang.Object
com.influxdb.query.internal.FluxCsvParser
This class us used to construct FluxResult from CSV.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
class
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parseFluxResponse
(okio.BufferedSource bufferedSource, Cancellable cancellable, FluxCsvParser.FluxResponseConsumer consumer) Parse Flux CSV response toFluxCsvParser.FluxResponseConsumer
.
-
Constructor Details
-
FluxCsvParser
public FluxCsvParser() -
FluxCsvParser
-
-
Method Details
-
parseFluxResponse
public void parseFluxResponse(@Nonnull okio.BufferedSource bufferedSource, @Nonnull Cancellable cancellable, @Nonnull FluxCsvParser.FluxResponseConsumer consumer) throws IOException Parse Flux CSV response toFluxCsvParser.FluxResponseConsumer
.- Parameters:
bufferedSource
- with datacancellable
- to cancel parsingconsumer
- to acceptFluxTable
s andFluxRecord
s- Throws:
IOException
- If there is a problem with reading CSV
-
parseNextResponse
@Nonnull public FluxCsvParser.FluxRecordOrTable parseNextResponse(@Nonnull FluxCsvParser.FluxCsvState state) - Parameters:
state
- current state of parsing- Returns:
- table or record or both
-