Class ScriptedMetricAggContexts.MapScript

  • Enclosing class:
    ScriptedMetricAggContexts

    public abstract static class ScriptedMetricAggContexts.MapScript
    extends java.lang.Object
    • 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()