Class BucketAggregationScript

java.lang.Object
org.elasticsearch.script.BucketAggregationScript

public abstract class BucketAggregationScript
extends java.lang.Object
A script used in bucket aggregations that returns a double value.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  BucketAggregationScript.Factory  
  • Field Summary

    Fields
    Modifier and Type Field Description
    static ScriptContext<BucketAggregationScript.Factory> CONTEXT  
    static java.lang.String[] PARAMETERS  
  • Constructor Summary

    Constructors
    Constructor Description
    BucketAggregationScript​(java.util.Map<java.lang.String,​java.lang.Object> params)  
  • Method Summary

    Modifier and Type Method Description
    abstract java.lang.Number execute()  
    java.util.Map<java.lang.String,​java.lang.Object> getParams()
    Return the parameters for this script.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BucketAggregationScript

      public BucketAggregationScript​(java.util.Map<java.lang.String,​java.lang.Object> params)
  • Method Details

    • getParams

      public java.util.Map<java.lang.String,​java.lang.Object> getParams()
      Return the parameters for this script.
    • execute

      public abstract java.lang.Number execute()