Module org.elasticsearch.compute
Record Class BlockHash.CategorizeDef
java.lang.Object
java.lang.Record
org.elasticsearch.compute.aggregation.blockhash.BlockHash.CategorizeDef
- Enclosing class:
BlockHash
public static record BlockHash.CategorizeDef(String analyzer, BlockHash.CategorizeDef.OutputFormat outputFormat, int similarityThreshold)
extends Record
Configuration for a BlockHash group spec that is doing text categorization.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCategorizeDef(String analyzer, BlockHash.CategorizeDef.OutputFormat outputFormat, int similarityThreshold) Creates an instance of aCategorizeDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanalyzer()Returns the value of theanalyzerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoutputFormatrecord component.intReturns the value of thesimilarityThresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CategorizeDef
public CategorizeDef(String analyzer, BlockHash.CategorizeDef.OutputFormat outputFormat, int similarityThreshold) Creates an instance of aCategorizeDefrecord class.- Parameters:
analyzer- the value for theanalyzerrecord componentoutputFormat- the value for theoutputFormatrecord componentsimilarityThreshold- the value for thesimilarityThresholdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
analyzer
Returns the value of theanalyzerrecord component.- Returns:
- the value of the
analyzerrecord component
-
outputFormat
Returns the value of theoutputFormatrecord component.- Returns:
- the value of the
outputFormatrecord component
-
similarityThreshold
public int similarityThreshold()Returns the value of thesimilarityThresholdrecord component.- Returns:
- the value of the
similarityThresholdrecord component
-