Module org.elasticsearch.compute
Record Class BlockHash.GroupSpec
java.lang.Object
java.lang.Record
org.elasticsearch.compute.aggregation.blockhash.BlockHash.GroupSpec
- Enclosing class:
BlockHash
public static record BlockHash.GroupSpec(int channel, ElementType elementType, BlockHash.CategorizeDef categorizeDef, BlockHash.TopNDef topNDef)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGroupSpec(int channel, ElementType elementType) GroupSpec(int channel, ElementType elementType, BlockHash.CategorizeDef categorizeDef) GroupSpec(int channel, ElementType elementType, BlockHash.CategorizeDef categorizeDef, BlockHash.TopNDef topNDef) Creates an instance of aGroupSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecategorizeDefrecord component.intchannel()Returns the value of thechannelrecord component.Returns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantopNDef()Returns the value of thetopNDefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroupSpec
-
GroupSpec
-
GroupSpec
public GroupSpec(int channel, ElementType elementType, @Nullable BlockHash.CategorizeDef categorizeDef, @Nullable BlockHash.TopNDef topNDef) Creates an instance of aGroupSpecrecord class.- Parameters:
channel- the value for thechannelrecord componentelementType- the value for theelementTyperecord componentcategorizeDef- the value for thecategorizeDefrecord componenttopNDef- the value for thetopNDefrecord component
-
-
Method Details
-
isCategorize
public boolean isCategorize() -
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 '=='. -
channel
public int channel()Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
categorizeDef
Returns the value of thecategorizeDefrecord component.- Returns:
- the value of the
categorizeDefrecord component
-
topNDef
Returns the value of thetopNDefrecord component.- Returns:
- the value of the
topNDefrecord component
-