Class TsInfoExec
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<PhysicalPlan>
org.elasticsearch.xpack.esql.plan.QueryPlan<PhysicalPlan>
org.elasticsearch.xpack.esql.plan.physical.PhysicalPlan
org.elasticsearch.xpack.esql.plan.physical.UnaryExec
org.elasticsearch.xpack.esql.plan.physical.TsInfoExec
- All Implemented Interfaces:
NamedWriteable,Writeable
Physical plan node for the TS_INFO command.
Operates in two modes, similar to MetricsInfoExec:
TsInfoExec.Mode.INITIAL— runs on data nodes. Extracts per-time-series metric metadata from shards (_tsid,_timeseries_metadata, mappings) and produces one row per (metric, time-series) combination within the local shards.TsInfoExec.Mode.FINAL— runs on the coordinator. Receives per-data-node results via the exchange and merges rows that share the same (metric, dimensions) signature, unioning multi-valued fields (data_stream,dimension_fields, etc.).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumExecution mode, mirroring the three-phase pattern used by aggregations.Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.tree.Node
Node.NodeStringFormatNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_LINES, TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionTsInfoExec(Source source, PhysicalPlan child, List<Attribute> outputAttrs, List<Attribute> intermediateAttributes, TsInfoExec.Mode mode) -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributeSetThis very likely needs to be overridden forQueryPlan.references()to be correct when inheriting.booleaninthashCode()protected NodeInfo<TsInfoExec> info()Normally, you want to use one of the staticcreatemethods to implement this.mode()output()The ordered list of attributes (i.e.replaceChild(PhysicalPlan newChild) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.plan.physical.UnaryExec
child, inputSet, outputSet, replaceChildrenMethods inherited from class org.elasticsearch.xpack.esql.plan.QueryPlan
computeExpressions, expressions, forEachExpression, forEachExpression, forEachExpressionDown, forEachExpressionUp, references, transformExpressionsDown, transformExpressionsDown, transformExpressionsOnly, transformExpressionsOnly, transformExpressionsOnlyUp, transformExpressionsUp, transformExpressionsUpMethods inherited from class org.elasticsearch.xpack.esql.core.tree.Node
allMatch, anyMatch, children, collect, collect, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachDownMayReturnEarly, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, nodeName, nodeProperties, nodeString, nodeString, propertiesToString, replaceChildrenSameSize, source, sourceLocation, sourceText, toString, toString, transformChildren, transformChildren, transformDown, transformDown, transformDown, transformDown, transformDownSkipBranch, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUp
-
Field Details
-
ENTRY
-
-
Constructor Details
-
TsInfoExec
public TsInfoExec(Source source, PhysicalPlan child, List<Attribute> outputAttrs, List<Attribute> intermediateAttributes, TsInfoExec.Mode mode)
-
-
Method Details
-
writeTo
- Throws:
IOException
-
getWriteableName
-
mode
-
outputAttrs
-
intermediateAttributes
-
info
Description copied from class:NodeNormally, you want to use one of the staticcreatemethods to implement this.For
QueryPlans, it is very important that the properties contain all of the expressions and references relevant to this node, and that all the properties are used in the provided constructor; otherwise query plan transformations likeQueryPlan#transformExpressionsOnly(Function)will not have an effect.- Specified by:
infoin classNode<PhysicalPlan>
-
replaceChild
- Specified by:
replaceChildin classUnaryExec
-
output
Description copied from class:QueryPlanThe ordered list of attributes (i.e. columns) this plan produces when executed. Must be called only on resolved plans, otherwise may throw an exception or return wrong results. -
computeReferences
Description copied from class:QueryPlanThis very likely needs to be overridden forQueryPlan.references()to be correct when inheriting. This can be called on unresolved plans and therefore must not rely on calls toQueryPlan.output().- Overrides:
computeReferencesin classQueryPlan<PhysicalPlan>
-
hashCode
public int hashCode() -
equals
-