|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.client.LensStatement
public class LensStatement
Top level class which is used to execute lens queries.
| Constructor Summary | |
|---|---|
LensStatement(LensConnection connection)
Instantiates a new lens statement. |
|
| Method Summary | |
|---|---|
boolean |
closeResultSet()
Close result set. |
boolean |
destroyPrepared(QueryPrepareHandle phandle)
Destroy prepared. |
void |
execute(String sql,
boolean waitForQueryToComplete,
String queryName)
Execute. |
void |
execute(String sql,
String queryName)
Execute. |
QueryHandle |
executeQuery(QueryPrepareHandle phandle,
boolean waitForQueryToComplete,
String queryName)
Execute query. |
QueryHandle |
executeQuery(QueryPrepareHandle phandle,
String queryName)
Execute query. |
QueryHandle |
executeQuery(String sql,
boolean waitForQueryToComplete,
String queryName)
Execute query. |
QueryPlan |
explainAndPrepare(String sql,
String queryName)
Explain and prepare. |
QueryPlan |
explainQuery(String sql)
Explain query. |
List<QueryPrepareHandle> |
getAllPreparedQueries(String userName,
String queryName,
long fromDate,
long toDate)
Gets the all prepared queries. |
List<QueryHandle> |
getAllQueries(String state,
String queryName,
String user,
long fromDate,
long toDate)
Gets the all queries. |
LensPreparedQuery |
getPreparedQuery(QueryPrepareHandle handle)
Gets the prepared query. |
LensQuery |
getQuery()
|
LensQuery |
getQuery(QueryHandle handle)
Gets the query. |
QueryResult |
getResultSet()
|
QueryResult |
getResultSet(LensQuery query)
Gets the result set. |
QueryResultSetMetadata |
getResultSetMetaData()
|
QueryResultSetMetadata |
getResultSetMetaData(LensQuery query)
Gets the result set meta data. |
QueryStatus |
getStatus()
|
boolean |
isIdle()
|
boolean |
kill()
Kill. |
boolean |
kill(LensQuery query)
Kill. |
QueryPrepareHandle |
prepareQuery(String sql,
String queryName)
Prepare query. |
boolean |
wasQuerySuccessful()
Was query successful. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LensStatement(LensConnection connection)
connection - the connection| Method Detail |
|---|
public void execute(String sql,
boolean waitForQueryToComplete,
String queryName)
sql - the sqlwaitForQueryToComplete - the wait for query to completequeryName - the query name
public void execute(String sql,
String queryName)
sql - the sqlqueryName - the query name
public QueryHandle executeQuery(String sql,
boolean waitForQueryToComplete,
String queryName)
sql - the sqlwaitForQueryToComplete - the wait for query to completequeryName - the query name
public QueryHandle executeQuery(QueryPrepareHandle phandle,
boolean waitForQueryToComplete,
String queryName)
phandle - the phandlewaitForQueryToComplete - the wait for query to completequeryName - the query name
public QueryPrepareHandle prepareQuery(String sql,
String queryName)
sql - the sqlqueryName - the query name
public QueryPlan explainAndPrepare(String sql,
String queryName)
sql - the sqlqueryName - the query name
public LensQuery getQuery(QueryHandle handle)
handle - the handle
public LensPreparedQuery getPreparedQuery(QueryPrepareHandle handle)
handle - the handle
public QueryHandle executeQuery(QueryPrepareHandle phandle,
String queryName)
phandle - the phandlequeryName - the query name
public QueryPlan explainQuery(String sql)
sql - the sql
public List<QueryHandle> 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 List<QueryPrepareHandle> getAllPreparedQueries(String userName,
String queryName,
long fromDate,
long toDate)
userName - the user namequeryName - the query namefromDate - the from datetoDate - the to date
public QueryResultSetMetadata getResultSetMetaData()
public QueryResultSetMetadata getResultSetMetaData(LensQuery query)
query - the query
public QueryResult getResultSet()
public QueryResult getResultSet(LensQuery query)
query - the query
public boolean kill()
public boolean kill(LensQuery query)
query - the query
public boolean closeResultSet()
public boolean destroyPrepared(QueryPrepareHandle phandle)
phandle - the phandle
public boolean isIdle()
public boolean wasQuerySuccessful()
public QueryStatus getStatus()
public LensQuery getQuery()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||