|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.api.query.AbstractQueryContext
public abstract class AbstractQueryContext
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
The Constant LOG |
Method Summary | |
---|---|
void |
estimateCostForDrivers()
Estimate cost for each driver and set in context |
org.apache.hadoop.conf.Configuration |
getDriverConf(LensDriver driver)
Get driver conf |
String |
getDriverQuery(LensDriver driver)
Get driver query |
QueryCost |
getDriverQueryCost(LensDriver driver)
Get query cost for the driver |
Exception |
getDriverRewriteError(LensDriver driver)
Get exception during rewrite. |
LensDriver |
getSelectedDriver()
Wrapper method for convenience on driver context |
org.apache.hadoop.conf.Configuration |
getSelectedDriverConf()
Wrapper method for convenience on driver context |
String |
getSelectedDriverQuery()
Wrapper method for convenience on driver context |
QueryCost |
getSelectedDriverQueryCost()
Get selected driver's cost |
DriverQueryPlan |
getSelectedDriverQueryPlan()
Wrapper method for convenience on driver context |
void |
setDriverQueries(Map<LensDriver,String> driverQueries)
Set driver queries |
void |
setDriverRewriteError(LensDriver driver,
Exception exp)
Set exception during rewrite. |
void |
setSelectedDriver(LensDriver driver)
Wrapper method for convenience on driver context |
void |
setSelectedDriverQuery(String driverQuery)
Sets the selected driver query for persistence and also in the driver context |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public void setDriverQueries(Map<LensDriver,String> driverQueries) throws LensException
driverQueries
- Map of LensDriver to driver's query
LensException
public void estimateCostForDrivers() throws LensException
LensException
public String getSelectedDriverQuery()
public String getDriverQuery(LensDriver driver)
driver
-
public org.apache.hadoop.conf.Configuration getDriverConf(LensDriver driver)
driver
-
public QueryCost getDriverQueryCost(LensDriver driver)
driver
-
public org.apache.hadoop.conf.Configuration getSelectedDriverConf()
public void setSelectedDriverQuery(String driverQuery)
driverQuery
- public void setSelectedDriver(LensDriver driver)
driver
- Lens driverpublic LensDriver getSelectedDriver()
public DriverQueryPlan getSelectedDriverQueryPlan() throws LensException
LensException
public QueryCost getSelectedDriverQueryCost() throws LensException
LensException
public void setDriverRewriteError(LensDriver driver, Exception exp)
driver
- exp
- public Exception getDriverRewriteError(LensDriver driver)
driver
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |