Package org.apache.druid.query.explain
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 Summary
Constructors Constructor Description ExplainAttributes(String statementType, String targetDataSource, Granularity partitionedBy, List<String> clusteredBy, String replaceTimeChunks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<String>getClusteredBy()GranularitygetPartitionedBy()StringgetReplaceTimeChunks()StringgetStatementType()StringgetTargetDataSource()inthashCode()StringtoString()
-
-
-
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 BYclause 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 BYclause for an INSERT or REPLACE statement. Returns null for SELECT statements.
-
getReplaceTimeChunks
@Nullable public String getReplaceTimeChunks()
- Returns:
- the time chunks specified in the
OVERWRITEclause for a REPLACE statement. Returns null for INSERT and SELECT statements.
-
-