Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Siddhi Aggregate Function consumes zero or more parameters for each event and outputs a single attribute with an aggregated result based on the input parameters as an output. This could be used in conjunction with a window in order to find the aggregated results based on a given window such as the Aggregate Function operator.

...

  1. Create a class extending the org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator.
  2. Create an appropriate .siddhiext extension mapping file.
  3. Compile the class.
  4. Build the jar containing the .class and .siddhiext files.
  5. Add the jar to the Siddhi class path. If you need to run them the extension on WSO2 DAS, add it to the <DAS_HOME>/repository/components/dropins directory.

...