Class ExplainAttributes


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

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object