public class TruncateStatement extends QualifiedStatement implements CQLStatement
CQLStatement.RawbindVariables| 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, setKeyspacesetBindVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditionspublic TruncateStatement(QualifiedName name)
public TruncateStatement prepare(ClientState state)
prepare in class CQLStatement.Rawpublic void authorize(ClientState state) throws InvalidRequestException, UnauthorizedException
CQLStatementauthorize in interface CQLStatementstate - the current client stateInvalidRequestExceptionUnauthorizedExceptionpublic void validate(ClientState state) throws InvalidRequestException
CQLStatementvalidate in interface CQLStatementstate - the current client stateInvalidRequestExceptionpublic ResultMessage execute(QueryState state, QueryOptions options, long queryStartNanoTime) throws InvalidRequestException, TruncateException
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 receivedInvalidRequestExceptionTruncateExceptionpublic ResultMessage executeLocally(QueryState state, QueryOptions options)
CQLStatementexecuteLocally in interface CQLStatementstate - the current query statepublic java.lang.String toString()
toString in class QualifiedStatementpublic AuditLogContext getAuditLogContext()
CQLStatementgetAuditLogContext in interface CQLStatementCopyright © 2009-2020 The Apache Software Foundation