public class QueryHelper extends ServiceManagerHelper
Constructor and Description |
---|
QueryHelper() |
QueryHelper(String envFileName) |
exec, exec, exec, exec, exec, execDELETE, execGET, execPOST, execPUT, getAdminUrl, getBaseUrl, getClientDir, getCurrentDB, getJobConfUrl, getPassword, getServerDir, getServerHdfsUrl, getServerLens, getServiceURI, getSessionHandleString, getStartDate, getUserName, init, sendForm, sendQuery
public QueryHelper()
public QueryHelper(String envFileName)
public LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString, String conf, String outputMediaType) throws LensException
queryString
- queryName
- sessionHandleString
- conf
- LensException
public LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString, String conf) throws LensException
LensException
public LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString) throws LensException
LensException
public LensAPIResult executeQuery(String queryString, String queryName) throws LensException
LensException
public LensAPIResult executeQuery(String queryString) throws LensException
LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString, String conf) throws LensException
queryString
- timeout
- queryName
- sessionHandleString
- conf
- LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString) throws LensException
LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName) throws LensException
LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout) throws LensException
LensException
public LensAPIResult executeQueryTimeout(String queryString) throws LensException
LensException
public LensAPIResult executeQuery(String queryString, String queryName, String user, String sessionHandleString, LensConf conf) throws LensException
queryString
- queryName
- user
- sessionHandleString
- conf
- LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString, LensConf conf) throws LensException
LensException
public LensAPIResult<QueryPlan> explainQuery(String queryString, String sessionHandleString, String conf) throws LensException
queryString
- sessionHandleString
- conf
- LensException
public LensAPIResult<QueryPlan> explainQuery(String queryString, String sessionHandleString) throws LensException
LensException
public LensAPIResult<QueryPlan> explainQuery(String queryString) throws LensException
LensException
public LensAPIResult<QueryCostTO> estimateQuery(String queryString, String sessionHandleString, String conf) throws LensException
queryString
- sessionHandleString
- conf
- LensException
public LensAPIResult<QueryCostTO> estimateQuery(String queryString, String sessionHandleString) throws LensException
LensException
public LensAPIResult<QueryCostTO> estimateQuery(String queryString) throws LensException
LensException
public QueryPlan explainAndPrepareQuery(String queryString, String sessionHandleString, String conf) throws LensException
queryString
- sessionHandleString
- conf
- LensException
public QueryPlan explainAndPrepareQuery(String queryString, String sessionHandleString) throws LensException
LensException
public QueryPlan explainAndPrepareQuery(String queryString) throws LensException
LensException
public javax.ws.rs.core.Response getResultSetResponse(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
queryHandle
- fromIndex
- fetchSize
- sessionHandleString
- LensException
public QueryResult getResultSet(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
LensException
public QueryResult getResultSet(QueryHandle queryHandle, String fromIndex, String fetchSize) throws LensException
LensException
public QueryResult getResultSet(QueryHandle queryHandle) throws LensException
LensException
public String getPersistentResultSetJson(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
queryHandle
- fromIndex
- fetchSize
- sessionHandleString
- LensException
public String getInmemoryResultSetJson(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
LensException
public String getPersistentResultSetJson(QueryHandle queryHandle, String fromIndex, String fetchSize) throws LensException
LensException
public String getPersistentResultSetJson(QueryHandle queryHandle) throws LensException
LensException
public QueryResult getHttpResultSet(QueryHandle queryHandle) throws LensException
queryHandle
- LensException
public QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle, String sessionHandleString, String conf) throws LensException
queryHandle
- sessionHandleString
- conf
- LensException
public QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle, String sessionHandleString) throws LensException
LensException
public QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle) throws LensException
LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout, String sessionHandleString, String conf) throws LensException
queryHandle
- timeout
- sessionHandleString
- conf
- LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout, String sessionHandleString) throws LensException
LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout) throws LensException
LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle) throws LensException
LensException
public QueryPrepareHandle submitPreparedQuery(String queryString, String queryName, String sessionHandleString, String conf) throws LensException
queryString
- sessionHandleString
- conf
- LensException
public QueryPrepareHandle submitPreparedQuery(String queryString, String queryName, String sessionHandleString) throws LensException
LensException
public QueryPrepareHandle submitPreparedQuery(String queryString, String queryName) throws LensException
LensException
public QueryPrepareHandle submitPreparedQuery(String queryString) throws LensException
LensException
public void destoryPreparedQueryByHandle(QueryPrepareHandle queryPreparedHandle, String sessionHandleString) throws LensException
queryPreparedHandle
- sessionHandleString
- LensException
public void destoryPreparedQueryByHandle(QueryPrepareHandle queryPreparedHandle) throws LensException
LensException
public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName, String user, String sessionHandleString, String fromDate, String toDate)
queryName
- user
- sessionHandleString
- fromDate
- toDate
- public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName, String user, String sessionHandleString)
public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName, String user)
public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName)
public List<QueryPrepareHandle> getPreparedQueryHandleList()
public void destroyPreparedQuery(String queryName, String user, String sessionHandleString, String fromDate, String toDate) throws LensException
queryName
- sessionHandleString
- fromDate
- toDate
- LensException
public void destroyPreparedQuery(String queryName, String user, String sessionHandleString) throws LensException
LensException
public void destroyPreparedQuery(String queryName, String user) throws LensException
LensException
public void destroyPreparedQuery(String queryName) throws LensException
LensException
public void destroyPreparedQuery() throws LensException
LensException
public javax.ws.rs.core.Response getPreparedQuery(QueryPrepareHandle queryPrepareHandle, String sessionHandleString)
queryPrepareHandle
- sessionHandleString
- public javax.ws.rs.core.Response getPreparedQuery(QueryPrepareHandle queryPrepareHandle)
public List<QueryHandle> getQueryHandleList(String queryName, String state, String user, String sessionHandleString, String fromDate, String toDate, String driver)
queryName
- state
- user
- sessionHandleString
- fromDate
- toDate
- public List<QueryHandle> getQueryHandleList(String queryName, String state, String user, String sessionHandleString, String fromDate, String toDate)
public List<QueryHandle> getQueryHandleList(String queryName, String state, String user, String sessionHandleString)
public List<QueryHandle> getQueryHandleList(String queryName, String state, String user)
public List<QueryHandle> getQueryHandleList(String queryName, String state)
public List<QueryHandle> getQueryHandleList(String queryName)
public List<QueryHandle> getQueryHandleList()
public LensQuery waitForCompletion(String sessionHandleString, QueryHandle queryHandle, javax.ws.rs.core.MediaType inputMediaType, String outputMediaType) throws InterruptedException, LensException
sessionHandleString
- queryHandle
- InterruptedException
LensException
public LensQuery waitForCompletion(String sessionHandleString, QueryHandle queryHandle) throws InterruptedException, LensException
InterruptedException
LensException
public LensQuery waitForCompletion(QueryHandle queryHandle) throws InterruptedException, LensException
InterruptedException
LensException
public QueryStatus waitForQueryToRun(QueryHandle queryHandle, String sessionHandleString) throws InterruptedException, LensException
queryHandle
- sessionHandleString
- InterruptedException
LensException
public QueryStatus waitForQueryToRun(QueryHandle queryHandle) throws InterruptedException, LensException
InterruptedException
LensException
public QueryStatus getQueryStatus(String sessionHandleString, QueryHandle queryHandle) throws LensException
sessionHandleString
- queryHandle
- LensException
public LensQuery getLensQuery(String sessionHandleString, QueryHandle queryHandle) throws LensException
LensException
public QueryStatus getQueryStatus(QueryHandle queryHandle) throws LensException
LensException
public void killQueryByQueryHandle(String sessionHandleString, QueryHandle queryHandle) throws LensException
sessionHandleString
- queryHandle
- LensException
public void killQueryByQueryHandle(QueryHandle queryHandle) throws LensException
LensException
public void killQuery(String queryName, String state, String user, String sessionHandleString, String fromDate, String toDate) throws LensException
queryName
- state
- user
- sessionHandleString
- fromDate
- toDate
- LensException
public void killQuery(String queryName, String state, String user, String sessionHandleString) throws LensException
LensException
public void killQuery(String queryName, String state, String user) throws LensException
LensException
public void killQuery(String queryName, String state) throws LensException
LensException
public void killQuery(String queryName) throws LensException
LensException
public void killQuery() throws LensException
LensException
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.