public class UseStatement extends CQLStatement.Raw implements CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
bindVariables
Constructor and Description |
---|
UseStatement(java.lang.String keyspace) |
Modifier and Type | Method and Description |
---|---|
void |
authorize(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(QueryState state,
QueryOptions options,
Dispatcher.RequestTime requestTime)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeLocally(QueryState state,
QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.
|
AuditLogContext |
getAuditLogContext()
Provides the context needed for audit logging statements.
|
java.lang.String |
keyspace() |
UseStatement |
prepare(ClientState state) |
java.lang.String |
toString() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
public UseStatement prepare(ClientState state)
prepare
in class CQLStatement.Raw
public void authorize(ClientState state) throws UnauthorizedException
CQLStatement
authorize
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(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) throws InvalidRequestException
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)requestTime
- request enqueue / and start timesInvalidRequestException
public ResultMessage executeLocally(QueryState state, QueryOptions options) throws InvalidRequestException
CQLStatement
executeLocally
in interface CQLStatement
state
- the current query stateInvalidRequestException
public java.lang.String toString()
toString
in class java.lang.Object
public AuditLogContext getAuditLogContext()
CQLStatement
getAuditLogContext
in interface CQLStatement
public java.lang.String keyspace()
Copyright © 2009- The Apache Software Foundation