Package org.elasticsearch.script
Interface DocReader
- All Known Implementing Classes:
 DocValuesDocReader
public interface DocReader
Access the document in a script, provides both old-style, doc['fieldname'], and new style field('fieldname') access to the fields.
 
field(String) and fields(String) may pull field contents from source as well as doc-values.  Old style access
 only reads doc-values.- 
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 paramsNew-style field accessNew-style field iteratorvoidsetDocument(int docID) Set the underlying docId 
- 
Method Details
- 
field
New-style field access - 
fields
New-style field iterator - 
setDocument
void setDocument(int docID) Set the underlying docId - 
docAsMap
Old-style doc access for contexts that map some doc contents in params - 
doc
Map<String,ScriptDocValues<?>> doc()Old-style doc['field'] access 
 -