public abstract class QueryOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CBCodec<QueryOptions> |
codec |
static QueryOptions |
DEFAULT |
Constructor and Description |
---|
QueryOptions() |
Modifier and Type | Method and Description |
---|---|
static QueryOptions |
addColumnSpecifications(QueryOptions options,
java.util.List<ColumnSpecification> columnSpecs) |
static QueryOptions |
create(ConsistencyLevel consistency,
java.util.List<java.nio.ByteBuffer> values,
boolean skipMetadata,
int pageSize,
PagingState pagingState,
ConsistencyLevel serialConsistency) |
static QueryOptions |
forInternalCalls(ConsistencyLevel consistency,
java.util.List<java.nio.ByteBuffer> values) |
static QueryOptions |
forInternalCalls(java.util.List<java.nio.ByteBuffer> values) |
static QueryOptions |
forProtocolVersion(int protocolVersion) |
static QueryOptions |
fromThrift(ConsistencyLevel consistency,
java.util.List<java.nio.ByteBuffer> values) |
com.google.common.collect.ImmutableList<ColumnSpecification> |
getColumnSpecifications()
Returns the column specifications for the bound variables (optional operation).
|
abstract ConsistencyLevel |
getConsistency() |
int |
getPageSize()
The pageSize for this query.
|
PagingState |
getPagingState()
The paging state for this query, or null if not relevant.
|
abstract int |
getProtocolVersion()
The protocol version for the query.
|
ConsistencyLevel |
getSerialConsistency()
Serial consistency for conditional updates.
|
long |
getTimestamp(QueryState state) |
abstract java.util.List<java.nio.ByteBuffer> |
getValues() |
boolean |
hasColumnSpecifications()
Tells whether or not this
QueryOptions contains the column specifications for the bound variables. |
QueryOptions |
prepare(java.util.List<ColumnSpecification> specs) |
abstract boolean |
skipMetadata() |
public static final QueryOptions DEFAULT
public static final CBCodec<QueryOptions> codec
public static QueryOptions fromThrift(ConsistencyLevel consistency, java.util.List<java.nio.ByteBuffer> values)
public static QueryOptions forInternalCalls(ConsistencyLevel consistency, java.util.List<java.nio.ByteBuffer> values)
public static QueryOptions forInternalCalls(java.util.List<java.nio.ByteBuffer> values)
public static QueryOptions forProtocolVersion(int protocolVersion)
public static QueryOptions create(ConsistencyLevel consistency, java.util.List<java.nio.ByteBuffer> values, boolean skipMetadata, int pageSize, PagingState pagingState, ConsistencyLevel serialConsistency)
public static QueryOptions addColumnSpecifications(QueryOptions options, java.util.List<ColumnSpecification> columnSpecs)
public abstract ConsistencyLevel getConsistency()
public abstract java.util.List<java.nio.ByteBuffer> getValues()
public abstract boolean skipMetadata()
public boolean hasColumnSpecifications()
QueryOptions
contains the column specifications for the bound variables.
The column specifications will be present only for prepared statements.
true
this QueryOptions
contains the column specifications for the bound
variables, false
otherwise.public com.google.common.collect.ImmutableList<ColumnSpecification> getColumnSpecifications()
The column specifications will be present only for prepared statements.
Invoke the hasColumnSpecifications
method before invoking this method in order to ensure that this
QueryOptions
contains the column specifications.
java.lang.UnsupportedOperationException
- If this QueryOptions
does not contains the column
specifications.public int getPageSize()
public PagingState getPagingState()
public ConsistencyLevel getSerialConsistency()
public long getTimestamp(QueryState state)
public abstract int getProtocolVersion()
public QueryOptions prepare(java.util.List<ColumnSpecification> specs)
Copyright © 2015 The Apache Software Foundation