|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.api.driver.DriverQueryPlan
public abstract class DriverQueryPlan
The Class DriverQueryPlan.
Nested Class Summary | |
---|---|
static class |
DriverQueryPlan.ExecMode
The Enum ExecMode. |
static class |
DriverQueryPlan.ScanMode
The Enum ScanMode. |
Constructor Summary | |
---|---|
DriverQueryPlan()
|
Method Summary | |
---|---|
abstract QueryCost |
getCost()
Get the cost associated with the plan |
DriverQueryPlan.ExecMode |
getExecMode()
Get the exec mode |
Double |
getFilterWeight()
Set the weight associated with filter expressions. |
Double |
getGbyWeight()
Set the weight associated with group by expressions. |
QueryHandle |
getHandle()
Deprecated. |
Double |
getHavingWeight()
Set the weight associated with having expressions. |
Double |
getJoinWeight()
Get the weight associated with joins |
int |
getNumAggreagateExprs()
|
int |
getNumFilters()
Get the number of filters in query |
int |
getNumGbys()
Get the number of group by expressions on query |
int |
getNumHaving()
Get the number of having expressions on query |
int |
getNumJoins()
Get number of joins in the query |
int |
getNumOrderBys()
Get the number of order by expressions on query |
int |
getNumSelDistincts()
Get the number distinct select expressions |
int |
getNumSels()
Get the number of select expressions |
Double |
getObyWeight()
Get the weight associated with order by expressions. |
Map<String,List<String>> |
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. |
Double |
getSelectWeight()
Get the weight associated with select expressions. |
List<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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DriverQueryPlan()
Method Detail |
---|
public abstract String getPlan()
public abstract QueryCost getCost()
public int getNumGbys()
public int getNumSels()
public int getNumSelDistincts()
public int getNumJoins()
public int getNumHaving()
public int getNumOrderBys()
public List<String> getTablesQueried()
public int getNumFilters()
public boolean hasSubQuery()
public String getResultDestination()
public Map<String,Double> getTableWeights()
public Double getTableWeight(String tableName)
tableName
- the table name
public DriverQueryPlan.ExecMode getExecMode()
DriverQueryPlan.ExecMode
public DriverQueryPlan.ScanMode getScanMode()
DriverQueryPlan.ScanMode
public Double getJoinWeight()
public Double getGbyWeight()
public Double getFilterWeight()
public Double getObyWeight()
public Double getHavingWeight()
public Double getSelectWeight()
public QueryHandle getHandle()
public QueryPrepareHandle getPrepareHandle()
public void setPrepareHandle(QueryPrepareHandle handle)
handle
- the handle to setpublic int getNumAggreagateExprs()
public Map<String,List<String>> getPartitions()
public QueryPlan toQueryPlan() throws UnsupportedEncodingException
UnsupportedEncodingException
- the unsupported encoding exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |