public class QueryHelper extends ServiceManagerHelper
Constructor and Description |
---|
QueryHelper() |
QueryHelper(String envFileName) |
closeSession, exec, exec, exec, exec, exec, execDELETE, execGET, execPOST, execPUT, getAdminUrl, getBaseUrl, getClientDir, getCurrentDB, getPassword, getServerDir, getServerHdfsUrl, getServerLens, getServiceURI, getSessionHandle, getSessionHandleString, getUserName, init, openSession, openSession, sendForm, sendQuery
public QueryHelper()
public QueryHelper(String envFileName)
public LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString, String conf) throws InstantiationException, IllegalAccessException, JAXBException, LensException
queryString
- queryName
- sessionHandleString
- conf
- InstantiationException
IllegalAccessException
JAXBException
LensException
public LensAPIResult executeQuery(String queryString, String queryName, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult executeQuery(String queryString, String queryName) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult executeQuery(String queryString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString, String conf) throws InstantiationException, IllegalAccessException, JAXBException, LensException
queryString
- timeout
- queryName
- sessionHandleString
- conf
- InstantiationException
IllegalAccessException
JAXBException
LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout, String queryName) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult executeQueryTimeout(String queryString, String timeout) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult executeQueryTimeout(String queryString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult executeQuery(String queryString, String queryName, String user, String sessionHandleString, LensConf conf) throws JAXBException, InstantiationException, IllegalAccessException, LensException
queryString
- queryName
- user
- sessionHandleString
- conf
- JAXBException
InstantiationException
IllegalAccessException
LensException
public LensAPIResult explainQuery(String queryString, String sessionHandleString, String conf) throws JAXBException, InstantiationException, IllegalAccessException, LensException
queryString
- sessionHandleString
- conf
- JAXBException
InstantiationException
IllegalAccessException
LensException
public LensAPIResult explainQuery(String queryString, String sessionHandleString) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public LensAPIResult explainQuery(String queryString) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public LensAPIResult estimateQuery(String queryString, String sessionHandleString, String conf) throws InstantiationException, IllegalAccessException, JAXBException, LensException
queryString
- sessionHandleString
- conf
- InstantiationException
IllegalAccessException
JAXBException
LensException
public LensAPIResult estimateQuery(String queryString, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public LensAPIResult estimateQuery(String queryString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public QueryPlan explainAndPrepareQuery(String queryString, String sessionHandleString, String conf) throws InstantiationException, IllegalAccessException, JAXBException, LensException
queryString
- sessionHandleString
- conf
- InstantiationException
IllegalAccessException
JAXBException
LensException
public QueryPlan explainAndPrepareQuery(String queryString, String sessionHandleString) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public QueryPlan explainAndPrepareQuery(String queryString) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public QueryResult getResultSet(QueryHandle queryHandle, String fromIndex, String fetchSize, String sessionHandleString) throws JAXBException, InstantiationException, IllegalAccessException, LensException
queryHandle
- fromIndex
- fetchSize
- sessionHandleString
- JAXBException
InstantiationException
IllegalAccessException
LensException
public QueryResult getResultSet(QueryHandle queryHandle, String fromIndex, String fetchSize) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public QueryResult getResultSet(QueryHandle queryHandle) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public QueryResult getHttpResultSet(QueryHandle queryHandle) throws JAXBException, InstantiationException, IllegalAccessException, LensException
queryHandle
- JAXBException
InstantiationException
IllegalAccessException
LensException
public QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle, String sessionHandleString, String conf) throws InstantiationException, IllegalAccessException, JAXBException, LensException
queryHandle
- sessionHandleString
- conf
- InstantiationException
IllegalAccessException
JAXBException
LensException
public QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public QueryHandle executePreparedQuery(QueryPrepareHandle queryHandle) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout, String sessionHandleString, String conf) throws InstantiationException, IllegalAccessException, JAXBException, LensException
queryHandle
- timeout
- sessionHandleString
- conf
- InstantiationException
IllegalAccessException
JAXBException
LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle, String timeout) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public QueryHandleWithResultSet executePreparedQueryTimeout(QueryPrepareHandle queryHandle) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public QueryPrepareHandle submitPreparedQuery(String queryString, String queryName, String sessionHandleString, String conf) throws JAXBException, InstantiationException, IllegalAccessException, LensException
queryString
- sessionHandleString
- conf
- JAXBException
InstantiationException
IllegalAccessException
LensException
public QueryPrepareHandle submitPreparedQuery(String queryString, String queryName, String sessionHandleString) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public QueryPrepareHandle submitPreparedQuery(String queryString, String queryName) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public QueryPrepareHandle submitPreparedQuery(String queryString) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public void destoryPreparedQueryByHandle(QueryPrepareHandle queryPreparedHandle, String sessionHandleString) throws JAXBException, LensException
queryPreparedHandle
- sessionHandleString
- JAXBException
LensException
public void destoryPreparedQueryByHandle(QueryPrepareHandle queryPreparedHandle) throws JAXBException, LensException
JAXBException
LensException
public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName, String user, String sessionHandleString, String fromDate, String toDate) throws InstantiationException, IllegalAccessException
queryName
- user
- sessionHandleString
- fromDate
- toDate
- InstantiationException
IllegalAccessException
public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName, String user, String sessionHandleString) throws InstantiationException, IllegalAccessException
public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName, String user) throws InstantiationException, IllegalAccessException
public List<QueryPrepareHandle> getPreparedQueryHandleList(String queryName) throws InstantiationException, IllegalAccessException
public List<QueryPrepareHandle> getPreparedQueryHandleList() throws InstantiationException, IllegalAccessException
public void destroyPreparedQuery(String queryName, String user, String sessionHandleString, String fromDate, String toDate) throws JAXBException, LensException
queryName
- sessionHandleString
- fromDate
- toDate
- JAXBException
LensException
public void destroyPreparedQuery(String queryName, String user, String sessionHandleString) throws JAXBException, LensException
JAXBException
LensException
public void destroyPreparedQuery(String queryName, String user) throws JAXBException, LensException
JAXBException
LensException
public void destroyPreparedQuery(String queryName) throws JAXBException, LensException
JAXBException
LensException
public void destroyPreparedQuery() throws JAXBException, LensException
JAXBException
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) throws InstantiationException, IllegalAccessException
queryName
- state
- user
- sessionHandleString
- fromDate
- toDate
- InstantiationException
IllegalAccessException
public List<QueryHandle> getQueryHandleList(String queryName, String state, String user, String sessionHandleString) throws InstantiationException, IllegalAccessException
public List<QueryHandle> getQueryHandleList(String queryName, String state, String user) throws InstantiationException, IllegalAccessException
public List<QueryHandle> getQueryHandleList(String queryName, String state) throws InstantiationException, IllegalAccessException
public List<QueryHandle> getQueryHandleList(String queryName) throws InstantiationException, IllegalAccessException
public List<QueryHandle> getQueryHandleList() throws InstantiationException, IllegalAccessException
public LensQuery waitForCompletion(String sessionHandleString, QueryHandle queryHandle) throws JAXBException, InterruptedException, InstantiationException, IllegalAccessException, LensException
sessionHandleString
- queryHandle
- JAXBException
InterruptedException
InstantiationException
IllegalAccessException
LensException
public LensQuery waitForCompletion(QueryHandle queryHandle) throws JAXBException, InterruptedException, InstantiationException, IllegalAccessException, LensException
public QueryStatus waitForQueryToRun(QueryHandle queryHandle, String sessionHandleString) throws JAXBException, InterruptedException, InstantiationException, IllegalAccessException, LensException
queryHandle
- sessionHandleString
- JAXBException
InterruptedException
InstantiationException
IllegalAccessException
LensException
public QueryStatus waitForQueryToRun(QueryHandle queryHandle) throws JAXBException, InterruptedException, InstantiationException, IllegalAccessException, LensException
public QueryStatus getQueryStatus(String sessionHandleString, QueryHandle queryHandle) throws JAXBException, InstantiationException, IllegalAccessException, LensException
sessionHandleString
- queryHandle
- JAXBException
InstantiationException
IllegalAccessException
LensException
public QueryStatus getQueryStatus(QueryHandle queryHandle) throws JAXBException, InstantiationException, IllegalAccessException, LensException
public void killQueryByQueryHandle(String sessionHandleString, QueryHandle queryHandle) throws JAXBException, LensException
sessionHandleString
- queryHandle
- JAXBException
LensException
public void killQueryByQueryHandle(QueryHandle queryHandle) throws JAXBException, LensException
JAXBException
LensException
public void killQuery(String queryName, String state, String user, String sessionHandleString, String fromDate, String toDate) throws JAXBException, LensException
queryName
- state
- user
- sessionHandleString
- fromDate
- toDate
- JAXBException
LensException
public void killQuery(String queryName, String state, String user, String sessionHandleString) throws JAXBException, LensException
JAXBException
LensException
public void killQuery(String queryName, String state, String user) throws JAXBException, LensException
JAXBException
LensException
public void killQuery(String queryName, String state) throws JAXBException, LensException
JAXBException
LensException
public void killQuery(String queryName) throws JAXBException, LensException
JAXBException
LensException
public void killQuery() throws JAXBException, LensException
JAXBException
LensException
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.