public abstract class

AbstractIndexQueryImpl

extends Object
implements IndexQuery<K, C>
java.lang.Object
   ↳ com.netflix.astyanax.thrift.AbstractIndexQueryImpl<K, C>

Summary

Fields
protected ColumnFamily<K, C> columnFamily
protected boolean firstPage
protected final org.apache.cassandra.thrift.IndexClause indexClause
protected boolean isPaginating
protected boolean paginateNoMore
protected SlicePredicate predicate
Public Constructors
AbstractIndexQueryImpl(ColumnFamily<K, C> columnFamily)
Public Methods
IndexColumnExpression<K, C> addExpression()
Add an expression (EQ, GT, GTE, LT, LTE) to the clause.
IndexQuery<K, C> addPreparedExpressions(Collection<PreparedIndexExpression<K, C>> expressions)
Add a set of prepare index expressions.
IndexQuery<K, C> autoPaginateRows(boolean autoPaginate)
Automatically sets the next start key so that the next call to execute will fetch the next block of rows
IndexQuery<K, C> setIsPaginating()
@return
IndexQuery<K, C> setLimit(int count)
Limit the number of rows in the response@return
IndexQuery<K, C> setRowLimit(int count)
Limits the number of rows returned
IndexQuery<K, C> setStartKey(K key)
?
IndexQuery<K, C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
Specify a range of columns to return.
IndexQuery<K, C> withColumnRange(ByteBufferRange range)
Specify a range of composite columns.
IndexQuery<K, C> withColumnRange(ByteBuffer startColumn, ByteBuffer endColumn, boolean reversed, int count)
Specify a range and provide pre-constructed start and end columns.
IndexQuery<K, C> withColumnSlice(C... columns)
Specify a non-contiguous set of columns to retrieve.
IndexQuery<K, C> withColumnSlice(Collection<C> columns)
Specify a non-contiguous set of columns to retrieve.
IndexQuery<K, C> withColumnSlice(ColumnSlice<C> slice)
Use this when your application caches the column slice.
Protected Methods
void setNextStartKey(ByteBuffer byteBuffer)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.Execution
From interface com.netflix.astyanax.query.IndexQuery

Fields

protected ColumnFamily<K, C> columnFamily

protected boolean firstPage

protected final org.apache.cassandra.thrift.IndexClause indexClause

protected boolean isPaginating

protected boolean paginateNoMore

protected SlicePredicate predicate

Public Constructors

public AbstractIndexQueryImpl (ColumnFamily<K, C> columnFamily)

Public Methods

public IndexColumnExpression<K, C> addExpression ()

Add an expression (EQ, GT, GTE, LT, LTE) to the clause. Expressions are inherently ANDed

public IndexQuery<K, C> addPreparedExpressions (Collection<PreparedIndexExpression<K, C>> expressions)

Add a set of prepare index expressions.

public IndexQuery<K, C> autoPaginateRows (boolean autoPaginate)

Automatically sets the next start key so that the next call to execute will fetch the next block of rows

public IndexQuery<K, C> setIsPaginating ()

@return

public IndexQuery<K, C> setLimit (int count)

Limit the number of rows in the response@return

public IndexQuery<K, C> setRowLimit (int count)

Limits the number of rows returned

public IndexQuery<K, C> setStartKey (K key)

?

public IndexQuery<K, C> withColumnRange (C startColumn, C endColumn, boolean reversed, int count)

Specify a range of columns to return.

Parameters
startColumn First column in the range
endColumn Last column in the range
reversed True if the order should be reversed. Note that for reversed, startColumn should be greater than endColumn.
count Maximum number of columns to return (similar to SQL LIMIT)

public IndexQuery<K, C> withColumnRange (ByteBufferRange range)

Specify a range of composite columns. Use this in conjunction with the AnnotatedCompositeSerializer.buildRange().

public IndexQuery<K, C> withColumnRange (ByteBuffer startColumn, ByteBuffer endColumn, boolean reversed, int count)

Specify a range and provide pre-constructed start and end columns. Use this with Composite columns

public IndexQuery<K, C> withColumnSlice (C... columns)

Specify a non-contiguous set of columns to retrieve.

public IndexQuery<K, C> withColumnSlice (Collection<C> columns)

Specify a non-contiguous set of columns to retrieve.

public IndexQuery<K, C> withColumnSlice (ColumnSlice<C> slice)

Use this when your application caches the column slice.

Protected Methods

protected void setNextStartKey (ByteBuffer byteBuffer)