public class DriverSelectorQueryContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DriverSelectorQueryContext.DriverQueryContext |
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG
The constant LOG
|
Constructor and Description |
---|
DriverSelectorQueryContext(String userQuery,
org.apache.hadoop.conf.Configuration queryConf,
Collection<LensDriver> drivers) |
DriverSelectorQueryContext(String userQuery,
org.apache.hadoop.conf.Configuration queryConf,
Collection<LensDriver> drivers,
boolean mergeConf) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getDriverConf(LensDriver driver) |
Collection<String> |
getDriverQueries() |
String |
getDriverQuery(LensDriver driver) |
QueryCost |
getDriverQueryCost(LensDriver driver) |
DriverQueryPlan |
getDriverQueryPlan(LensDriver driver) |
DriverQueryPlan |
getDriverRewriterPlan(LensDriver driver) |
Collection<LensDriver> |
getDrivers() |
String |
getFinalDriverQuery(LensDriver driver) |
org.apache.hadoop.conf.Configuration |
getSelectedDriverConf() |
String |
getSelectedDriverQuery() |
QueryCost |
getSelectedDriverQueryCost()
Return selected driver's query plan, but check for null conditions first.
|
DriverQueryPlan |
getSelectedDriverQueryPlan()
Return selected driver's query plan, but check for null conditions first.
|
void |
setDriverConf(LensDriver driver,
org.apache.hadoop.conf.Configuration conf) |
void |
setDriverQuery(LensDriver driver,
String driverQuery) |
void |
setDriverQueryPlan(LensDriver driver,
DriverQueryPlan qp) |
void |
setDriverQueryPlans(Map<LensDriver,String> driverQueries,
AbstractQueryContext qctx)
Sets driver queries, generates plans for each driver by calling explain with respective queries,
Sets driverQueryPlans
|
void |
setDriverRewriterPlan(LensDriver driver,
DriverQueryPlan rewriterPlan) |
void |
setSelectedDriverQuery(String driverQuery) |
public DriverSelectorQueryContext(String userQuery, org.apache.hadoop.conf.Configuration queryConf, Collection<LensDriver> drivers)
public DriverSelectorQueryContext(String userQuery, org.apache.hadoop.conf.Configuration queryConf, Collection<LensDriver> drivers, boolean mergeConf)
public void setDriverQuery(LensDriver driver, String driverQuery)
public void setDriverQueryPlans(Map<LensDriver,String> driverQueries, AbstractQueryContext qctx) throws LensException
driverQueries
- LensException
public DriverQueryPlan getSelectedDriverQueryPlan() throws LensException
LensException
public QueryCost getSelectedDriverQueryCost() throws LensException
LensException
public org.apache.hadoop.conf.Configuration getSelectedDriverConf()
public String getSelectedDriverQuery()
public void setDriverConf(LensDriver driver, org.apache.hadoop.conf.Configuration conf)
public void setSelectedDriverQuery(String driverQuery)
public Collection<LensDriver> getDrivers()
public Collection<String> getDriverQueries()
public void setDriverRewriterPlan(LensDriver driver, DriverQueryPlan rewriterPlan)
public DriverQueryPlan getDriverRewriterPlan(LensDriver driver)
public DriverQueryPlan getDriverQueryPlan(LensDriver driver)
public org.apache.hadoop.conf.Configuration getDriverConf(LensDriver driver)
public String getDriverQuery(LensDriver driver)
public String getFinalDriverQuery(LensDriver driver)
public QueryCost getDriverQueryCost(LensDriver driver)
public void setDriverQueryPlan(LensDriver driver, DriverQueryPlan qp)
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.