use of org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder in project fess by codelibs.
the class BsRequestHeaderCA method setCreatedBy_IpRange.
public void setCreatedBy_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsRequestHeaderCA> aggsLambda) {
IpRangeAggregationBuilder builder = regIpRangeA(name, "createdBy");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RequestHeaderCA ca = new RequestHeaderCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder in project fess by codelibs.
the class BsRequestHeaderCA method setName_IpRange.
public void setName_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsRequestHeaderCA> aggsLambda) {
IpRangeAggregationBuilder builder = regIpRangeA(name, "name");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RequestHeaderCA ca = new RequestHeaderCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder in project fess by codelibs.
the class EsAbstractConditionAggregation method regIpRangeA.
protected IpRangeAggregationBuilder regIpRangeA(String name, String field) {
IpRangeAggregationBuilder builder = AggregationBuilders.ipRange(name).field(field);
regA(builder);
return builder;
}
use of org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder in project fess by codelibs.
the class BsScheduledJobCA method setUpdatedBy_IpRange.
public void setUpdatedBy_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsScheduledJobCA> aggsLambda) {
IpRangeAggregationBuilder builder = regIpRangeA(name, "updatedBy");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
ScheduledJobCA ca = new ScheduledJobCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder in project fess by codelibs.
the class BsWebAuthenticationCA method setProtocolScheme_IpRange.
public void setProtocolScheme_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsWebAuthenticationCA> aggsLambda) {
IpRangeAggregationBuilder builder = regIpRangeA(name, "protocolScheme");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
WebAuthenticationCA ca = new WebAuthenticationCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations