com.datastax.driver.core.querybuilder
Class Truncate
java.lang.Object
com.datastax.driver.core.Query
com.datastax.driver.core.Statement
com.datastax.driver.core.querybuilder.Truncate
public class Truncate
- extends Statement
A built TRUNCATE statement.
isCounterOp
protected Boolean isCounterOp
buildQueryString
protected StringBuilder buildQueryString()
getQueryString
public String getQueryString()
- Description copied from class:
Statement
- Returns the query string for this statement.
- Specified by:
getQueryString
in class Statement
- Returns:
- a valid CQL query string.
setDirty
protected void setDirty()
isCounterOp
protected boolean isCounterOp()
setCounterOp
protected void setCounterOp(boolean isCounterOp)
getRoutingKey
public ByteBuffer getRoutingKey()
- Description copied from class:
Query
- Returns the routing key (in binary raw form) to use for token aware
routing of this query.
The routing key is optional in that implementers are free to
return null
. The routing key is an hint used for token-aware routing (see
TokenAwarePolicy
), and
if provided should correspond to the binary value for the query
partition key. However, not providing a routing key never causes a query
to fail and if the load balancing policy used is not token aware, then
the routing key can be safely ignored.
- Specified by:
getRoutingKey
in class Query
- Returns:
- the routing key for this query or
null
.
Copyright © 2013. All Rights Reserved.