Class LabelSetSpec
java.lang.Object
org.elasticsearch.xpack.esql.optimizer.rules.logical.promql.LabelSetSpec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordConcrete aggregate shape produced by apply(). -
Method Summary
Modifier and TypeMethodDescriptionapply()Finalize the deferred spec into concrete aggregate shape.declared()Labels currently known to exist.excluded()Labels known to be excluded by WITHOUT.withExcluded(List<Attribute> excludedLabels) Bind inherited exclusions and self-resolve against declaredLabels.withIncluded(List<Attribute> includedLabels) Bind this spec to visible child output.
-
Method Details
-
withIncluded
Bind this spec to visible child output. Used by outer aggregation before apply(). -
withExcluded
Bind inherited exclusions and self-resolve against declaredLabels. Used by the innermost aggregate, where no child aggregate output exists yet. -
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
Labels currently known to exist. This is the visible label domain before final apply(). -
excluded
Labels known to be excluded by WITHOUT. Empty means the spec is exact.
-