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.

@FunctionalInterface public static interface InfluxQLQueryResult.Series.ValueExtractor
A value extractor is used to convert the string value returned by query into a custom type.
  • Method Summary

    Modifier and Type
    Method
    Description
    extractValue(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 column
      rawValue - the string value returned from the query
      resultIndex - the index of the result
      seriesName - the name of the series
      Returns:
      the converted string value