use of org.codelibs.fess.es.config.cbean.ca.JobLogCA in project fess by codelibs.
the class BsJobLogCA method setScriptData_IpRange.
public void setScriptData_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsJobLogCA> aggsLambda) {
IpRangeAggregationBuilder builder = regIpRangeA(name, "scriptData");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
JobLogCA ca = new JobLogCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations