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,
int pageSize,
PagingState pagingState)
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.
|
getBoundsTerms, setBoundTerms
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoundsTerms
public ParsedStatement.Prepared prepare() throws InvalidRequestException
prepare
in class ParsedStatement
InvalidRequestException
public void checkAccess(ClientState state) throws UnauthorizedException
CQLStatement
checkAccess
in interface CQLStatement
state
- the current client stateUnauthorizedException
public void validate(ClientState state) throws InvalidRequestException
CQLStatement
validate
in interface CQLStatement
state
- the current client stateInvalidRequestException
public ResultMessage execute(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables, int pageSize, PagingState pagingState) throws InvalidRequestException
CQLStatement
execute
in interface CQLStatement
cl
- the consistency level for the querystate
- the current query statevariables
- the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.pageSize
- the initial page size for the result set potentially returned. A negative value
means no paging needs to be done. Statements that do not return result sets can ignore this value.pagingState
- the paging state for paged query. All statement except Select should ignore
that value.InvalidRequestException
public ResultMessage executeInternal(QueryState state)
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query stateCopyright © 2013 The Apache Software Foundation