Class DocValuesFieldValueSource

  • All Implemented Interfaces:
    FieldValueSource

    public class DocValuesFieldValueSource
    extends Object
    implements FieldValueSource
    Represents binary doc values field its value is of type byte[].

    NOTE: Format of bytes is in UTF-8 format.

    Since:
    7.12
    • Constructor Detail

      • DocValuesFieldValueSource

        public DocValuesFieldValueSource​(String fieldName,
                                         Function<byte[],​Double> extractor)
        Creates a value source for a doc values field.
        Parameters:
        fieldName - field name for doc values.
        extractor - for converting relevant UTF-8 bytes from doc values field to a Double value.