Class NestedValueFetcher

All Implemented Interfaces:

public class NestedValueFetcher extends Object implements ValueFetcher
  • Constructor Details

    • NestedValueFetcher

      public NestedValueFetcher(String nestedField, FieldFetcher nestedFieldFetcher)
  • Method Details

    • fetchValues

      public List<Object> fetchValues(SourceLookup lookup, List<Object> includedValues) throws IOException
      Description copied from interface: ValueFetcher
      Given access to a document's _source, return this field's values. In addition to pulling out the values, they will be parsed into a standard form. For example numeric field mappers make sure to parse the source value into a number of the right type. Note that for array values, the order in which values are returned is undefined and should not be relied on.
      Specified by:
      fetchValues in interface ValueFetcher
      lookup - a lookup structure over the document's source.
      includedValues - a mutable list to collect any ignored values as they were originally presented in source
      a list a standardized field values.
    • setNextReader

      public void setNextReader(org.apache.lucene.index.LeafReaderContext context)
      Description copied from interface: ValueFetcher
      Update the leaf reader used to fetch values.
      Specified by:
      setNextReader in interface ValueFetcher