public class TruncateStatement extends CFStatement implements CQLStatement
ParsedStatement.PreparedcfName| Constructor and Description | 
|---|
| TruncateStatement(CFName name) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkAccess(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 | executeInternal(QueryState state,
               QueryOptions options)Variant of execute used for internal query against the system tables, and thus only query the local node. | 
| int | getBoundTerms()Returns the number of bound terms in this statement. | 
| ParsedStatement.Prepared | prepare(ClientState clientState) | 
| void | validate(ClientState state)Perform additional validation required by the statment. | 
columnFamily, keyspace, prepareKeyspace, prepareKeyspacegetBoundVariables, getFunctions, setBoundVariables, setBoundVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionspublic TruncateStatement(CFName name)
public int getBoundTerms()
CQLStatementgetBoundTerms in interface CQLStatementpublic ParsedStatement.Prepared prepare(ClientState clientState) throws InvalidRequestException
prepare in class ParsedStatementInvalidRequestExceptionpublic void checkAccess(ClientState state) throws InvalidRequestException, UnauthorizedException
CQLStatementcheckAccess 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 executeInternal(QueryState state, QueryOptions options)
CQLStatementexecuteInternal in interface CQLStatementstate - the current query stateCopyright © 2018 The Apache Software Foundation