Class AdjacencyMatrixAggregation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder<AdjacencyMatrixAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase.AbstractBuilder<AdjacencyMatrixAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.AdjacencyMatrixAggregation.Builder
- All Implemented Interfaces:
CopyableBuilder<AdjacencyMatrixAggregation.Builder,,AdjacencyMatrixAggregation> MutableBuilder<AdjacencyMatrixAggregation.Builder,,AdjacencyMatrixAggregation> ObjectBuilder<AdjacencyMatrixAggregation>
- Enclosing class:
AdjacencyMatrixAggregation
public static class AdjacencyMatrixAggregation.Builder
extends BucketAggregationBase.AbstractBuilder<AdjacencyMatrixAggregation.Builder>
implements CopyableBuilder<AdjacencyMatrixAggregation.Builder,AdjacencyMatrixAggregation>
Builder for
AdjacencyMatrixAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAdjacencyMatrixAggregation.copy()Create a new builderCopyableBuilderthat is a copy of this one.filters(String key, Function<Query.Builder, ObjectBuilder<Query>> fn) Filters used to create buckets.Filters used to create buckets.Filters used to create buckets.protected AdjacencyMatrixAggregation.Builderself()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<AdjacencyMatrixAggregation.Builder,AdjacencyMatrixAggregation> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregationBase.AbstractBuilder<AdjacencyMatrixAggregation.Builder>
-
filters
Filters used to create buckets. At least one filter is required.API name:
filtersAdds all elements of
maptofilters. -
filters
Filters used to create buckets. At least one filter is required.API name:
filtersAdds an entry to
filters. -
filters
@Nonnull public final AdjacencyMatrixAggregation.Builder filters(String key, Function<Query.Builder, ObjectBuilder<Query>> fn) Filters used to create buckets. At least one filter is required.API name:
filtersAdds a value to
filtersusing a builder lambda. -
build
Builds aAdjacencyMatrixAggregation.- Specified by:
buildin interfaceObjectBuilder<AdjacencyMatrixAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-