public class TruncateStatement extends CFStatement implements CQLStatement
ParsedStatement.Prepared
cfName
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(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeInternal(QueryState state)
Variante of execute used for internal query against the system tables, and thus only query the local node.
|
ParsedStatement.Prepared |
prepare() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
columnFamily, keyspace, prepareKeyspace
getBoundsTerms, setBoundTerms
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoundsTerms
public TruncateStatement(CFName name)
public ParsedStatement.Prepared prepare() throws InvalidRequestException
prepare
in class ParsedStatement
InvalidRequestException
public void checkAccess(ClientState state) throws InvalidRequestException, UnauthorizedException
CQLStatement
checkAccess
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(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException, TruncateException
CQLStatement
execute
in interface CQLStatement
state
- the current query statevariables
- the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.InvalidRequestException
TruncateException
public ResultMessage executeInternal(QueryState state)
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query stateCopyright © 2013 The Apache Software Foundation