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.
|
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) throws InvalidRequestException
CQLStatement
execute
in interface CQLStatement
state
- the current query statevariables
- the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.InvalidRequestException
public ResultMessage executeInternal(QueryState state)
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query stateCopyright © 2013 The Apache Software Foundation