All Implemented Interfaces:
NamedWriteable, Writeable, TelemetryAware, Resolvable

public class Explain extends LeafPlan implements TelemetryAware
  • Field Details

    • OUTPUT_ATTRIBUTES

      public static final List<Attribute> OUTPUT_ATTRIBUTES
      Output columns for EXPLAIN command. - cluster: the cluster alias (empty string for local cluster) - node: the node name where the plan runs - role: coordinator, data, or subplan - type: the plan type (parsedPlan, optimizedLogicalPlan, optimizedPhysicalPlan, localPlan) - plan: the plan string representation
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out)
      Specified by:
      writeTo in interface Writeable
    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface NamedWriteable
    • query

      public LogicalPlan query()
    • output

      public List<Attribute> output()
      Description copied from class: QueryPlan
      The 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:
      output in class QueryPlan<LogicalPlan>
    • expressionsResolved

      public boolean expressionsResolved()
      Specified by:
      expressionsResolved in class LogicalPlan
    • info

      protected NodeInfo<? extends LogicalPlan> info()
      Description copied from class: Node
      Normally, you want to use one of the static create methods 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 like QueryPlan#transformExpressionsOnly(Function) will not have an effect.

      Specified by:
      info in class Node<LogicalPlan>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class LogicalPlan
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class LogicalPlan