org.apache.cassandra.cql3
Interface CQLStatement

All Known Implementing Classes:
AlterKeyspaceStatement, AlterTableStatement, AlterUserStatement, AuthenticationStatement, AuthorizationStatement, BatchStatement, CreateColumnFamilyStatement, CreateIndexStatement, CreateKeyspaceStatement, CreateUserStatement, DeleteStatement, DropColumnFamilyStatement, DropIndexStatement, DropKeyspaceStatement, DropUserStatement, GrantStatement, ListPermissionsStatement, ListUsersStatement, ModificationStatement, PermissionAlteringStatement, RevokeStatement, SchemaAlteringStatement, SelectStatement, TruncateStatement, UpdateStatement, UseStatement

public interface CQLStatement


Method Summary
 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.
 int getBoundsTerms()
          Returns the number of bound terms in this statement.
 void validate(ClientState state)
          Perform additional validation required by the statment.
 

Method Detail

getBoundsTerms

int getBoundsTerms()
Returns the number of bound terms in this statement.


checkAccess

void checkAccess(ClientState state)
                 throws UnauthorizedException,
                        InvalidRequestException
Perform any access verification necessary for the statement.

Parameters:
state - the current client state
Throws:
UnauthorizedException
InvalidRequestException

validate

void validate(ClientState state)
              throws RequestValidationException
Perform additional validation required by the statment. To be overriden by subclasses if needed.

Parameters:
state - the current client state
Throws:
RequestValidationException

execute

ResultMessage execute(ConsistencyLevel cl,
                      QueryState state,
                      java.util.List<java.nio.ByteBuffer> variables)
                      throws RequestValidationException,
                             RequestExecutionException
Execute the statement and return the resulting result or null if there is no result.

Parameters:
state - the current query state
variables - the values for bounded variables. The implementation can assume that each bound term have a corresponding value.
Throws:
RequestValidationException
RequestExecutionException

executeInternal

ResultMessage executeInternal(QueryState state)
                              throws RequestValidationException,
                                     RequestExecutionException
Variante of execute used for internal query against the system tables, and thus only query the local node.

Parameters:
state - the current query state
Throws:
RequestValidationException
RequestExecutionException


Copyright © 2013 The Apache Software Foundation