public interface CQLStatement
Modifier and Type | Interface and Description |
---|---|
static class |
CQLStatement.Raw |
static interface |
CQLStatement.SingleKeyspaceCqlStatement |
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.
|
default java.util.List<ColumnSpecification> |
getBindVariables()
Returns all bind variables for the statement
|
default java.lang.Iterable<Function> |
getFunctions()
Return an Iterable over all of the functions (both native and user-defined) used by any component of the statement
|
default short[] |
getPartitionKeyBindVariableIndexes()
Returns an array with the same length as the number of partition key columns for the table corresponding
to table.
|
default boolean |
hasConditions()
Whether or not this CQL Statement has LWT conditions
|
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
default java.util.List<ColumnSpecification> getBindVariables()
default short[] getPartitionKeyBindVariableIndexes()
default java.lang.Iterable<Function> getFunctions()
void authorize(ClientState state)
state
- the current client statevoid validate(ClientState state)
state
- the current client stateResultMessage execute(QueryState state, QueryOptions options, long queryStartNanoTime)
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)queryStartNanoTime
- the timestamp returned by System.nanoTime() when this statement was receivedResultMessage executeLocally(QueryState state, QueryOptions options)
state
- the current query stateAuditLogContext getAuditLogContext()
default boolean hasConditions()
Copyright © 2009-2022 The Apache Software Foundation