Class SamplerAggregation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder<SamplerAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase.AbstractBuilder<SamplerAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.SamplerAggregation.Builder
- All Implemented Interfaces:
CopyableBuilder<SamplerAggregation.Builder,,SamplerAggregation> MutableBuilder<SamplerAggregation.Builder,,SamplerAggregation> ObjectBuilder<SamplerAggregation>
- Enclosing class:
SamplerAggregation
public static class SamplerAggregation.Builder
extends BucketAggregationBase.AbstractBuilder<SamplerAggregation.Builder>
implements CopyableBuilder<SamplerAggregation.Builder,SamplerAggregation>
Builder for
SamplerAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSamplerAggregation.copy()Create a new builderCopyableBuilderthat is a copy of this one.protected SamplerAggregation.Builderself()Limits how many top-scoring documents are collected in the sample processed on each shard.Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, nameMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<SamplerAggregation.Builder,SamplerAggregation> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregationBase.AbstractBuilder<SamplerAggregation.Builder>
-
shardSize
Limits how many top-scoring documents are collected in the sample processed on each shard.API name:
shard_size -
build
Builds aSamplerAggregation.- Specified by:
buildin interfaceObjectBuilder<SamplerAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-