public interface Query
Modifier and Type | Interface and Description |
---|---|
static class |
Query.CancelStatus |
Modifier and Type | Method and Description |
---|---|
void |
addBatch(java.lang.Object batch) |
void |
checkCancelTimeout() |
void |
clearBatchedArgs() |
void |
closeQuery() |
java.util.List<java.lang.Object> |
getBatchedArgs()
Get the batched args as added by the addBatch method(s).
|
java.lang.Object |
getCancelTimeoutMutex() |
java.lang.String |
getCurrentDatabase() |
long |
getExecuteTime()
Returns the elapsed time for the server to execute the query.
|
int |
getId()
Returns the query id used when profiling
|
int |
getResultFetchSize() |
<T extends Resultset,M extends Message> |
getResultSetFactory() |
Resultset.Type |
getResultType() |
Session |
getSession() |
java.util.concurrent.atomic.AtomicBoolean |
getStatementExecuting() |
int |
getTimeoutInMillis() |
boolean |
isClearWarningsCalled() |
void |
resetCancelledState() |
void |
setCancelStatus(Query.CancelStatus cs) |
void |
setClearWarningsCalled(boolean clearWarningsCalled) |
void |
setCurrentDatabase(java.lang.String currentDb) |
void |
setExecuteTime(long executeTime) |
void |
setResultFetchSize(int fetchSize) |
void |
setResultType(Resultset.Type resultSetType) |
void |
setTimeoutInMillis(int timeoutInMillis) |
CancelQueryTask |
startQueryTimer(Query stmtToCancel,
int timeout) |
void |
statementBegins() |
void |
stopQueryTimer(CancelQueryTask timeoutTask,
boolean rethrowCancelReason,
boolean checkCancelTimeout) |
int getId()
void setCancelStatus(Query.CancelStatus cs)
void checkCancelTimeout()
<T extends Resultset,M extends Message> ProtocolEntityFactory<T,M> getResultSetFactory()
Session getSession()
java.lang.Object getCancelTimeoutMutex()
void resetCancelledState()
void closeQuery()
void addBatch(java.lang.Object batch)
java.util.List<java.lang.Object> getBatchedArgs()
void clearBatchedArgs()
int getResultFetchSize()
void setResultFetchSize(int fetchSize)
Resultset.Type getResultType()
void setResultType(Resultset.Type resultSetType)
int getTimeoutInMillis()
void setTimeoutInMillis(int timeoutInMillis)
void setExecuteTime(long executeTime)
long getExecuteTime()
CancelQueryTask startQueryTimer(Query stmtToCancel, int timeout)
java.util.concurrent.atomic.AtomicBoolean getStatementExecuting()
java.lang.String getCurrentDatabase()
void setCurrentDatabase(java.lang.String currentDb)
boolean isClearWarningsCalled()
void setClearWarningsCalled(boolean clearWarningsCalled)
void statementBegins()
void stopQueryTimer(CancelQueryTask timeoutTask, boolean rethrowCancelReason, boolean checkCancelTimeout)