Class MutualInformationHeuristic.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MutualInformationHeuristic.Builder>
co.elastic.clients.elasticsearch._types.aggregations.MutualInformationHeuristic.Builder
- All Implemented Interfaces:
WithJson<MutualInformationHeuristic.Builder>,ObjectBuilder<MutualInformationHeuristic>
- Enclosing class:
- MutualInformationHeuristic
public static class MutualInformationHeuristic.Builder
extends WithJsonObjectBuilderBase<MutualInformationHeuristic.Builder>
implements ObjectBuilder<MutualInformationHeuristic>
Builder for
MutualInformationHeuristic.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackgroundIsSuperset(Boolean value) Set tofalseif you defined a custom background filter that represents a different set of documents that you want to compare to.build()Builds aMutualInformationHeuristic.includeNegatives(Boolean value) Set tofalseto filter out the terms that appear less often in the subset than in documents outside the subset.protected MutualInformationHeuristic.Builderself()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
-
backgroundIsSuperset
Set tofalseif you defined a custom background filter that represents a different set of documents that you want to compare to.API name:
background_is_superset -
includeNegatives
Set tofalseto filter out the terms that appear less often in the subset than in documents outside the subset.API name:
include_negatives -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<MutualInformationHeuristic.Builder>
-
build
Builds aMutualInformationHeuristic.- Specified by:
buildin interfaceObjectBuilder<MutualInformationHeuristic>- Throws:
NullPointerException- if some of the required fields are null.
-