This project has retired. For details please refer to its Attic page.
HiveQueryPlan (Lens 2.0.1-beta-incubating API)

org.apache.lens.driver.hive
Class HiveQueryPlan

java.lang.Object
  extended by org.apache.lens.server.api.driver.DriverQueryPlan
      extended by org.apache.lens.driver.hive.HiveQueryPlan

public class HiveQueryPlan
extends DriverQueryPlan

The Class HiveQueryPlan.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lens.server.api.driver.DriverQueryPlan
DriverQueryPlan.ExecMode, DriverQueryPlan.ScanMode
 
Constructor Summary
HiveQueryPlan(List<String> explainOutput, QueryPrepareHandle prepared, org.apache.hadoop.hive.conf.HiveConf metastoreConf)
          Instantiates a new hive query plan.
 
Method Summary
 QueryCost getCost()
          Get the cost associated with the plan
 Map<String,List<String>> getPartitions()
          Get list of partitions queried for each table
 String getPlan()
          Get the query plan
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 output
prepared - the prepared
metastoreConf - the metastore conf
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException - the hive exception
Method Detail

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.