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(QueryState state,
QueryOptions options)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeInternal(QueryState state,
QueryOptions options)
Variante of execute used for internal query against the system tables, and thus only query the local node.
|
int |
getBoundTerms()
Returns the number of bound terms in this statement.
|
ParsedStatement.Prepared |
prepare() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
getBoundVariables, setBoundVariablespublic int getBoundTerms()
CQLStatementgetBoundTerms in interface CQLStatementpublic 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(QueryState state, QueryOptions options) throws InvalidRequestException
CQLStatementexecute in interface CQLStatementstate - the current query stateoptions - options for this query (consistency, variables, pageSize, ...)InvalidRequestExceptionpublic ResultMessage executeInternal(QueryState state, QueryOptions options)
CQLStatementexecuteInternal in interface CQLStatementstate - the current query stateCopyright © 2015 The Apache Software Foundation