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

All Superinterfaces:
com.netflix.astyanax.Execution<Rows<K,C>>

public interface RowSliceQuery<K,C>
extends com.netflix.astyanax.Execution<Rows<K,C>>

Interface to narrow down the path and column slices within a query after the keys were seleted using the ColumnFamilyQuery.


Method Summary
 RowSliceColumnCountQuery<K> getColumnCounts()
          Get column counts for the slice or range
 RowSliceQuery<K,C> withColumnRange(java.nio.ByteBuffer startColumn, java.nio.ByteBuffer endColumn, boolean reversed, int count)
          Specify a range and provide pre-constructed start and end columns.
 RowSliceQuery<K,C> withColumnRange(ByteBufferRange range)
          Specify a range of composite columns.
 RowSliceQuery<K,C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
          Specify a range of columns to return.
 RowSliceQuery<K,C> withColumnSlice(C... columns)
          Specify a non-contiguous set of columns to retrieve.
 RowSliceQuery<K,C> withColumnSlice(java.util.Collection<C> columns)
          Specify a non-contiguous set of columns to retrieve.
 RowSliceQuery<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

withColumnSlice

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

Parameters:
columns -
Returns:

withColumnSlice

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

Parameters:
columns -
Returns:

withColumnSlice

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

Parameters:
slice -
Returns:

withColumnRange

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

withColumnRange

RowSliceQuery<K,C> withColumnRange(java.nio.ByteBuffer startColumn,
                                   java.nio.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

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

Parameters:
range -
Returns:

getColumnCounts

RowSliceColumnCountQuery<K> getColumnCounts()
Get column counts for the slice or range

Returns: