public abstract class DriverQueryPlan extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | DriverQueryPlan.ExecModeThe Enum ExecMode. | 
| static class  | DriverQueryPlan.ScanModeThe Enum ScanMode. | 
| Constructor and Description | 
|---|
| DriverQueryPlan() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract QueryCost | getCost()Get the cost associated with the plan | 
| DriverQueryPlan.ExecMode | getExecMode()Get the exec mode | 
| QueryHandle | getHandle()Deprecated.   | 
| Map<String,Set<?>> | getPartitions()Get list of partitions queried for each table | 
| abstract String | getPlan()Get the query plan | 
| QueryPrepareHandle | getPrepareHandle() | 
| String | getResultDestination()Get the result destination | 
| DriverQueryPlan.ScanMode | getScanMode()Get the scan mode. | 
| Set<String> | getTablesQueried()Get the list of tables to be queried | 
| Double | getTableWeight(String tableName)Get the weight of the table. | 
| Map<String,Double> | getTableWeights()Get the table weights | 
| boolean | hasSubQuery()Get if the query has a subquery or not. | 
| void | setPrepareHandle(QueryPrepareHandle handle) | 
| QueryPlan | toQueryPlan()To query plan. | 
public abstract String getPlan()
public abstract QueryCost getCost()
public Set<String> getTablesQueried()
public boolean hasSubQuery()
public String getResultDestination()
public Map<String,Double> getTableWeights()
public Double getTableWeight(String tableName)
tableName - the table namepublic DriverQueryPlan.ExecMode getExecMode()
DriverQueryPlan.ExecModepublic DriverQueryPlan.ScanMode getScanMode()
DriverQueryPlan.ScanModepublic QueryHandle getHandle()
public QueryPrepareHandle getPrepareHandle()
public void setPrepareHandle(QueryPrepareHandle handle)
handle - the handle to setpublic Map<String,Set<?>> getPartitions()
public QueryPlan toQueryPlan() throws UnsupportedEncodingException
UnsupportedEncodingException - the unsupported encoding exceptionCopyright © 2014–2015 Apache Software Foundation. All rights reserved.