com.netflix.astyanax.query
Interface IndexQuery<K,C>

All Superinterfaces:
com.netflix.astyanax.Execution<Rows<K,C>>

public interface IndexQuery<K,C>
extends com.netflix.astyanax.Execution<Rows<K,C>>


Method Summary
 IndexColumnExpression<K,C> addExpression()
          Add an expression (EQ, GT, GTE, LT, LTE) to the clause.
 IndexQuery<K,C> addPreparedExpressions(java.util.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()
          Deprecated. autoPaginateRows()
 IndexQuery<K,C> setLimit(int count)
          Deprecated. Use setRowLimit instead
 IndexQuery<K,C> setRowLimit(int count)
          Limits the number of rows returned
 IndexQuery<K,C> setStartKey(K key)
           
 IndexQuery<K,C> withColumnRange(java.nio.ByteBuffer startColumn, java.nio.ByteBuffer endColumn, boolean reversed, int count)
          Specify a range and provide pre-constructed start and end columns.
 IndexQuery<K,C> withColumnRange(ByteBufferRange range)
          Specify a range of composite columns.
 IndexQuery<K,C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
          Specify a range of columns to return.
 IndexQuery<K,C> withColumnSlice(C... columns)
          Specify a non-contiguous set of columns to retrieve.
 IndexQuery<K,C> withColumnSlice(java.util.Collection<C> columns)
          Specify a non-contiguous set of columns to retrieve.
 IndexQuery<K,C> withColumnSlice(ColumnSlice<C> columns)
          Use this when your application caches the column slice.
 
Methods inherited from interface com.netflix.astyanax.Execution
execute, executeAsync
 

Method Detail

setLimit

@Deprecated
IndexQuery<K,C> setLimit(int count)
Deprecated. Use setRowLimit instead

Limit the number of rows in the response

Parameters:
count -

setRowLimit

IndexQuery<K,C> setRowLimit(int count)
Limits the number of rows returned

Parameters:
count -

setStartKey

IndexQuery<K,C> setStartKey(K key)
Parameters:
key -

addExpression

IndexColumnExpression<K,C> addExpression()
Add an expression (EQ, GT, GTE, LT, LTE) to the clause. Expressions are inherently ANDed


addPreparedExpressions

IndexQuery<K,C> addPreparedExpressions(java.util.Collection<PreparedIndexExpression<K,C>> expressions)
Add a set of prepare index expressions.

Parameters:
expressions -

withColumnSlice

IndexQuery<K,C> withColumnSlice(C... columns)
Specify a non-contiguous set of columns to retrieve.

Parameters:
columns -

withColumnSlice

IndexQuery<K,C> withColumnSlice(java.util.Collection<C> columns)
Specify a non-contiguous set of columns to retrieve.

Parameters:
columns -

withColumnSlice

IndexQuery<K,C> withColumnSlice(ColumnSlice<C> columns)
Use this when your application caches the column slice.

Parameters:
slice -

withColumnRange

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)

withColumnRange

IndexQuery<K,C> withColumnRange(java.nio.ByteBuffer startColumn,
                                java.nio.ByteBuffer endColumn,
                                boolean reversed,
                                int count)
Specify a range and provide pre-constructed start and end columns. Use this with Composite columns

Parameters:
startColumn -
endColumn -
reversed -
count -

withColumnRange

IndexQuery<K,C> withColumnRange(ByteBufferRange range)
Specify a range of composite columns. Use this in conjunction with the AnnotatedCompositeSerializer.buildRange().

Parameters:
range -

setIsPaginating

IndexQuery<K,C> setIsPaginating()
Deprecated. autoPaginateRows()


autoPaginateRows

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