|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.api.query.AbstractQueryContext org.apache.lens.server.api.query.QueryContext
public class QueryContext
The Class QueryContext.
Field Summary |
---|
Fields inherited from class org.apache.lens.server.api.query.AbstractQueryContext |
---|
LOG |
Constructor Summary | |
---|---|
QueryContext(PreparedQueryContext prepared,
String user,
LensConf qconf,
org.apache.hadoop.conf.Configuration conf)
Creates context from PreparedQueryContext |
|
QueryContext(String query,
String user,
LensConf qconf,
org.apache.hadoop.conf.Configuration conf,
Collection<LensDriver> drivers)
Creates context from query |
Method Summary | |
---|---|
int |
compareTo(QueryContext other)
|
static QueryContext |
createContextWithSingleDriver(String query,
String user,
LensConf qconf,
org.apache.hadoop.conf.Configuration conf,
LensDriver driver,
String lensSessionPublicId)
Utility create method to create context with single driver. |
String |
getClusterUser()
|
boolean |
getCompressOutput()
|
org.apache.hadoop.fs.Path |
getHDFSResultDir()
|
long |
getMaxResultSplitRows()
|
String |
getOuptutFileExtn()
|
String |
getResultEncoding()
|
String |
getResultFooter()
|
String |
getResultHeader()
|
String |
getResultSetParentDir()
|
boolean |
isResultAvailableInDriver()
|
void |
setStatus(QueryStatus newStatus)
|
boolean |
splitResultIntoMultipleFiles()
Split result into multiple files. |
LensQuery |
toLensQuery()
To lens query. |
void |
unSetDriverPersistent()
Set whether result is persisted on driver to false. |
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 |
---|
public QueryContext(String query, String user, LensConf qconf, org.apache.hadoop.conf.Configuration conf, Collection<LensDriver> drivers)
query
- the queryuser
- the userqconf
- The query lensconfconf
- the confpublic QueryContext(PreparedQueryContext prepared, String user, LensConf qconf, org.apache.hadoop.conf.Configuration conf)
prepared
- the prepareduser
- the userqconf
- the qconfconf
- the confMethod Detail |
---|
public static QueryContext createContextWithSingleDriver(String query, String user, LensConf qconf, org.apache.hadoop.conf.Configuration conf, LensDriver driver, String lensSessionPublicId)
query
- The user queryuser
- The submitted queryqconf
- The query lens confconf
- Query configuration object - merged with sessiondriver
- The driverlensSessionPublicId
- The session id
public int compareTo(QueryContext other)
compareTo
in interface Comparable<QueryContext>
public void updateConf(Map<String,String> confoverlay)
confoverlay
- the conf to setpublic String getResultSetParentDir()
public org.apache.hadoop.fs.Path getHDFSResultDir()
public LensQuery toLensQuery()
public boolean isResultAvailableInDriver()
public void unSetDriverPersistent()
public void setStatus(QueryStatus newStatus) throws LensException
LensException
public String getResultHeader()
public String getResultFooter()
public String getResultEncoding()
public String getOuptutFileExtn()
public boolean getCompressOutput()
public long getMaxResultSplitRows()
public boolean splitResultIntoMultipleFiles()
public String getClusterUser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |