public class PreparedQueryContext extends AbstractQueryContext implements Delayed
AbstractQueryContext.DriverEstimateRunnable
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
|
Date |
getPreparedTime()
The prepared time.
|
String |
getPreparedUser()
The prepared user.
|
QueryPrepareHandle |
getPrepareHandle()
The prepare handle.
|
String |
getQueryHandleString() |
String |
getQueryName()
The query name.
|
void |
setQueryName(String queryName)
The query name.
|
LensPreparedQuery |
toPreparedQuery()
To prepared query.
|
void |
updateConf(Map<String,String> confoverlay)
Update conf.
|
clearTransientStateAfterCompleted, clearTransientStateAfterLaunch, estimateCostForDrivers, getConf, getDatabase, getDriverConf, getDriverContext, getDriverEstimateRunnables, getDriverQuery, getDriverQueryCost, getDriverRewriteError, getDriverRewriterPlan, getFinalDriverQuery, getHiveConf, getLensConf, getLensSessionIdentifier, getPhase1RewrittenQuery, getPriority, getQueue, getSelectedDriver, getSelectedDriverConf, getSelectedDriverQuery, getSelectedDriverQueryCost, getSelectedDriverQueryPlan, getSubmittedUser, getTableWeights, getUserQuery, initTransientState, isDriverQueryExplicitlySet, isOlapQuery, setConf, setDriverContext, setDriverCost, setDriverQueries, setDriverQuery, setDriverRewriteError, setFinalDriverQuery, setLensSessionIdentifier, setOlapQuery, setPhase1RewrittenQuery, setPriority, setSelectedDriver, setSelectedDriverQuery, setSelectedDriverQueryCost
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)
updateConf
in class AbstractQueryContext
confoverlay
- the conf to setpublic LensPreparedQuery toPreparedQuery()
public String getQueryHandleString()
public String getLogHandle()
getLogHandle
in class AbstractQueryContext
@Generated(value="lombok") public QueryPrepareHandle getPrepareHandle()
@Generated(value="lombok") public Date getPreparedTime()
@Generated(value="lombok") public String getPreparedUser()
@Generated(value="lombok") public String getQueryName()
@Generated(value="lombok") public void setQueryName(String queryName)
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.