java.lang.Object
org.elasticsearch.script.DocValuesDocReader
- All Implemented Interfaces:
DocReader
,LeafReaderContextSupplier
Provide access to DocValues for script
field
api and doc
API.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.lucene.index.LeafReaderContext
protected LeafSearchLookup
A leaf lookup for the bound segment this proxy will operate on.protected final SearchLookup
-
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.LeafReaderContext
void
setDocument
(int docID) Set the underlying docId
-
Field Details
-
searchLookup
-
leafReaderContext
protected final org.apache.lucene.index.LeafReaderContext leafReaderContext -
leafSearchLookup
A leaf lookup for the bound segment this proxy will operate on.
-
-
Constructor Details
-
DocValuesDocReader
public DocValuesDocReader(SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext leafContext)
-
-
Method Details
-
field
Description copied from interface:DocReader
New-style field access -
fields
Description copied from interface:DocReader
New-style field iterator -
setDocument
public void setDocument(int docID) Description copied from interface:DocReader
Set the underlying docId- Specified by:
setDocument
in interfaceDocReader
-
docAsMap
Description copied from interface:DocReader
Old-style doc access for contexts that map some doc contents in params -
doc
Description copied from interface:DocReader
Old-style doc['field'] access -
getLeafReaderContext
public org.apache.lucene.index.LeafReaderContext getLeafReaderContext()- Specified by:
getLeafReaderContext
in interfaceLeafReaderContextSupplier
-