public abstract class

AbstractRowSliceQueryImpl

extends Object
implements RowSliceQuery<K, C>
java.lang.Object
   ↳ com.netflix.astyanax.thrift.AbstractRowSliceQueryImpl<K, C>

Summary

Fields
protected SlicePredicate predicate
Public Constructors
AbstractRowSliceQueryImpl(Serializer<C> serializer)
Public Methods
RowSliceQuery<K, C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
Specify a range of columns to return.
RowSliceQuery<K, C> withColumnRange(ByteBufferRange range)
Specify a range of composite columns.
RowSliceQuery<K, C> withColumnRange(ByteBuffer startColumn, ByteBuffer endColumn, boolean reversed, int count)
Specify a range and provide pre-constructed start and end columns.
RowSliceQuery<K, C> withColumnSlice(Collection<C> columns)
Specify a non-contiguous set of columns to retrieve.
RowSliceQuery<K, C> withColumnSlice(C... columns)
Specify a non-contiguous set of columns to retrieve.
RowSliceQuery<K, C> withColumnSlice(ColumnSlice<C> slice)
Use this when your application caches the column slice.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.Execution
From interface com.netflix.astyanax.query.RowSliceQuery

Fields

protected SlicePredicate predicate

Public Constructors

public AbstractRowSliceQueryImpl (Serializer<C> serializer)

Public Methods

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

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

public RowSliceQuery<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 RowSliceQuery<K, C> withColumnSlice (Collection<C> columns)

Specify a non-contiguous set of columns to retrieve.

public RowSliceQuery<K, C> withColumnSlice (C... columns)

Specify a non-contiguous set of columns to retrieve.

public RowSliceQuery<K, C> withColumnSlice (ColumnSlice<C> slice)

Use this when your application caches the column slice.