java.lang.Object
org.elasticsearch.xpack.esql.optimizer.rules.logical.promql.LabelSetSpec

public final class LabelSetSpec extends Object
  • Method Details

    • withIncluded

      public LabelSetSpec withIncluded(List<Attribute> includedLabels)
      Bind this spec to visible child output. Used by outer aggregation before apply().
    • withExcluded

      public LabelSetSpec withExcluded(List<Attribute> excludedLabels)
      Bind inherited exclusions and self-resolve against declaredLabels. Used by the innermost aggregate, where no child aggregate output exists yet.
    • apply

      public LabelSetSpec.LabelSet apply()
      Finalize the deferred spec into concrete aggregate shape. Result contract: - includedGroupings: actual grouping keys - matchedAttributes: visible output attrs that must survive but are not keys - missingAttributes: BY labels absent from visible output; caller null-fills them - excludedGroupings: concrete dimension exclusions for TimeSeriesWithout
    • declared

      public List<Attribute> declared()
      Labels currently known to exist. This is the visible label domain before final apply().
    • excluded

      public List<Attribute> excluded()
      Labels known to be excluded by WITHOUT. Empty means the spec is exact.