|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cli.commands.BaseLensCommand org.apache.lens.cli.commands.LensQueryCommands
@Component public class LensQueryCommands
The Class LensQueryCommands.
Field Summary |
---|
Fields inherited from class org.apache.lens.cli.commands.BaseLensCommand |
---|
LOG |
Constructor Summary | |
---|---|
LensQueryCommands()
|
Method Summary | |
---|---|
String |
destroyPreparedQuery(String ph)
Destroy prepared query. |
String |
executePreparedQuery(String phandle,
boolean asynch,
String queryName)
Execute prepared query. |
String |
executeQuery(String sql,
boolean asynch,
String queryName)
Execute query. |
String |
explainAndPrepare(String sql,
String queryName)
Explain and prepare. |
String |
explainQuery(String sql,
String location)
Explain query. |
String |
getAllPreparedQueries(String userName,
String queryName,
long fromDate,
long toDate)
Gets the all prepared queries. |
String |
getAllQueries(String state,
String queryName,
String user,
long fromDate,
long toDate)
Gets the all queries. |
String |
getPreparedStatus(String ph)
Gets the prepared status. |
String |
getQueryResults(String qh)
Gets the query results. |
String |
getStatus(String qh)
Gets the status. |
String |
killQuery(String qh)
Kill query. |
String |
prepare(String sql,
String queryName)
Prepare. |
Methods inherited from class org.apache.lens.cli.commands.BaseLensCommand |
---|
formatJson, getClient, getClientWrapper, setClient |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LensQueryCommands()
Method Detail |
---|
public String executeQuery(String sql, boolean asynch, String queryName)
sql
- the sqlasynch
- the asynchqueryName
- the query name
public String getStatus(String qh)
qh
- the qh
public String explainQuery(String sql, String location) throws UnsupportedEncodingException
sql
- the sqllocation
- the location
UnsupportedEncodingException
- the unsupported encoding exceptionpublic String getAllQueries(String state, String queryName, String user, long fromDate, long toDate)
state
- the statequeryName
- the query nameuser
- the userfromDate
- the from datetoDate
- the to date
public String killQuery(String qh)
qh
- the qh
public String getQueryResults(String qh)
qh
- the qh
public String getAllPreparedQueries(String userName, String queryName, long fromDate, long toDate)
userName
- the user namequeryName
- the query namefromDate
- the from datetoDate
- the to date
public String getPreparedStatus(String ph)
ph
- the ph
public String destroyPreparedQuery(String ph)
ph
- the ph
public String executePreparedQuery(String phandle, boolean asynch, String queryName)
phandle
- the phandleasynch
- the asynchqueryName
- the query name
public String prepare(String sql, String queryName) throws UnsupportedEncodingException
sql
- the sqlqueryName
- the query name
UnsupportedEncodingException
- the unsupported encoding exceptionpublic String explainAndPrepare(String sql, String queryName) throws UnsupportedEncodingException
sql
- the sqlqueryName
- the query name
UnsupportedEncodingException
- the unsupported encoding exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |