public class QueryProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SemanticVersion |
CQL_VERSION |
Constructor and Description |
---|
QueryProcessor() |
Modifier and Type | Method and Description |
---|---|
static void |
addPostExecutionHook(PostExecutionHook hook) |
static void |
addPostPreparationHook(PostPreparationHook hook) |
static void |
addPreExecutionHook(PreExecutionHook hook) |
static CQLStatement |
getPrepared(java.lang.Integer id) |
static CQLStatement |
getPrepared(MD5Digest id) |
static ParsedStatement.Prepared |
getStatement(java.lang.String queryStr,
ClientState clientState) |
static ParsedStatement |
parseStatement(java.lang.String queryStr) |
static CQLStatement |
parseStatement(java.lang.String queryStr,
QueryState queryState) |
static ResultMessage.Prepared |
prepare(java.lang.String queryString,
ClientState clientState,
boolean forThrift) |
static UntypedResultSet |
process(java.lang.String query,
ConsistencyLevel cl) |
static ResultMessage |
process(java.lang.String queryString,
ConsistencyLevel cl,
QueryState queryState) |
static ResultMessage |
process(java.lang.String queryString,
QueryState queryState,
QueryOptions options) |
static ResultMessage |
processBatch(BatchStatement batch,
ConsistencyLevel cl,
QueryState queryState,
java.util.List<java.util.List<java.nio.ByteBuffer>> variables,
java.util.List<java.lang.Object> queryOrIdList) |
static UntypedResultSet |
processInternal(java.lang.String query) |
static ResultMessage |
processPrepared(CQLStatement statement,
QueryState queryState,
QueryOptions options) |
static void |
removePostExecutionHook(PostExecutionHook hook) |
static void |
removePostPreparationHook(PostPreparationHook hook) |
static void |
removePreExecutionHook(PreExecutionHook hook) |
static UntypedResultSet |
resultify(java.lang.String query,
Row row) |
static void |
validateCellName(java.nio.ByteBuffer name) |
static void |
validateCellNames(java.lang.Iterable<java.nio.ByteBuffer> cellNames) |
static void |
validateKey(java.nio.ByteBuffer key) |
public static final SemanticVersion CQL_VERSION
public static void addPreExecutionHook(PreExecutionHook hook)
public static void removePreExecutionHook(PreExecutionHook hook)
public static void addPostExecutionHook(PostExecutionHook hook)
public static void removePostExecutionHook(PostExecutionHook hook)
public static void addPostPreparationHook(PostPreparationHook hook)
public static void removePostPreparationHook(PostPreparationHook hook)
public static CQLStatement getPrepared(MD5Digest id)
public static CQLStatement getPrepared(java.lang.Integer id)
public static void validateKey(java.nio.ByteBuffer key) throws InvalidRequestException
InvalidRequestException
public static void validateCellNames(java.lang.Iterable<java.nio.ByteBuffer> cellNames) throws InvalidRequestException
InvalidRequestException
public static void validateCellName(java.nio.ByteBuffer name) throws InvalidRequestException
InvalidRequestException
public static ResultMessage process(java.lang.String queryString, ConsistencyLevel cl, QueryState queryState) throws RequestExecutionException, RequestValidationException
public static ResultMessage process(java.lang.String queryString, QueryState queryState, QueryOptions options) throws RequestExecutionException, RequestValidationException
public static CQLStatement parseStatement(java.lang.String queryStr, QueryState queryState) throws RequestValidationException
RequestValidationException
public static UntypedResultSet process(java.lang.String query, ConsistencyLevel cl) throws RequestExecutionException
RequestExecutionException
public static UntypedResultSet processInternal(java.lang.String query)
public static UntypedResultSet resultify(java.lang.String query, Row row)
public static ResultMessage.Prepared prepare(java.lang.String queryString, ClientState clientState, boolean forThrift) throws RequestValidationException
RequestValidationException
public static ResultMessage processPrepared(CQLStatement statement, QueryState queryState, QueryOptions options) throws RequestExecutionException, RequestValidationException
public static ResultMessage processBatch(BatchStatement batch, ConsistencyLevel cl, QueryState queryState, java.util.List<java.util.List<java.nio.ByteBuffer>> variables, java.util.List<java.lang.Object> queryOrIdList) throws RequestExecutionException, RequestValidationException
public static ParsedStatement.Prepared getStatement(java.lang.String queryStr, ClientState clientState) throws RequestValidationException
RequestValidationException
public static ParsedStatement parseStatement(java.lang.String queryStr) throws SyntaxException
SyntaxException
Copyright © 2013 The Apache Software Foundation