public class PreparedQueryContext extends AbstractQueryContext implements Delayed
AbstractQueryContext.DriverEstimateRunnable
LOG
Constructor and Description |
---|
PreparedQueryContext(String query,
String user,
org.apache.hadoop.conf.Configuration conf,
Collection<LensDriver> drivers)
Instantiates a new prepared query context.
|
PreparedQueryContext(String query,
String user,
org.apache.hadoop.conf.Configuration conf,
LensConf qconf,
Collection<LensDriver> drivers)
Instantiates a new prepared query context.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Delayed o) |
long |
getDelay(TimeUnit units) |
String |
getLogHandle()
Get prepared query handle string
|
String |
getQueryHandleString() |
LensPreparedQuery |
toPreparedQuery()
To prepared query.
|
void |
updateConf(Map<String,String> confoverlay)
Update conf.
|
clearTransientStateAfterCompleted, clearTransientStateAfterLaunch, estimateCostForDrivers, getDatabase, getDriverConf, getDriverEstimateRunnables, getDriverQuery, getDriverQueryCost, getDriverRewriteError, getFinalDriverQuery, getHiveConf, getSelectedDriver, getSelectedDriverConf, getSelectedDriverQuery, getSelectedDriverQueryCost, getSelectedDriverQueryPlan, initTransientState, setDriverQueries, setDriverQuery, setDriverRewriteError, setFinalDriverQuery, setSelectedDriver, setSelectedDriverQuery
public PreparedQueryContext(String query, String user, org.apache.hadoop.conf.Configuration conf, Collection<LensDriver> drivers)
query
- the queryuser
- the userconf
- the confpublic PreparedQueryContext(String query, String user, org.apache.hadoop.conf.Configuration conf, LensConf qconf, Collection<LensDriver> drivers)
query
- the queryuser
- the userconf
- the confqconf
- the qconfpublic int compareTo(Delayed o)
compareTo
in interface Comparable<Delayed>
public void updateConf(Map<String,String> confoverlay)
confoverlay
- the conf to setpublic LensPreparedQuery toPreparedQuery()
public String getQueryHandleString()
public String getLogHandle()
getLogHandle
in class AbstractQueryContext
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.