Class ScriptedMetricAggContexts.MapScript

java.lang.Object
org.elasticsearch.script.ScriptedMetricAggContexts.MapScript
Enclosing class:
ScriptedMetricAggContexts

public abstract static class ScriptedMetricAggContexts.MapScript
extends java.lang.Object
  • Field Details

  • 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

      public java.util.Map<java.lang.String,​ScriptDocValues<?>> 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()