Package org.apache.cassandra.cql3
Interface CQLStatement
- All Known Subinterfaces:
CQLStatement.SingleKeyspaceCqlStatement
- All Known Implementing Classes:
AddIdentityStatement,AlterKeyspaceStatement,AlterRoleStatement,AlterSchemaStatement,AlterTableStatement,AlterTableStatement.AlterColumn,AlterTableStatement.MaskColumn,AlterTypeStatement,AlterViewStatement,AuthenticationStatement,AuthorizationStatement,BatchStatement,CreateAggregateStatement,CreateFunctionStatement,CreateIndexStatement,CreateKeyspaceStatement,CreateRoleStatement,CreateTableStatement,CreateTriggerStatement,CreateTypeStatement,CreateViewStatement,DeleteStatement,DescribeStatement,DescribeStatement.Element,DescribeStatement.Listing,DropAggregateStatement,DropFunctionStatement,DropIdentityStatement,DropIndexStatement,DropKeyspaceStatement,DropRoleStatement,DropTableStatement,DropTriggerStatement,DropTypeStatement,DropViewStatement,GrantPermissionsStatement,GrantRoleStatement,ListPermissionsStatement,ListRolesStatement,ListUsersStatement,ModificationStatement,PermissionsManagementStatement,RevokePermissionsStatement,RevokeRoleStatement,RoleManagementStatement,SelectStatement,TruncateStatement,UpdateStatement,UseStatement
public interface CQLStatement
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoidauthorize(ClientState state) Perform any access verification necessary for the statement.execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) Execute the statement and return the resulting result or null if there is no result.executeLocally(QueryState state, QueryOptions options) Variant of execute used for internal query against the system tables, and thus only query the local node.Provides the context needed for audit logging statements.default List<ColumnSpecification>Returns all bind variables for the statementReturn an Iterable over all of the functions (both native and user-defined) used by any component of the statementdefault short[]Returns an array with the same length as the number of partition key columns for the table corresponding to table.default booleanWhether or not this CQL Statement has LWT conditionsvoidvalidate(ClientState state) Perform additional validation required by the statment.
-
Method Details
-
getBindVariables
Returns all bind variables for the statement -
getPartitionKeyBindVariableIndexes
default short[] getPartitionKeyBindVariableIndexes()Returns an array with the same length as the number of partition key columns for the table corresponding to table. Each short in the array represents the bind index of the marker that holds the value for that partition key column. If there are no bind markers for any of the partition key columns, null is returned. -
getFunctions
Return an Iterable over all of the functions (both native and user-defined) used by any component of the statement- Returns:
- functions all functions found (may contain duplicates)
-
authorize
Perform any access verification necessary for the statement.- Parameters:
state- the current client state
-
validate
Perform additional validation required by the statment. To be overriden by subclasses if needed.- Parameters:
state- the current client state
-
execute
Execute the statement and return the resulting result or null if there is no result.- Parameters:
state- the current query stateoptions- options for this query (consistency, variables, pageSize, ...)requestTime- request enqueue / and start times;
-
executeLocally
Variant of execute used for internal query against the system tables, and thus only query the local node.- Parameters:
state- the current query state
-
getAuditLogContext
AuditLogContext getAuditLogContext()Provides the context needed for audit logging statements. -
hasConditions
default boolean hasConditions()Whether or not this CQL Statement has LWT conditions
-