Module org.elasticsearch.compute
Record Class SeenGroupIds.Range
java.lang.Object
java.lang.Record
org.elasticsearch.compute.aggregation.SeenGroupIds.Range
- All Implemented Interfaces:
SeenGroupIds
- Enclosing interface:
SeenGroupIds
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.compute.aggregation.SeenGroupIds
SeenGroupIds.Empty, SeenGroupIds.Range -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.seenGroupIds(BigArrays bigArrays) The grouping ids that have been seen already.intto()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Range
public Range(int from, int to) Creates an instance of aRangerecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord component
-
-
Method Details
-
seenGroupIds
Description copied from interface:SeenGroupIdsThe grouping ids that have been seen already. ThisBitArrayis kept and mutated by the caller so make a copy if it's something you need your own copy of it.- Specified by:
seenGroupIdsin interfaceSeenGroupIds
-
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. All components in this record class are compared with '=='. -
from
public int from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
public int to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-