use of org.opensearch.search.aggregations.pipeline.CumulativeSumPipelineAggregationBuilder in project OpenSearch by opensearch-project.
the class AggregatorFactoriesBuilderTests method getRandomPipelineAggregation.
private static PipelineAggregationBuilder getRandomPipelineAggregation() {
// just 1 type of pipeline agg, sufficient for the purpose of this test
String name = randomAlphaOfLengthBetween(3, 20);
String bucketsPath = randomAlphaOfLengthBetween(3, 20);
PipelineAggregationBuilder builder = new CumulativeSumPipelineAggregationBuilder(name, bucketsPath);
return builder;
}
Aggregations