|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LensDriver
The Interface LensDriver.
Method Summary | |
---|---|
boolean |
cancelQuery(QueryHandle handle)
Cancel the execution of the query, specified by the handle. |
void |
close()
Close the driver, releasing all resouces used up by the driver. |
void |
closePreparedQuery(QueryPrepareHandle handle)
Close the prepare query specified by the prepared handle, releases all the resources held by the prepared query. |
void |
closeQuery(QueryHandle handle)
Close the query specified by the handle, releases all the resources held by the query. |
void |
closeResultSet(QueryHandle handle)
Close the resultset for the query. |
void |
configure(org.apache.hadoop.conf.Configuration conf)
Configure driver with Configuration passed. |
QueryCost |
estimate(AbstractQueryContext qctx)
Estimate the cost of execution for given query. |
LensResultSet |
execute(QueryContext context)
Blocking execute of the query The driver would be closing the driver handle, once the results are fetched. |
void |
executeAsync(QueryContext context)
Asynchronously execute the query. |
DriverQueryPlan |
explain(AbstractQueryContext explainCtx)
Explain the given query. |
DriverQueryPlan |
explainAndPrepare(PreparedQueryContext pContext)
Explain and prepare the given query. |
LensResultSet |
fetchResultSet(QueryContext context)
Fetch the results of the query, specified by the handle. |
org.apache.hadoop.conf.Configuration |
getConf()
Get driver configuration |
void |
prepare(PreparedQueryContext pContext)
Prepare the given query. |
void |
registerDriverEventListener(LensEventListener<DriverEvent> driverEventListener)
Add a listener for driver events. |
void |
registerForCompletionNotification(QueryHandle handle,
long timeoutMillis,
QueryCompletionListener listener)
Register for query completion notification. |
void |
updateStatus(QueryContext context)
Update driver query status in the context object. |
Methods inherited from interface java.io.Externalizable |
---|
readExternal, writeExternal |
Method Detail |
---|
org.apache.hadoop.conf.Configuration getConf()
void configure(org.apache.hadoop.conf.Configuration conf) throws LensException
Configuration
passed.
conf
- The configuration object
LensException
- the lens exceptionQueryCost estimate(AbstractQueryContext qctx) throws LensException
qctx
- The query context
LensException
- the lens exception if driver cannot estimateDriverQueryPlan explain(AbstractQueryContext explainCtx) throws LensException
explainCtx
- The explain context
LensException
- the lens exceptionvoid prepare(PreparedQueryContext pContext) throws LensException
pContext
- the context
LensException
- the lens exceptionDriverQueryPlan explainAndPrepare(PreparedQueryContext pContext) throws LensException
pContext
- the context
LensException
- the lens exceptionvoid closePreparedQuery(QueryPrepareHandle handle) throws LensException
handle
- The query handle
LensException
- the lens exceptionLensResultSet execute(QueryContext context) throws LensException
context
- the context
LensException
- the lens exceptionvoid executeAsync(QueryContext context) throws LensException
context
- The query context
LensException
- the lens exceptionvoid registerForCompletionNotification(QueryHandle handle, long timeoutMillis, QueryCompletionListener listener) throws LensException
handle
- the handletimeoutMillis
- the timeout millislistener
- the listener
LensException
- the lens exceptionvoid updateStatus(QueryContext context) throws LensException
context
- The query context
LensException
- the lens exceptionLensResultSet fetchResultSet(QueryContext context) throws LensException
context
- The query context
LensException
- the lens exceptionvoid closeResultSet(QueryHandle handle) throws LensException
handle
- The query handle
LensException
- the lens exceptionboolean cancelQuery(QueryHandle handle) throws LensException
handle
- The query handle.
LensException
- the lens exceptionvoid closeQuery(QueryHandle handle) throws LensException
handle
- The query handle
LensException
- the lens exceptionvoid close() throws LensException
LensException
- the lens exceptionvoid registerDriverEventListener(LensEventListener<DriverEvent> driverEventListener)
driverEventListener
- the driver event listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |