|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.thrift.AbstractRowQueryImpl<K,C>
public abstract class AbstractRowQueryImpl<K,C>
Field Summary | |
---|---|
protected boolean |
isPaginating
|
protected boolean |
paginateNoMore
|
protected org.apache.cassandra.thrift.SlicePredicate |
predicate
|
protected Serializer<C> |
serializer
|
Constructor Summary | |
---|---|
AbstractRowQueryImpl(Serializer<C> serializer)
|
Method Summary | |
---|---|
RowQuery<K,C> |
autoPaginate(boolean enabled)
When used in conjunction with a column range this will call subsequent calls to execute() to get the next block of columns. |
RowQuery<K,C> |
setIsPaginating()
|
RowQuery<K,C> |
withColumnRange(ByteBuffer startColumn,
ByteBuffer endColumn,
boolean reversed,
int count)
Specify a range and provide pre-constructed start and end columns. |
RowQuery<K,C> |
withColumnRange(ByteBufferRange range)
Specify a range of composite columns. |
RowQuery<K,C> |
withColumnRange(C startColumn,
C endColumn,
boolean reversed,
int count)
Specify a range of columns to return. |
RowQuery<K,C> |
withColumnSlice(C... columns)
Specify a non-contiguous set of columns to retrieve. |
RowQuery<K,C> |
withColumnSlice(Collection<C> columns)
Specify a non-contiguous set of columns to retrieve. |
RowQuery<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.query.RowQuery |
---|
copyTo, getColumn, getCount |
Methods inherited from interface com.netflix.astyanax.Execution |
---|
execute, executeAsync |
Field Detail |
---|
protected final org.apache.cassandra.thrift.SlicePredicate predicate
protected final Serializer<C> serializer
protected boolean isPaginating
protected boolean paginateNoMore
Constructor Detail |
---|
public AbstractRowQueryImpl(Serializer<C> serializer)
Method Detail |
---|
public RowQuery<K,C> withColumnSlice(C... columns)
RowQuery
withColumnSlice
in interface RowQuery<K,C>
public RowQuery<K,C> withColumnSlice(Collection<C> columns)
RowQuery
withColumnSlice
in interface RowQuery<K,C>
public RowQuery<K,C> withColumnSlice(ColumnSlice<C> slice)
RowQuery
withColumnSlice
in interface RowQuery<K,C>
public RowQuery<K,C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
RowQuery
withColumnRange
in interface RowQuery<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 RowQuery<K,C> withColumnRange(ByteBuffer startColumn, ByteBuffer endColumn, boolean reversed, int count)
RowQuery
withColumnRange
in interface RowQuery<K,C>
public RowQuery<K,C> setIsPaginating()
setIsPaginating
in interface RowQuery<K,C>
public RowQuery<K,C> autoPaginate(boolean enabled)
RowQuery
autoPaginate
in interface RowQuery<K,C>
public RowQuery<K,C> withColumnRange(ByteBufferRange range)
RowQuery
withColumnRange
in interface RowQuery<K,C>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |