org.apache.lens.server.api.query
Class DriverSelectorQueryContext
java.lang.Object
org.apache.lens.server.api.query.DriverSelectorQueryContext
public class DriverSelectorQueryContext
- extends Object
Field Summary |
static org.apache.commons.logging.Log |
LOG
The constant LOG |
LOG
public static final org.apache.commons.logging.Log LOG
- The constant LOG
DriverSelectorQueryContext
public DriverSelectorQueryContext(String userQuery,
org.apache.hadoop.conf.Configuration queryConf,
Collection<LensDriver> drivers)
setDriverQueryPlans
public void setDriverQueryPlans(Map<LensDriver,String> driverQueries,
AbstractQueryContext qctx)
throws LensException
- Sets driver queries, generates plans for each driver by calling explain with respective queries,
Sets driverQueryPlans
- Parameters:
driverQueries
-
- Throws:
LensException
getSelectedDriverQueryPlan
public DriverQueryPlan getSelectedDriverQueryPlan()
throws LensException
- Return selected driver's query plan, but check for null conditions first.
- Returns:
- DriverQueryPlan of Selected Driver
- Throws:
LensException
getSelectedDriverQueryCost
public QueryCost getSelectedDriverQueryCost()
throws LensException
- Return selected driver's query plan, but check for null conditions first.
- Returns:
- DriverQueryPlan of Selected Driver
- Throws:
LensException
getSelectedDriverConf
public org.apache.hadoop.conf.Configuration getSelectedDriverConf()
getSelectedDriverQuery
public String getSelectedDriverQuery()
setDriverConf
public void setDriverConf(LensDriver driver,
org.apache.hadoop.conf.Configuration conf)
setSelectedDriverQuery
public void setSelectedDriverQuery(String driverQuery)
getDrivers
public Collection<LensDriver> getDrivers()
getDriverQueries
public Collection<String> getDriverQueries()
getDriverQueryPlan
public DriverQueryPlan getDriverQueryPlan(LensDriver driver)
getDriverConf
public org.apache.hadoop.conf.Configuration getDriverConf(LensDriver driver)
getDriverQuery
public String getDriverQuery(LensDriver driver)
getDriverQueryCost
public QueryCost getDriverQueryCost(LensDriver driver)
setDriverQueryPlan
public void setDriverQueryPlan(LensDriver driver,
DriverQueryPlan qp)
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.