Class ArraySourceValueFetcher

All Implemented Interfaces:

public abstract class ArraySourceValueFetcher extends Object implements ValueFetcher
An implementation of ValueFetcher that knows how to extract values from the document source.

This class differs from SourceValueFetcher in that it directly handles array values in parsing. Field types should use this class if their corresponding mapper returns true for FieldMapper.parsesArrayValue().

  • Constructor Details

    • ArraySourceValueFetcher

      public ArraySourceValueFetcher(String fieldName, SearchExecutionContext context)
    • ArraySourceValueFetcher

      public ArraySourceValueFetcher(String fieldName, SearchExecutionContext context, Object nullValue)
      fieldName - The name of the field.
      context - The query shard context
      nullValue - A optional substitute value if the _source value is 'null'.
  • Method Details