Class VariableWidthHistogramAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<VariableWidthHistogramAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.VariableWidthHistogramAggregation.Builder
- All Implemented Interfaces:
WithJson<VariableWidthHistogramAggregation.Builder>,ObjectBuilder<VariableWidthHistogramAggregation>
- Enclosing class:
- VariableWidthHistogramAggregation
public static class VariableWidthHistogramAggregation.Builder
extends WithJsonObjectBuilderBase<VariableWidthHistogramAggregation.Builder>
implements ObjectBuilder<VariableWidthHistogramAggregation>
Builder for
VariableWidthHistogramAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe target number of buckets.build()Builds aVariableWidthHistogramAggregation.The name of the field.initialBuffer(Integer value) Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run.self()The number of buckets that the coordinating node will request from each shard.Methods 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
-
field
The name of the field.API name:
field -
buckets
The target number of buckets.API name:
buckets -
shardSize
The number of buckets that the coordinating node will request from each shard. Defaults tobuckets * 50.API name:
shard_size -
initialBuffer
Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run. Defaults tomin(10 * shard_size, 50000).API name:
initial_buffer -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<VariableWidthHistogramAggregation.Builder>
-
build
Builds aVariableWidthHistogramAggregation.- Specified by:
buildin interfaceObjectBuilder<VariableWidthHistogramAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-