Package org.elasticsearch.script
Class ScriptedMetricAggContexts.MapScript
java.lang.Object
org.elasticsearch.script.ScriptedMetricAggContexts.MapScript
- Enclosing class:
- ScriptedMetricAggContexts
public abstract static class ScriptedMetricAggContexts.MapScript
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ScriptedMetricAggContexts.MapScript.Factory
static interface
ScriptedMetricAggContexts.MapScript.LeafFactory
-
Field Summary
Fields Modifier and Type Field Description static ScriptContext<ScriptedMetricAggContexts.MapScript.Factory>
CONTEXT
static java.lang.String[]
PARAMETERS
-
Constructor Summary
Constructors Constructor Description MapScript(java.util.Map<java.lang.String,java.lang.Object> params, java.util.Map<java.lang.String,java.lang.Object> state, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext)
-
Method Summary
Modifier and Type Method Description abstract void
execute()
double
get_score()
java.util.Map<java.lang.String,ScriptDocValues<?>>
getDoc()
java.util.Map<java.lang.String,java.lang.Object>
getParams()
java.util.Map<java.lang.String,java.lang.Object>
getState()
void
setDocument(int docId)
void
setScorer(org.apache.lucene.search.Scorable scorer)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
PARAMETERS
public static java.lang.String[] PARAMETERS -
CONTEXT
-
-
Constructor Details
-
MapScript
public MapScript(java.util.Map<java.lang.String,java.lang.Object> params, java.util.Map<java.lang.String,java.lang.Object> state, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext)
-
-
Method Details
-
getParams
public java.util.Map<java.lang.String,java.lang.Object> getParams() -
getState
public java.util.Map<java.lang.String,java.lang.Object> getState() -
getDoc
-
setDocument
public void setDocument(int docId) -
setScorer
public void setScorer(org.apache.lucene.search.Scorable scorer) -
get_score
public double get_score() -
execute
public abstract void execute()
-