Class StringStatsAggregate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<StringStatsAggregate.Builder>
co.elastic.clients.elasticsearch._types.aggregations.StringStatsAggregate.Builder
- All Implemented Interfaces:
WithJson<StringStatsAggregate.Builder>,ObjectBuilder<StringStatsAggregate>
- Enclosing class:
- StringStatsAggregate
public static class StringStatsAggregate.Builder
extends AggregateBase.AbstractBuilder<StringStatsAggregate.Builder>
implements ObjectBuilder<StringStatsAggregate>
Builder for
StringStatsAggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavgLength(double value) Required - API name:avg_lengthavgLengthAsString(String value) API name:avg_length_as_stringbuild()Builds aStringStatsAggregate.count(long value) Required - API name:countdistribution(String key, Double value) API name:distributiondistribution(Map<String, Double> map) API name:distributionentropy(double value) Required - API name:entropymaxLength(int value) Required - API name:max_lengthmaxLengthAsString(String value) API name:max_length_as_stringminLength(int value) Required - API name:min_lengthminLengthAsString(String value) API name:min_length_as_stringprotected StringStatsAggregate.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, metaMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Required - API name:count -
minLength
Required - API name:min_lengthDefaults to
0if parsed from a JSONnullvalue. -
maxLength
Required - API name:max_lengthDefaults to
0if parsed from a JSONnullvalue. -
avgLength
Required - API name:avg_lengthDefaults to
0if parsed from a JSONnullvalue. -
entropy
Required - API name:entropyDefaults to
0if parsed from a JSONnullvalue. -
distribution
API name:distributionAdds all entries of
maptodistribution. -
distribution
API name:distributionAdds an entry to
distribution. -
minLengthAsString
API name:min_length_as_string -
maxLengthAsString
API name:max_length_as_string -
avgLengthAsString
API name:avg_length_as_string -
self
- Specified by:
selfin classAggregateBase.AbstractBuilder<StringStatsAggregate.Builder>
-
build
Builds aStringStatsAggregate.- Specified by:
buildin interfaceObjectBuilder<StringStatsAggregate>- Throws:
NullPointerException- if some of the required fields are null.
-