public class UseStatement extends ParsedStatement implements CQLStatement
ParsedStatement.Prepared
Constructor and Description |
---|
UseStatement(java.lang.String keyspace) |
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(QueryState state,
QueryOptions options)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeInternal(QueryState state,
QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.
|
int |
getBoundTerms()
Returns the number of bound terms in this statement.
|
ParsedStatement.Prepared |
prepare() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
getBoundVariables, getFunctions, setBoundVariables, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
public int getBoundTerms()
CQLStatement
getBoundTerms
in interface CQLStatement
public ParsedStatement.Prepared prepare() throws InvalidRequestException
prepare
in class ParsedStatement
InvalidRequestException
public void checkAccess(ClientState state) throws UnauthorizedException
CQLStatement
checkAccess
in interface CQLStatement
state
- the current client stateUnauthorizedException
public void validate(ClientState state) throws InvalidRequestException
CQLStatement
validate
in interface CQLStatement
state
- the current client stateInvalidRequestException
public ResultMessage execute(QueryState state, QueryOptions options) throws InvalidRequestException
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)InvalidRequestException
public ResultMessage executeInternal(QueryState state, QueryOptions options) throws InvalidRequestException
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query stateInvalidRequestException
Copyright © 2017 The Apache Software Foundation