public class UseStatement extends CQLStatement.Raw implements CQLStatement
CQLStatement.RawbindVariables| 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.
|
setBindVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditionspublic UseStatement prepare(ClientState state)
prepare in class CQLStatement.Rawpublic void authorize(ClientState state) throws UnauthorizedException
CQLStatementauthorize in interface CQLStatementstate - the current client stateUnauthorizedExceptionpublic void validate(ClientState state) throws InvalidRequestException
CQLStatementvalidate in interface CQLStatementstate - the current client stateInvalidRequestExceptionpublic ResultMessage execute(QueryState state, QueryOptions options, long queryStartNanoTime) throws InvalidRequestException
CQLStatementexecute in interface CQLStatementstate - the current query stateoptions - options for this query (consistency, variables, pageSize, ...)queryStartNanoTime - the timestamp returned by System.nanoTime() when this statement was receivedInvalidRequestExceptionpublic ResultMessage executeLocally(QueryState state, QueryOptions options) throws InvalidRequestException
CQLStatementexecuteLocally in interface CQLStatementstate - the current query stateInvalidRequestExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic AuditLogContext getAuditLogContext()
CQLStatementgetAuditLogContext in interface CQLStatementCopyright © 2009-2020 The Apache Software Foundation