Record Class PromqlAttributesTranslationContext.ResolvedAttributes
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.optimizer.rules.logical.promql.PromqlAttributesTranslationContext.ResolvedAttributes
- Enclosing class:
PromqlAttributesTranslationContext
public static record PromqlAttributesTranslationContext.ResolvedAttributes(List<Attribute> groupings, List<Attribute> passthrough, List<Attribute> absent, List<Attribute> excludedDimensions)
extends Record
The target representation produced by
PromqlAttributesTranslationContext.SynthesizedAttributes.translateLeaf(java.util.List<org.elasticsearch.xpack.esql.core.expression.Attribute>)/
PromqlAttributesTranslationContext.SynthesizedAttributes.translate(java.util.List<org.elasticsearch.xpack.esql.core.expression.Attribute>). Translator code consumes this directly to build the aggregate plan node.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabsent()Returns the value of theabsentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludedDimensionsrecord component.Returns the value of thegroupingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepassthroughrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedAttributes
public ResolvedAttributes(List<Attribute> groupings, List<Attribute> passthrough, List<Attribute> absent, List<Attribute> excludedDimensions) Creates an instance of aResolvedAttributesrecord class.- Parameters:
groupings- the value for thegroupingsrecord componentpassthrough- the value for thepassthroughrecord componentabsent- the value for theabsentrecord componentexcludedDimensions- the value for theexcludedDimensionsrecord 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). -
groupings
Returns the value of thegroupingsrecord component.- Returns:
- the value of the
groupingsrecord component
-
passthrough
Returns the value of thepassthroughrecord component.- Returns:
- the value of the
passthroughrecord component
-
absent
Returns the value of theabsentrecord component.- Returns:
- the value of the
absentrecord component
-
excludedDimensions
Returns the value of theexcludedDimensionsrecord component.- Returns:
- the value of the
excludedDimensionsrecord component
-