Module org.elasticsearch.compute
Record Class BlockHash.GroupSpec
java.lang.Object
java.lang.Record
org.elasticsearch.compute.aggregation.blockhash.BlockHash.GroupSpec
- Record Components:
isCategorize- Whether this group is a CATEGORIZE() or not. May be changed in the future when more stateful grouping functions are added.
- Enclosing class:
BlockHash
public static record BlockHash.GroupSpec(int channel, ElementType elementType, boolean isCategorize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGroupSpec(int channel, ElementType elementType) GroupSpec(int channel, ElementType elementType, boolean isCategorize) Creates an instance of aGroupSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintchannel()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.booleanReturns the value of theisCategorizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroupSpec
-
GroupSpec
Creates an instance of aGroupSpecrecord class.- Parameters:
channel- the value for thechannelrecord componentelementType- the value for theelementTyperecord componentisCategorize- the value for theisCategorizerecord 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 '=='. -
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
-
isCategorize
public boolean isCategorize()Returns the value of theisCategorizerecord component.- Returns:
- the value of the
isCategorizerecord component
-