use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFailureUrlCA method setErrorCount_Histogram.
public void setErrorCount_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFailureUrlCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "errorCount");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FailureUrlCA ca = new FailureUrlCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setNumOfThread_Histogram.
public void setNumOfThread_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "numOfThread");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setAvailable_Histogram.
public void setAvailable_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "available");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setIntervalTime_Histogram.
public void setIntervalTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "intervalTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFileAuthenticationCA method setPort_Histogram.
public void setPort_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "port");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileAuthenticationCA ca = new FileAuthenticationCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations