Package org.elasticsearch.script
Class DocValuesDocReader
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
Modifier and TypeFieldDescriptionprotected LeafSearchLookup
A leaf lookup for the bound segment this proxy will operate on.protected org.apache.lucene.index.LeafReaderContext
protected SearchLookup
-
Constructor Summary
ConstructorDescriptionDocValuesDocReader(SearchLookup lookup, 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
-
leafLookup
A leaf lookup for the bound segment this proxy will operate on. -
leafReaderContext
protected final org.apache.lucene.index.LeafReaderContext leafReaderContext -
lookup
-
-
Constructor Details
-
DocValuesDocReader
public DocValuesDocReader(SearchLookup lookup, 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
-