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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceclassstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseFluxResponse(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 acceptFluxTables andFluxRecords- 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
-