use of org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsAccessTokenCA method setExpiredTime_Histogram.
public void setExpiredTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsAccessTokenCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "expiredTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
AccessTokenCA ca = new AccessTokenCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsGroupCA method setGidNumber_Histogram.
public void setGidNumber_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsGroupCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "gidNumber");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
GroupCA ca = new GroupCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsUserCA method setGidNumber_Histogram.
public void setGidNumber_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsUserCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "gidNumber");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
UserCA ca = new UserCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsUserCA method setUidNumber_Histogram.
public void setUidNumber_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsUserCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "uidNumber");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
UserCA ca = new UserCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class EsAbstractConditionAggregation method regHistogramA.
protected HistogramAggregationBuilder regHistogramA(String name, String field) {
HistogramAggregationBuilder builder = AggregationBuilders.histogram(name).field(field);
regA(builder);
return builder;
}
Aggregations