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

java.lang.Object
  extended by org.apache.lens.server.api.query.AbstractQueryContext
      extended by 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

Field Summary
 
Fields inherited from class org.apache.lens.server.api.query.AbstractQueryContext
LOG
 
Constructor Summary
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.
 
Method Summary
 int compareTo(Delayed o)
           
 long getDelay(TimeUnit units)
           
 LensPreparedQuery toPreparedQuery()
          To prepared query.
 void updateConf(Map<String,String> confoverlay)
          Update conf.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 query
user - the user
conf - 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 query
user - the user
conf - the conf
qconf - the qconf
Method Detail

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.