org.apache.cassandra.cql3.statements
Class UseStatement
java.lang.Object
org.apache.cassandra.cql3.statements.ParsedStatement
org.apache.cassandra.cql3.statements.UseStatement
- All Implemented Interfaces:
- CQLStatement
public class UseStatement
- extends ParsedStatement
- implements CQLStatement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UseStatement
public UseStatement(java.lang.String keyspace)
prepare
public ParsedStatement.Prepared prepare()
throws InvalidRequestException
- Specified by:
prepare
in class ParsedStatement
- Throws:
InvalidRequestException
checkAccess
public void checkAccess(ClientState state)
- Description copied from interface:
CQLStatement
- Perform any access verification necessary for the statement.
- Specified by:
checkAccess
in interface CQLStatement
- Parameters:
state
- the current client state
validate
public void validate(ClientState state)
throws InvalidRequestException
- Description copied from interface:
CQLStatement
- Perform additional validation required by the statment.
To be overriden by subclasses if needed.
- Specified by:
validate
in interface CQLStatement
- Parameters:
state
- the current client state
- Throws:
InvalidRequestException
execute
public ResultMessage execute(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables)
throws InvalidRequestException
- Description copied from interface:
CQLStatement
- Execute the statement and return the resulting result or null if there is no result.
- Specified by:
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.
- Throws:
InvalidRequestException
executeInternal
public ResultMessage executeInternal(QueryState state)
- Description copied from interface:
CQLStatement
- Variante of execute used for internal query against the system tables, and thus only query the local node.
- Specified by:
executeInternal
in interface CQLStatement
- Parameters:
state
- the current query state
Copyright © 2013 The Apache Software Foundation