Package net.sf.saxon.expr.flwor
Record Class GroupByClause.ObjectToBeGrouped
java.lang.Object
java.lang.Record
net.sf.saxon.expr.flwor.GroupByClause.ObjectToBeGrouped
- Enclosing class:
GroupByClause
public static record GroupByClause.ObjectToBeGrouped(FlworTuple<AtomicValue> groupingValues, FlworTuple<Sequence> retainedValues)
extends Record
Inner class representing the contents of a tuple from the pre-grouping tuple stream;
a set of such objects constitutes a group. The tuple from the input stream is represented
as two Tuple objects, one holding the grouping key values and one holding everything else.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectToBeGrouped(FlworTuple<AtomicValue> groupingValues, FlworTuple<Sequence> retainedValues) Creates an instance of aObjectToBeGroupedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupingValuesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theretainedValuesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObjectToBeGrouped
public ObjectToBeGrouped(FlworTuple<AtomicValue> groupingValues, FlworTuple<Sequence> retainedValues) Creates an instance of aObjectToBeGroupedrecord class.- Parameters:
groupingValues- the value for thegroupingValuesrecord componentretainedValues- the value for theretainedValuesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
groupingValues
Returns the value of thegroupingValuesrecord component.- Returns:
- the value of the
groupingValuesrecord component
-
retainedValues
Returns the value of theretainedValuesrecord component.- Returns:
- the value of the
retainedValuesrecord component
-