Class EsStatsQueryExec
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.LeafExec
org.elasticsearch.xpack.esql.plan.physical.EsStatsQueryExec
- All Implemented Interfaces:
NamedWriteable,Writeable,EstimatesRowSize
Specialized query class for retrieving statistics about the underlying data and not the actual documents.
For that see
EsQueryExec-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumNested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.plan.physical.EstimatesRowSize
EstimatesRowSize.StateNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionEsStatsQueryExec(Source source, String indexPattern, QueryBuilder query, Expression limit, List<Attribute> attributes, List<EsStatsQueryExec.Stat> stats) -
Method Summary
Modifier and TypeMethodDescriptionbooleanEstimate the number of bytes that'll be loaded per position before the stream of pages is consumed.inthashCode()protected NodeInfo<EsStatsQueryExec> info()limit()output()The ordered list of attributes (i.e.query()stats()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.plan.physical.LeafExec
computeReferences, replaceChildrenMethods inherited from class org.elasticsearch.xpack.esql.plan.QueryPlan
computeExpressions, expressions, forEachExpression, forEachExpression, forEachExpressionDown, forEachExpressionUp, inputSet, outputSet, references, transformExpressionsDown, transformExpressionsDown, transformExpressionsOnly, transformExpressionsOnly, transformExpressionsOnlyUp, transformExpressionsUp, transformExpressionsUpMethods inherited from class org.elasticsearch.xpack.esql.core.tree.Node
anyMatch, children, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, nodeName, nodeProperties, propertiesToString, replaceChildrenSameSize, source, sourceLocation, sourceText, toString, transformChildren, transformDown, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUp
-
Constructor Details
-
EsStatsQueryExec
public EsStatsQueryExec(Source source, String indexPattern, QueryBuilder query, Expression limit, List<Attribute> attributes, List<EsStatsQueryExec.Stat> stats)
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
info
- Specified by:
infoin classNode<PhysicalPlan>
-
query
-
stats
-
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.- Specified by:
outputin classQueryPlan<PhysicalPlan>
-
limit
-
estimateRowSize
Description copied from interface:EstimatesRowSizeEstimate the number of bytes that'll be loaded per position before the stream of pages is consumed.- Specified by:
estimateRowSizein interfaceEstimatesRowSize- Returns:
-
hashCode
public int hashCode()- Specified by:
hashCodein classPhysicalPlan
-
equals
- Specified by:
equalsin classPhysicalPlan
-
nodeString
- Overrides:
nodeStringin classNode<PhysicalPlan>
-