This project has retired. For details please refer to its
Attic page.
DriverSelectorQueryContext (Lens 2.1.0-beta-incubating API)
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 |
Method Summary |
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)
|
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)
DriverSelectorQueryContext
public DriverSelectorQueryContext(String userQuery,
org.apache.hadoop.conf.Configuration queryConf,
Collection<LensDriver> drivers,
boolean mergeConf)
setDriverQuery
public void setDriverQuery(LensDriver driver,
String driverQuery)
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()
setDriverRewriterPlan
public void setDriverRewriterPlan(LensDriver driver,
DriverQueryPlan rewriterPlan)
getDriverRewriterPlan
public DriverQueryPlan getDriverRewriterPlan(LensDriver driver)
getDriverQueryPlan
public DriverQueryPlan getDriverQueryPlan(LensDriver driver)
getDriverConf
public org.apache.hadoop.conf.Configuration getDriverConf(LensDriver driver)
getDriverQuery
public String getDriverQuery(LensDriver driver)
getFinalDriverQuery
public String getFinalDriverQuery(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.