Class ChiSquareHeuristic
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.ChiSquareHeuristic
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ChiSquareHeuristic.Builder,ChiSquareHeuristic>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ChiSquareHeuristic
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ChiSquareHeuristic.Builder,ChiSquareHeuristic>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ChiSquareHeuristic> Json deserializer forChiSquareHeuristic -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanRequired - Set tofalseif you defined a custom background filter that represents a different set of documents that you want to compare to.static ChiSquareHeuristic.Builderbuilder()booleaninthashCode()final booleanRequired - Set tofalseto filter out the terms that appear less often in the subset than in documents outside the subset.static ChiSquareHeuristicvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forChiSquareHeuristic
-
-
Method Details
-
of
public static ChiSquareHeuristic of(Function<ChiSquareHeuristic.Builder, ObjectBuilder<ChiSquareHeuristic>> fn) -
backgroundIsSuperset
public final boolean backgroundIsSuperset()Required - 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
public final boolean includeNegatives()Required - Set tofalseto filter out the terms that appear less often in the subset than in documents outside the subset.API name:
include_negatives -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ChiSquareHeuristic.Builder,ChiSquareHeuristic> - Returns:
- a new builder instance.
-
builder
-
setupChiSquareHeuristicDeserializer
protected static void setupChiSquareHeuristicDeserializer(ObjectDeserializer<ChiSquareHeuristic.Builder> op) -
hashCode
public int hashCode() -
equals
-