Class LabelMatchers
java.lang.Object
org.elasticsearch.xpack.esql.plan.logical.promql.selector.LabelMatchers
- All Implemented Interfaces:
NodeStringRenderable
Immutable collection of label matchers for a PromQL selector.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LabelMatchersEmpty label matchers for literal selectors and other cases with no label constraints. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisEmpty()matchers()voidnodeString(StringBuilder sb, Node.NodeStringFormat format, NodeStringMapper mapper) Renders the matcher list shape ([m1, m2], matchingList.toString()) with each matcher routed through the mapper, so label names + match values tokenize under anonymization while identity rendering stays byte-identical.toString()
-
Field Details
-
EMPTY
Empty label matchers for literal selectors and other cases with no label constraints.
-
-
Constructor Details
-
LabelMatchers
-
-
Method Details
-
matchers
-
nameLabel
-
isEmpty
public boolean isEmpty() -
hashCode
public int hashCode() -
equals
-
toString
-
nodeString
Renders the matcher list shape ([m1, m2], matchingList.toString()) with each matcher routed through the mapper, so label names + match values tokenize under anonymization while identity rendering stays byte-identical.- Specified by:
nodeStringin interfaceNodeStringRenderable
-