org.apache.lens.server.api.query
Class PreparedQueryContext
java.lang.Object
org.apache.lens.server.api.query.AbstractQueryContext
org.apache.lens.server.api.query.PreparedQueryContext
- All Implemented Interfaces:
- Serializable, Comparable<Delayed>, Delayed
public class PreparedQueryContext
- extends AbstractQueryContext
- implements Delayed
The Class PreparedQueryContext.
- See Also:
- Serialized Form
Methods inherited from class org.apache.lens.server.api.query.AbstractQueryContext |
estimateCostForDrivers, getDriverConf, getDriverQuery, getDriverQueryCost, getDriverRewriteError, getSelectedDriver, getSelectedDriverConf, getSelectedDriverQuery, getSelectedDriverQueryCost, getSelectedDriverQueryPlan, setDriverQueries, setDriverRewriteError, setSelectedDriver, setSelectedDriverQuery |
PreparedQueryContext
public PreparedQueryContext(String query,
String user,
org.apache.hadoop.conf.Configuration conf,
Collection<LensDriver> drivers)
- Instantiates a new prepared query context.
- Parameters:
query
- the queryuser
- the userconf
- the conf
PreparedQueryContext
public PreparedQueryContext(String query,
String user,
org.apache.hadoop.conf.Configuration conf,
LensConf qconf,
Collection<LensDriver> drivers)
- Instantiates a new prepared query context.
- Parameters:
query
- the queryuser
- the userconf
- the confqconf
- the qconf
compareTo
public int compareTo(Delayed o)
- Specified by:
compareTo
in interface Comparable<Delayed>
getDelay
public long getDelay(TimeUnit units)
- Specified by:
getDelay
in interface Delayed
updateConf
public void updateConf(Map<String,String> confoverlay)
- Update conf.
- Parameters:
confoverlay
- the conf to set
toPreparedQuery
public LensPreparedQuery toPreparedQuery()
- To prepared query.
- Returns:
- the lens prepared query
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.