org.apache.cassandra.cql3.statements
Class AuthenticationStatement

java.lang.Object
  extended by org.apache.cassandra.cql3.statements.ParsedStatement
      extended by org.apache.cassandra.cql3.statements.AuthenticationStatement
All Implemented Interfaces:
CQLStatement
Direct Known Subclasses:
AlterUserStatement, CreateUserStatement, DropUserStatement, ListUsersStatement

public abstract class AuthenticationStatement
extends ParsedStatement
implements CQLStatement


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.statements.ParsedStatement
ParsedStatement.Prepared
 
Constructor Summary
AuthenticationStatement()
           
 
Method Summary
abstract  ResultMessage execute(ClientState state)
           
 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.
 ParsedStatement.Prepared prepare()
           
 
Methods inherited from class org.apache.cassandra.cql3.statements.ParsedStatement
setBoundTerms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
checkAccess, validate
 

Constructor Detail

AuthenticationStatement

public AuthenticationStatement()
Method Detail

prepare

public ParsedStatement.Prepared prepare()
Specified by:
prepare in class ParsedStatement

getBoundsTerms

public int getBoundsTerms()
Description copied from interface: CQLStatement
Returns the number of bound terms in this statement.

Specified by:
getBoundsTerms in interface CQLStatement
Overrides:
getBoundsTerms in class ParsedStatement

execute

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

Specified by:
execute in interface CQLStatement
state - the current query state
variables - the values for bounded variables. The implementation can assume that each bound term have a corresponding value.
Throws:
RequestExecutionException
RequestValidationException

execute

public abstract ResultMessage execute(ClientState state)
                               throws RequestExecutionException,
                                      RequestValidationException
Throws:
RequestExecutionException
RequestValidationException

executeInternal

public ResultMessage executeInternal(QueryState state)
Description copied from interface: CQLStatement
Variante of execute used for internal query against the system tables, and thus only query the local node.

Specified by:
executeInternal in interface CQLStatement
Parameters:
state - the current query state


Copyright © 2013 The Apache Software Foundation