Package com.influxdb.query
Interface InfluxQLQueryResult.Series.ValueExtractor
- Enclosing class:
InfluxQLQueryResult.Series
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A value extractor is used to convert the string value returned by query into a custom type.
-
Method Summary
Modifier and TypeMethodDescriptionextractValue
(String columnName, String rawValue, int resultIndex, String seriesName) The value extractor is called for each resulting column to convert the string value returned by query into a custom type.
-
Method Details
-
extractValue
@Nullable Object extractValue(@Nonnull String columnName, @Nonnull String rawValue, int resultIndex, @Nonnull String seriesName) The value extractor is called for each resulting column to convert the string value returned by query into a custom type.- Parameters:
columnName
- the name of the columnrawValue
- the string value returned from the queryresultIndex
- the index of the resultseriesName
- the name of the series- Returns:
- the converted string value
-