org.apache.lens.driver.hive
Class HiveQueryPlan
java.lang.Object
org.apache.lens.server.api.driver.DriverQueryPlan
org.apache.lens.driver.hive.HiveQueryPlan
public class HiveQueryPlan
- extends DriverQueryPlan
The Class HiveQueryPlan.
Methods inherited from class org.apache.lens.server.api.driver.DriverQueryPlan |
getExecMode, getFilterWeight, getGbyWeight, getHandle, getHavingWeight, getJoinWeight, getNumAggreagateExprs, getNumFilters, getNumGbys, getNumHaving, getNumJoins, getNumOrderBys, getNumSelDistincts, getNumSels, getObyWeight, getPrepareHandle, getResultDestination, getScanMode, getSelectWeight, getTablesQueried, getTableWeight, getTableWeights, hasSubQuery, setPrepareHandle, toQueryPlan |
HiveQueryPlan
public HiveQueryPlan(List<String> explainOutput,
QueryPrepareHandle prepared,
org.apache.hadoop.hive.conf.HiveConf metastoreConf)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Instantiates a new hive query plan.
- Parameters:
explainOutput
- the explain outputprepared
- the preparedmetastoreConf
- the metastore conf
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
- the hive exception
getPlan
public String getPlan()
- Description copied from class:
DriverQueryPlan
- Get the query plan
- Specified by:
getPlan
in class DriverQueryPlan
- Returns:
- The string representation of the plan
getCost
public QueryCost getCost()
- Description copied from class:
DriverQueryPlan
- Get the cost associated with the plan
- Specified by:
getCost
in class DriverQueryPlan
- Returns:
- QueryCost object
getPartitions
public Map<String,List<String>> getPartitions()
- Description copied from class:
DriverQueryPlan
- Get list of partitions queried for each table
- Overrides:
getPartitions
in class DriverQueryPlan
- Returns:
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.