Class ExplainAttributes

java.lang.Object
org.apache.druid.query.explain.ExplainAttributes

public final class ExplainAttributes extends Object
ExplainAttributes holds the attributes of a SQL statement that is used in the EXPLAIN PLAN result.
  • Constructor Details

    • ExplainAttributes

      public ExplainAttributes(String statementType, @Nullable String targetDataSource, @Nullable Granularity partitionedBy, @Nullable List<String> clusteredBy, @Nullable String replaceTimeChunks)
  • Method Details

    • getStatementType

      public String getStatementType()
      Returns:
      the SQL statement type. For example, SELECT, INSERT, or REPLACE.
    • getTargetDataSource

      @Nullable public String getTargetDataSource()
      Returns:
      the target datasource in a SQL statement. Returns null for SELECT statements where there is no target datasource.
    • getPartitionedBy

      @Nullable public Granularity getPartitionedBy()
      Returns:
      the time-based partitioning granularity specified in the PARTITIONED BY clause for an INSERT or REPLACE statement. Returns null for SELECT statements.
    • getClusteredBy

      @Nullable public List<String> getClusteredBy()
      Returns:
      the clustering columns specified in the CLUSTERED BY clause for an INSERT or REPLACE statement. Returns null for SELECT statements.
    • getReplaceTimeChunks

      @Nullable public String getReplaceTimeChunks()
      Returns:
      the time chunks specified in the OVERWRITE clause for a REPLACE statement. Returns null for INSERT and SELECT statements.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object