public interface

IndexQuery

implements Execution<R>
com.netflix.astyanax.query.IndexQuery<K, C>
Known Indirect Subclasses

Summary

Public Methods
abstract IndexColumnExpression<K, C> addExpression()
Add an expression (EQ, GT, GTE, LT, LTE) to the clause.
abstract IndexQuery<K, C> addPreparedExpressions(Collection<PreparedIndexExpression<K, C>> expressions)
Add a set of prepare index expressions.
abstract 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
abstract IndexQuery<K, C> setIsPaginating()
This method is deprecated. autoPaginateRows()
abstract IndexQuery<K, C> setLimit(int count)
This method is deprecated. Use setRowLimit instead
abstract IndexQuery<K, C> setRowLimit(int count)
Limits the number of rows returned
abstract IndexQuery<K, C> setStartKey(K key)
?
abstract IndexQuery<K, C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
Specify a range of columns to return.
abstract IndexQuery<K, C> withColumnRange(ByteBufferRange range)
Specify a range of composite columns.
abstract IndexQuery<K, C> withColumnRange(ByteBuffer startColumn, ByteBuffer endColumn, boolean reversed, int count)
Specify a range and provide pre-constructed start and end columns.
abstract IndexQuery<K, C> withColumnSlice(C... columns)
Specify a non-contiguous set of columns to retrieve.
abstract IndexQuery<K, C> withColumnSlice(Collection<C> columns)
Specify a non-contiguous set of columns to retrieve.
abstract IndexQuery<K, C> withColumnSlice(ColumnSlice<C> columns)
Use this when your application caches the column slice.
[Expand]
Inherited Methods
From interface com.netflix.astyanax.Execution

Public Methods

public abstract IndexColumnExpression<K, C> addExpression ()

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

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

Add a set of prepare index expressions.

public abstract 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 abstract IndexQuery<K, C> setIsPaginating ()

This method is deprecated.
autoPaginateRows()

@return

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

This method is deprecated.
Use setRowLimit instead

Limit the number of rows in the response@return

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

Limits the number of rows returned

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

?

public abstract 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 abstract IndexQuery<K, C> withColumnRange (ByteBufferRange range)

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

public abstract 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 abstract IndexQuery<K, C> withColumnSlice (C... columns)

Specify a non-contiguous set of columns to retrieve.

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

Specify a non-contiguous set of columns to retrieve.

public abstract IndexQuery<K, C> withColumnSlice (ColumnSlice<C> columns)

Use this when your application caches the column slice.