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

All Superinterfaces:
Execution<Rows<K,C>>
All Known Implementing Classes:
AbstractIndexQueryImpl

public interface IndexQuery<K,C>
extends 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(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(ByteBuffer startColumn, 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(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 -
Returns:

setRowLimit

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

Parameters:
count -
Returns:

setStartKey

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

Parameters:
key -
Returns:

addExpression

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

Returns:

addPreparedExpressions

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

Parameters:
expressions -
Returns:

withColumnSlice

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

Parameters:
columns -
Returns:

withColumnSlice

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

Parameters:
columns -
Returns:

withColumnSlice

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

Parameters:
slice -
Returns:

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)
Returns:

withColumnRange

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

Parameters:
startColumn -
endColumn -
reversed -
count -
Returns:

withColumnRange

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

Parameters:
range -
Returns:

setIsPaginating

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

Returns:

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

Returns:


Copyright © 2012. All Rights Reserved.