org.apache.lens.server.api.query
Class DriverSelectorQueryContext

java.lang.Object
  extended by org.apache.lens.server.api.query.DriverSelectorQueryContext

public class DriverSelectorQueryContext
extends Object


Nested Class Summary
static class DriverSelectorQueryContext.DriverQueryContext
           
 
Field Summary
static org.apache.commons.logging.Log LOG
          The constant LOG
 
Constructor Summary
DriverSelectorQueryContext(String userQuery, org.apache.hadoop.conf.Configuration queryConf, Collection<LensDriver> drivers)
           
 
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)
           
 Collection<LensDriver> getDrivers()
           
 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 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 setSelectedDriverQuery(String driverQuery)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
The constant LOG

Constructor Detail

DriverSelectorQueryContext

public DriverSelectorQueryContext(String userQuery,
                                  org.apache.hadoop.conf.Configuration queryConf,
                                  Collection<LensDriver> drivers)
Method Detail

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.