public class UseStatement extends ParsedStatement implements CQLStatement
ParsedStatement.Prepared| Constructor and Description |
|---|
UseStatement(java.lang.String keyspace) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeInternal(QueryState state)
Variante of execute used for internal query against the system tables, and thus only query the local node.
|
ParsedStatement.Prepared |
prepare() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
getBoundTerms, setBoundTermsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoundTermspublic ParsedStatement.Prepared prepare() throws InvalidRequestException
prepare in class ParsedStatementInvalidRequestExceptionpublic void checkAccess(ClientState state) throws UnauthorizedException
CQLStatementcheckAccess in interface CQLStatementstate - the current client stateUnauthorizedExceptionpublic void validate(ClientState state) throws InvalidRequestException
CQLStatementvalidate in interface CQLStatementstate - the current client stateInvalidRequestExceptionpublic ResultMessage execute(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException
CQLStatementexecute in interface CQLStatementstate - the current query statevariables - the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.InvalidRequestExceptionpublic ResultMessage executeInternal(QueryState state)
CQLStatementexecuteInternal in interface CQLStatementstate - the current query stateCopyright © 2014 The Apache Software Foundation