public class TruncateStatement extends QualifiedStatement implements CQLStatement
CQLStatement.Raw
bindVariables
Constructor and Description |
---|
TruncateStatement(QualifiedName name) |
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.
|
TruncateStatement |
prepare(ClientState state) |
java.lang.String |
toString() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
keyspace, name, setKeyspace, setKeyspace
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
public TruncateStatement(QualifiedName name)
public TruncateStatement prepare(ClientState state)
prepare
in class CQLStatement.Raw
public void authorize(ClientState state) throws InvalidRequestException, UnauthorizedException
CQLStatement
authorize
in interface CQLStatement
state
- the current client stateInvalidRequestException
UnauthorizedException
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, TruncateException
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
TruncateException
public ResultMessage executeLocally(QueryState state, QueryOptions options)
CQLStatement
executeLocally
in interface CQLStatement
state
- the current query statepublic java.lang.String toString()
toString
in class QualifiedStatement
public AuditLogContext getAuditLogContext()
CQLStatement
getAuditLogContext
in interface CQLStatement
Copyright © 2009-2021 The Apache Software Foundation