Class MovingFunctionScript


public abstract class MovingFunctionScript extends Object
This class provides a custom script context for the Moving Function pipeline aggregation, so that we can expose a number of pre-baked moving functions like min, max, movavg, etc
  • Field Details

  • Constructor Details

    • MovingFunctionScript

      public MovingFunctionScript()
  • Method Details

    • execute

      public abstract double execute(Map<String,Object> params, double[] values)
      params - The user-provided parameters
      values - The values in the window that we are moving a function across
      A double representing the value from this particular window