Class IpPrefixAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.IpPrefixAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable public class IpPrefixAggregation extends BucketAggregationBase implements AggregationVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIpPrefixAggregation.BuilderBuilder forIpPrefixAggregation.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
BucketAggregationBase.AbstractBuilder<BuilderT extends BucketAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IpPrefixAggregation>_DESERIALIZERJson deserializer forIpPrefixAggregation -
Method Summary
Modifier and Type Method Description Aggregation.Kind_aggregationKind()Aggregation variant kind.java.lang.BooleanappendPrefixLength()Defines whether the prefix length is appended to IP address keys in the response.java.lang.Stringfield()Required - The document IP address field to aggregation on.java.lang.BooleanisIpv6()Defines whether the prefix applies to IPv6 addresses.java.lang.Booleankeyed()Defines whether buckets are returned as a hash rather than an array in the response.java.lang.LongminDocCount()Minimum number of documents for buckets to be included in the response.static IpPrefixAggregationof(java.util.function.Function<IpPrefixAggregation.Builder,ObjectBuilder<IpPrefixAggregation>> fn)intprefixLength()Required - Length of the network prefix.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupIpPrefixAggregationDeserializer(ObjectDeserializer<IpPrefixAggregation.Builder> op)Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
setupBucketAggregationBaseDeserializerMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
meta, name, serialize, setupAggregationBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forIpPrefixAggregation
-
-
Method Details
-
of
public static IpPrefixAggregation of(java.util.function.Function<IpPrefixAggregation.Builder,ObjectBuilder<IpPrefixAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
field
public final java.lang.String field()Required - The document IP address field to aggregation on. The field mapping type must beipAPI name:
field -
prefixLength
public final int prefixLength()Required - Length of the network prefix. For IPv4 addresses the accepted range is [0, 32]. For IPv6 addresses the accepted range is [0, 128].API name:
prefix_length -
isIpv6
@Nullable public final java.lang.Boolean isIpv6()Defines whether the prefix applies to IPv6 addresses.API name:
is_ipv6 -
appendPrefixLength
@Nullable public final java.lang.Boolean appendPrefixLength()Defines whether the prefix length is appended to IP address keys in the response.API name:
append_prefix_length -
keyed
@Nullable public final java.lang.Boolean keyed()Defines whether buckets are returned as a hash rather than an array in the response.API name:
keyed -
minDocCount
@Nullable public final java.lang.Long minDocCount()Minimum number of documents for buckets to be included in the response.API name:
min_doc_count -
serializeInternal
- Overrides:
serializeInternalin classAggregationBase
-
setupIpPrefixAggregationDeserializer
protected static void setupIpPrefixAggregationDeserializer(ObjectDeserializer<IpPrefixAggregation.Builder> op)
-