Interface FallbackSyntheticSourceBlockLoader.Reader<T>

Type Parameters:
T -
All Known Implementing Classes:
FallbackSyntheticSourceBlockLoader.SingleValueReader
Enclosing class:
FallbackSyntheticSourceBlockLoader

public static interface FallbackSyntheticSourceBlockLoader.Reader<T>
Field-specific implementation that converts data stored in _ignored_source field to block loader values.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    convertValue(Object value, List<T> accumulator)
    Converts a raw stored value for this field to a value in a format suitable for block loader and adds it to the provided accumulator.
    void
    parse(XContentParser parser, List<T> accumulator)
    Parses one or more complex values using a provided parser and adds them to the provided accumulator.
    void
    writeToBlock(List<T> values, BlockLoader.Builder blockBuilder)
     
  • Method Details

    • convertValue

      void convertValue(Object value, List<T> accumulator)
      Converts a raw stored value for this field to a value in a format suitable for block loader and adds it to the provided accumulator.
      Parameters:
      value - raw decoded value from _ignored_source field (synthetic _source value)
      accumulator - list containing the result of conversion
    • parse

      void parse(XContentParser parser, List<T> accumulator) throws IOException
      Parses one or more complex values using a provided parser and adds them to the provided accumulator.
      Parameters:
      parser - parser of a value from _ignored_source field (synthetic _source value)
      accumulator - list containing the results of parsing
      Throws:
      IOException
    • writeToBlock

      void writeToBlock(List<T> values, BlockLoader.Builder blockBuilder)