public class UseStatement extends CQLStatement.Raw implements CQLStatement
CQLStatement.Raw
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,
long queryStartNanoTime)
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.
|
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, long queryStartNanoTime) throws InvalidRequestException
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)queryStartNanoTime
- the timestamp returned by System.nanoTime() when this statement was receivedInvalidRequestException
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
Copyright © 2009-2021 The Apache Software Foundation