K - C - public class CqlRowQueryImpl<K,C>
extends java.lang.Object
implements com.netflix.astyanax.query.RowQuery<K,C>
RowQuery that uses java driver. It manages all single row queries and also has support for pagination.
All ColumnQuery and ColumnCountQuery(s) originate from this class.
Note that the class acts more like a placeholder for the structure query context. The actual query construction
is done by other classes like CFRowQueryGen and CFColumnQueryGen| Modifier and Type | Class and Description |
|---|---|
static class |
CqlRowQueryImpl.RowQueryType |
| Constructor and Description |
|---|
CqlRowQueryImpl(CqlKeyspaceImpl.KeyspaceContext ksCtx,
CFQueryContext<K,C> cfCtx,
K rKey,
boolean useCaching) |
| Modifier and Type | Method and Description |
|---|---|
com.netflix.astyanax.query.RowQuery<K,C> |
autoPaginate(boolean enabled) |
com.netflix.astyanax.RowCopier<K,C> |
copyTo(com.netflix.astyanax.model.ColumnFamily<K,C> columnFamily,
K rowKey) |
com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.model.ColumnList<C>> |
execute() |
com.google.common.util.concurrent.ListenableFuture<com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.model.ColumnList<C>>> |
executeAsync() |
com.netflix.astyanax.query.ColumnQuery<C> |
getColumn(C column) |
CqlColumnSlice<C> |
getColumnSlice() |
com.netflix.astyanax.serializers.CompositeRangeBuilder.CompositeByteBufferRange |
getCompositeRange() |
com.netflix.astyanax.query.ColumnCountQuery |
getCount() |
CqlRowQueryImpl.RowQueryType |
getQueryType() |
java.lang.Object |
getRowKey() |
boolean |
isPaginating() |
com.netflix.astyanax.query.RowQuery<K,C> |
setIsPaginating()
Deprecated.
|
com.netflix.astyanax.query.RowQuery<K,C> |
withColumnRange(java.nio.ByteBuffer startColumn,
java.nio.ByteBuffer endColumn,
boolean reversed,
int limit) |
com.netflix.astyanax.query.RowQuery<K,C> |
withColumnRange(com.netflix.astyanax.model.ByteBufferRange range) |
com.netflix.astyanax.query.RowQuery<K,C> |
withColumnRange(C startColumn,
C endColumn,
boolean reversed,
int count) |
com.netflix.astyanax.query.RowQuery<K,C> |
withColumnSlice(C... columns) |
com.netflix.astyanax.query.RowQuery<K,C> |
withColumnSlice(java.util.Collection<C> columns) |
com.netflix.astyanax.query.RowQuery<K,C> |
withColumnSlice(com.netflix.astyanax.model.ColumnSlice<C> colSlice) |
public CqlRowQueryImpl(CqlKeyspaceImpl.KeyspaceContext ksCtx, CFQueryContext<K,C> cfCtx, K rKey, boolean useCaching)
public com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.model.ColumnList<C>> execute() throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
execute in interface com.netflix.astyanax.Execution<com.netflix.astyanax.model.ColumnList<C>>com.netflix.astyanax.connectionpool.exceptions.ConnectionExceptionpublic com.google.common.util.concurrent.ListenableFuture<com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.model.ColumnList<C>>> executeAsync() throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
executeAsync in interface com.netflix.astyanax.Execution<com.netflix.astyanax.model.ColumnList<C>>com.netflix.astyanax.connectionpool.exceptions.ConnectionExceptionpublic com.netflix.astyanax.query.RowQuery<K,C> withColumnSlice(java.util.Collection<C> columns)
public com.netflix.astyanax.query.RowQuery<K,C> withColumnSlice(com.netflix.astyanax.model.ColumnSlice<C> colSlice)
public com.netflix.astyanax.query.RowQuery<K,C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
public com.netflix.astyanax.query.RowQuery<K,C> withColumnRange(java.nio.ByteBuffer startColumn, java.nio.ByteBuffer endColumn, boolean reversed, int limit)
public com.netflix.astyanax.query.RowQuery<K,C> withColumnRange(com.netflix.astyanax.model.ByteBufferRange range)
@Deprecated public com.netflix.astyanax.query.RowQuery<K,C> setIsPaginating()
public com.netflix.astyanax.RowCopier<K,C> copyTo(com.netflix.astyanax.model.ColumnFamily<K,C> columnFamily, K rowKey)
public com.netflix.astyanax.query.ColumnCountQuery getCount()
public java.lang.Object getRowKey()
public CqlColumnSlice<C> getColumnSlice()
public com.netflix.astyanax.serializers.CompositeRangeBuilder.CompositeByteBufferRange getCompositeRange()
public CqlRowQueryImpl.RowQueryType getQueryType()
public boolean isPaginating()