Class FrequentItemSetsAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FrequentItemSetsAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.FrequentItemSetsAggregation.Builder
- All Implemented Interfaces:
WithJson<FrequentItemSetsAggregation.Builder>
,ObjectBuilder<FrequentItemSetsAggregation>
- Enclosing class:
- FrequentItemSetsAggregation
public static class FrequentItemSetsAggregation.Builder
extends WithJsonObjectBuilderBase<FrequentItemSetsAggregation.Builder>
implements ObjectBuilder<FrequentItemSetsAggregation>
Builder for
FrequentItemSetsAggregation
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aFrequentItemSetsAggregation
.fields
(FrequentItemSetsField value, FrequentItemSetsField... values) Required - Fields to analyze.Required - Fields to analyze.fields
(List<FrequentItemSetsField> list) Required - Fields to analyze.Query that filters documents from analysis.Query that filters documents from analysis.minimumSetSize
(Integer value) The minimum size of one item set.minimumSupport
(Double value) The minimum support of one item set.protected FrequentItemSetsAggregation.Builder
self()
The number of top item sets to return.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fields
Required - Fields to analyze.API name:
fields
Adds all elements of
list
tofields
. -
fields
public final FrequentItemSetsAggregation.Builder fields(FrequentItemSetsField value, FrequentItemSetsField... values) Required - Fields to analyze.API name:
fields
Adds one or more values to
fields
. -
fields
public final FrequentItemSetsAggregation.Builder fields(Function<FrequentItemSetsField.Builder, ObjectBuilder<FrequentItemSetsField>> fn) Required - Fields to analyze.API name:
fields
Adds a value to
fields
using a builder lambda. -
minimumSetSize
The minimum size of one item set.API name:
minimum_set_size
-
minimumSupport
The minimum support of one item set.API name:
minimum_support
-
size
The number of top item sets to return.API name:
size
-
filter
Query that filters documents from analysis.API name:
filter
-
filter
public final FrequentItemSetsAggregation.Builder filter(Function<Query.Builder, ObjectBuilder<Query>> fn) Query that filters documents from analysis.API name:
filter
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<FrequentItemSetsAggregation.Builder>
-
build
Builds aFrequentItemSetsAggregation
.- Specified by:
build
in interfaceObjectBuilder<FrequentItemSetsAggregation>
- Throws:
NullPointerException
- if some of the required fields are null.
-