java.lang.Object
org.elasticsearch.index.mapper.NestedValueFetcher
- All Implemented Interfaces:
ValueFetcher
-
Field Summary
Fields inherited from interface org.elasticsearch.index.mapper.ValueFetcher
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfetchValues
(Source source, int doc, List<Object> includedValues) This method is consumed byValueFetcher.fetchDocumentField(String, Source, int)
.void
setNextReader
(org.apache.lucene.index.LeafReaderContext context) Update the leaf reader used to fetch values.The stored field or source requirements of this value fetcherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.mapper.ValueFetcher
fetchDocumentField
-
Constructor Details
-
NestedValueFetcher
-
-
Method Details
-
fetchValues
public List<Object> fetchValues(Source source, int doc, List<Object> includedValues) throws IOException Description copied from interface:ValueFetcher
This method is consumed byValueFetcher.fetchDocumentField(String, Source, int)
. 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 interfaceValueFetcher
- Parameters:
source
- the document's source.doc
- the document idincludedValues
- a mutable list to collect any ignored values as they were originally presented in source- Returns:
- a list a standardized field values.
- Throws:
IOException
-
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 interfaceValueFetcher
-
storedFieldsSpec
Description copied from interface:ValueFetcher
The stored field or source requirements of this value fetcher- Specified by:
storedFieldsSpec
in interfaceValueFetcher
-