java.lang.Object
org.elasticsearch.script.DocValuesDocReader
- All Implemented Interfaces:
DocReader,LeafReaderContextSupplier
Provide access to DocValues for script
field api and doc API.-
Constructor Summary
ConstructorsConstructorDescriptionDocValuesDocReader(SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext leafContext) -
Method Summary
Modifier and TypeMethodDescriptionMap<String, ScriptDocValues<?>> doc()Old-style doc['field'] accessdocAsMap()Old-style doc access for contexts that map some doc contents in paramsField<?> New-style field accessNew-style field iteratororg.apache.lucene.index.LeafReaderContextvoidsetDocument(int docID) Set the underlying docIdsource()Helper for source access
-
Constructor Details
-
DocValuesDocReader
public DocValuesDocReader(SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext leafContext)
-
-
Method Details
-
field
Description copied from interface:DocReaderNew-style field access -
fields
Description copied from interface:DocReaderNew-style field iterator -
setDocument
public void setDocument(int docID) Description copied from interface:DocReaderSet the underlying docId- Specified by:
setDocumentin interfaceDocReader
-
docAsMap
Description copied from interface:DocReaderOld-style doc access for contexts that map some doc contents in params -
doc
Description copied from interface:DocReaderOld-style doc['field'] access -
getLeafReaderContext
public org.apache.lucene.index.LeafReaderContext getLeafReaderContext()- Specified by:
getLeafReaderContextin interfaceLeafReaderContextSupplier
-
source
Description copied from interface:DocReaderHelper for source access
-