|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.thrift.AbstractIndexQueryImpl<K,C>
public abstract class AbstractIndexQueryImpl<K,C>
Field Summary | |
---|---|
protected ColumnFamily<K,C> |
columnFamily
|
protected boolean |
firstPage
|
protected org.apache.cassandra.thrift.IndexClause |
indexClause
|
protected boolean |
isPaginating
|
protected boolean |
paginateNoMore
|
protected org.apache.cassandra.thrift.SlicePredicate |
predicate
|
Constructor Summary | |
---|---|
AbstractIndexQueryImpl(ColumnFamily<K,C> columnFamily)
|
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()
|
IndexQuery<K,C> |
setLimit(int count)
Limit the number of rows in the response |
protected void |
setNextStartKey(ByteBuffer byteBuffer)
|
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> slice)
Use this when your application caches the column slice. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.netflix.astyanax.Execution |
---|
execute, executeAsync |
Field Detail |
---|
protected final org.apache.cassandra.thrift.IndexClause indexClause
protected org.apache.cassandra.thrift.SlicePredicate predicate
protected boolean isPaginating
protected boolean paginateNoMore
protected boolean firstPage
protected ColumnFamily<K,C> columnFamily
Constructor Detail |
---|
public AbstractIndexQueryImpl(ColumnFamily<K,C> columnFamily)
Method Detail |
---|
public IndexQuery<K,C> withColumnSlice(C... columns)
IndexQuery
withColumnSlice
in interface IndexQuery<K,C>
public IndexQuery<K,C> withColumnSlice(Collection<C> columns)
IndexQuery
withColumnSlice
in interface IndexQuery<K,C>
public IndexQuery<K,C> withColumnSlice(ColumnSlice<C> slice)
IndexQuery
withColumnSlice
in interface IndexQuery<K,C>
public IndexQuery<K,C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
IndexQuery
withColumnRange
in interface IndexQuery<K,C>
startColumn
- First column in the rangeendColumn
- Last column in the rangereversed
- 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)
IndexQuery
withColumnRange
in interface IndexQuery<K,C>
public IndexQuery<K,C> withColumnRange(ByteBuffer startColumn, ByteBuffer endColumn, boolean reversed, int count)
IndexQuery
withColumnRange
in interface IndexQuery<K,C>
public IndexQuery<K,C> setLimit(int count)
IndexQuery
setLimit
in interface IndexQuery<K,C>
public IndexQuery<K,C> setRowLimit(int count)
IndexQuery
setRowLimit
in interface IndexQuery<K,C>
public IndexQuery<K,C> setStartKey(K key)
IndexQuery
setStartKey
in interface IndexQuery<K,C>
protected void setNextStartKey(ByteBuffer byteBuffer)
public IndexQuery<K,C> addPreparedExpressions(Collection<PreparedIndexExpression<K,C>> expressions)
IndexQuery
addPreparedExpressions
in interface IndexQuery<K,C>
public IndexColumnExpression<K,C> addExpression()
IndexQuery
addExpression
in interface IndexQuery<K,C>
public IndexQuery<K,C> setIsPaginating()
setIsPaginating
in interface IndexQuery<K,C>
public IndexQuery<K,C> autoPaginateRows(boolean autoPaginate)
IndexQuery
autoPaginateRows
in interface IndexQuery<K,C>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |