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.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.lang.Object
getState()
void
setDocument(int docId)
void
setScorer(org.apache.lucene.search.Scorer scorer)
-
-
-
Field Detail
-
PARAMETERS
public static java.lang.String[] PARAMETERS
-
CONTEXT
public static ScriptContext<ScriptedMetricAggContexts.MapScript.Factory> CONTEXT
-
-
Constructor Detail
-
MapScript
public MapScript(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.Object state, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext)
-
-
Method Detail
-
getParams
public java.util.Map<java.lang.String,java.lang.Object> getParams()
-
getState
public java.lang.Object getState()
-
getDoc
public java.util.Map<java.lang.String,ScriptDocValues<?>> getDoc()
-
setDocument
public void setDocument(int docId)
-
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
-
get_score
public double get_score()
-
execute
public abstract void execute()
-
-