Class EsqlQueryProfile
java.lang.Object
org.elasticsearch.xpack.esql.action.EsqlQueryProfile
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public class EsqlQueryProfile
extends Object
implements Writeable, org.elasticsearch.xcontent.ToXContentFragment
Tracks profiling for the planning phase
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalysis()Span for the plan analysis phase - this does not include plan optimizations, which come later and are part of each individual plan profilingbooleanintinthashCode()voidparsing()Span for the parsing phase, that covers the ES|QL query parsingplanning()Span for the ES|QL "planning" phase - when it is complete, query execution (in ComputeService) is about to start.Span for the preanalysis phasestatic EsqlQueryProfilereadFrom(StreamInput in) start()stop()voidSafely stops all markers that were started but not yet stopped.toString()total()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Span for resolving views in the logical plan (between parsing and pre-analysis).voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
QUERY
- See Also:
-
PLANNING
- See Also:
-
PARSING
- See Also:
-
VIEW_RESOLUTION
- See Also:
-
PRE_ANALYSIS
- See Also:
-
INDICES_RESOLUTION
- See Also:
-
ENRICH_RESOLUTION
- See Also:
-
INFERENCE_RESOLUTION
- See Also:
-
ANALYSIS
- See Also:
-
-
Constructor Details
-
EsqlQueryProfile
public EsqlQueryProfile() -
EsqlQueryProfile
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
start
-
stop
-
total
-
planning
Span for the ES|QL "planning" phase - when it is complete, query execution (in ComputeService) is about to start. Note this is currently only built for a single phase planning/execution model. When INLINE STATS moves towards GA we may need to revisit this model. Currently, it should never be called more than once. -
parsing
Span for the parsing phase, that covers the ES|QL query parsing -
viewResolution
Span for resolving views in the logical plan (between parsing and pre-analysis). -
preAnalysis
Span for the preanalysis phase -
indicesResolutionMarker
-
enrichResolutionMarker
-
inferenceResolutionMarker
-
analysis
Span for the plan analysis phase - this does not include plan optimizations, which come later and are part of each individual plan profiling -
fieldCapsCalls
public int fieldCapsCalls() -
incFieldCapsCalls
public void incFieldCapsCalls() -
timeSpanMarkers
-
stopAllStartedMarkers
public void stopAllStartedMarkers()Safely stops all markers that were started but not yet stopped. This is useful in error paths where we need to ensure all timing data is captured. -
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-