use of org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder in project fess by codelibs.
the class EsAbstractConditionAggregation method regSamplerA.
protected SamplerAggregationBuilder regSamplerA(String name) {
SamplerAggregationBuilder builder = AggregationBuilders.sampler(name);
regA(builder);
return builder;
}
use of org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder in project fess by codelibs.
the class BsRelatedContentCA method sampler.
public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
SamplerAggregationBuilder builder = regSamplerA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedContentCA ca = new RelatedContentCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder in project fess by codelibs.
the class BsLabelTypeCA method sampler.
public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
SamplerAggregationBuilder builder = regSamplerA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
LabelTypeCA ca = new LabelTypeCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder in project fess by codelibs.
the class BsJobLogCA method sampler.
public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsJobLogCA> aggsLambda) {
SamplerAggregationBuilder builder = regSamplerA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
JobLogCA ca = new JobLogCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder in project fess by codelibs.
the class EsAbstractConditionAggregation method regSamplerA.
protected SamplerAggregationBuilder regSamplerA(String name) {
SamplerAggregationBuilder builder = AggregationBuilders.sampler(name);
regA(builder);
return builder;
}
Aggregations