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, sendQuerypublic QueryHelper()
public QueryHelper(String envFileName)
public LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString, String conf, String outputMediaType) throws LensException
queryString - queryName - sessionHandleString - conf - LensExceptionpublic LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString, String conf) throws LensException
LensExceptionpublic LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString) throws LensException
LensExceptionpublic LensAPIResult executeQuery(String queryString, String queryName) throws LensException
LensExceptionpublic LensAPIResult executeQuery(String queryString) throws LensException
LensExceptionpublic LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString, String conf) throws LensException
queryString - timeout - queryName - sessionHandleString - conf - LensExceptionpublic LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString) throws LensException
LensExceptionpublic LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName) throws LensException
LensExceptionpublic LensAPIResult executeQueryTimeout(String queryString, String timeout) throws LensException
LensExceptionpublic LensAPIResult executeQueryTimeout(String queryString) throws LensException
LensExceptionpublic LensAPIResult executeQuery(String queryString, String queryName, String user, String sessionHandleString, LensConf conf) throws LensException
queryString - queryName - user - sessionHandleString - conf - LensExceptionpublic LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString, LensConf conf) throws LensException
LensExceptionpublic LensAPIResult<QueryPlan> explainQuery(String queryString, String sessionHandleString, String conf) throws LensException
queryString - sessionHandleString - conf - LensExceptionpublic LensAPIResult<QueryPlan> explainQuery(String queryString, String sessionHandleString) throws LensException
LensExceptionpublic LensAPIResult<QueryPlan> explainQuery(String queryString) throws LensException
LensExceptionpublic LensAPIResult<QueryCostTO> estimateQuery(String queryString, String sessionHandleString, String conf) throws LensException
queryString - sessionHandleString - conf - LensExceptionpublic LensAPIResult<QueryCostTO> estimateQuery(String queryString, String sessionHandleString) throws LensException
LensExceptionpublic LensAPIResult<QueryCostTO> estimateQuery(String queryString) throws LensException
LensExceptionpublic QueryPlan explainAndPrepareQuery(String queryString, String sessionHandleString, String conf) throws LensException
queryString - sessionHandleString - conf - LensExceptionpublic QueryPlan explainAndPrepareQuery(String queryString, String sessionHandleString) throws LensException
LensExceptionpublic QueryPlan explainAndPrepareQuery(String queryString) throws LensException
LensExceptionpublic javax.ws.rs.core.Response getResultSetResponse(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
queryHandle - fromIndex - fetchSize - sessionHandleString - LensExceptionpublic QueryResult getResultSet(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
LensExceptionpublic QueryResult getResultSet(QueryHandle queryHandle, String fromIndex, String fetchSize) throws LensException
LensExceptionpublic QueryResult getResultSet(QueryHandle queryHandle) throws LensException
LensExceptionpublic String getPersistentResultSetJson(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
queryHandle - fromIndex - fetchSize - sessionHandleString - LensExceptionpublic String getInmemoryResultSetJson(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws LensException
LensExceptionpublic String getPersistentResultSetJson(QueryHandle queryHandle, String fromIndex, String fetchSize) throws LensException
LensExceptionpublic String getPersistentResultSetJson(QueryHandle queryHandle) throws LensException
LensExceptionpublic QueryResult getHttpResultSet(QueryHandle queryHandle) throws LensException
queryHandle - LensExceptionpublic QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle, String sessionHandleString, String conf) throws LensException
queryHandle - sessionHandleString - conf - LensExceptionpublic QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle, String sessionHandleString) throws LensException
LensExceptionpublic QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle) throws LensException
LensExceptionpublic QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout, String sessionHandleString, String conf) throws LensException
queryHandle - timeout - sessionHandleString - conf - LensExceptionpublic QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout, String sessionHandleString) throws LensException
LensExceptionpublic QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout) throws LensException
LensExceptionpublic QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle) throws LensException
LensExceptionpublic QueryPrepareHandle submitPreparedQuery(String queryString, String queryName, String sessionHandleString, String conf) throws LensException
queryString - sessionHandleString - conf - LensExceptionpublic QueryPrepareHandle submitPreparedQuery(String queryString, String queryName, String sessionHandleString) throws LensException
LensExceptionpublic QueryPrepareHandle submitPreparedQuery(String queryString, String queryName) throws LensException
LensExceptionpublic QueryPrepareHandle submitPreparedQuery(String queryString) throws LensException
LensExceptionpublic void destoryPreparedQueryByHandle(QueryPrepareHandle queryPreparedHandle, String sessionHandleString) throws LensException
queryPreparedHandle - sessionHandleString - LensExceptionpublic void destoryPreparedQueryByHandle(QueryPrepareHandle queryPreparedHandle) throws LensException
LensExceptionpublic 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 - LensExceptionpublic void destroyPreparedQuery(String queryName, String user, String sessionHandleString) throws LensException
LensExceptionpublic void destroyPreparedQuery(String queryName, String user) throws LensException
LensExceptionpublic void destroyPreparedQuery(String queryName) throws LensException
LensExceptionpublic void destroyPreparedQuery()
throws LensException
LensExceptionpublic 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 - InterruptedExceptionLensExceptionpublic LensQuery waitForCompletion(String sessionHandleString, QueryHandle queryHandle) throws InterruptedException, LensException
InterruptedExceptionLensExceptionpublic LensQuery waitForCompletion(QueryHandle queryHandle) throws InterruptedException, LensException
InterruptedExceptionLensExceptionpublic QueryStatus waitForQueryToRun(QueryHandle queryHandle, String sessionHandleString) throws InterruptedException, LensException
queryHandle - sessionHandleString - InterruptedExceptionLensExceptionpublic QueryStatus waitForQueryToRun(QueryHandle queryHandle) throws InterruptedException, LensException
InterruptedExceptionLensExceptionpublic QueryStatus getQueryStatus(String sessionHandleString, QueryHandle queryHandle) throws LensException
sessionHandleString - queryHandle - LensExceptionpublic LensQuery getLensQuery(String sessionHandleString, QueryHandle queryHandle) throws LensException
LensExceptionpublic QueryStatus getQueryStatus(QueryHandle queryHandle) throws LensException
LensExceptionpublic void killQueryByQueryHandle(String sessionHandleString, QueryHandle queryHandle) throws LensException
sessionHandleString - queryHandle - LensExceptionpublic void killQueryByQueryHandle(QueryHandle queryHandle) throws LensException
LensExceptionpublic void killQuery(String queryName, String state, String user, String sessionHandleString, String fromDate, String toDate) throws LensException
queryName - state - user - sessionHandleString - fromDate - toDate - LensExceptionpublic void killQuery(String queryName, String state, String user, String sessionHandleString) throws LensException
LensExceptionpublic void killQuery(String queryName, String state, String user) throws LensException
LensExceptionpublic void killQuery(String queryName, String state) throws LensException
LensExceptionpublic void killQuery(String queryName) throws LensException
LensExceptionpublic void killQuery()
throws LensException
LensExceptionCopyright © 2014–2018 Apache Software Foundation. All rights reserved.