com.netflix.astyanax.thrift
Class AbstractRowSliceQueryImpl<K,C>

java.lang.Object
  extended by com.netflix.astyanax.thrift.AbstractRowSliceQueryImpl<K,C>
All Implemented Interfaces:
Execution<Rows<K,C>>, RowSliceQuery<K,C>

public abstract class AbstractRowSliceQueryImpl<K,C>
extends Object
implements RowSliceQuery<K,C>


Field Summary
protected  org.apache.cassandra.thrift.SlicePredicate predicate
           
 
Constructor Summary
AbstractRowSliceQueryImpl(Serializer<C> serializer)
           
 
Method Summary
 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> 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(Collection<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.
 
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

predicate

protected org.apache.cassandra.thrift.SlicePredicate predicate
Constructor Detail

AbstractRowSliceQueryImpl

public AbstractRowSliceQueryImpl(Serializer<C> serializer)
Method Detail

withColumnSlice

public RowSliceQuery<K,C> withColumnSlice(C... columns)
Description copied from interface: RowSliceQuery
Specify a non-contiguous set of columns to retrieve.

Specified by:
withColumnSlice in interface RowSliceQuery<K,C>
Returns:

withColumnSlice

public RowSliceQuery<K,C> withColumnSlice(Collection<C> columns)
Description copied from interface: RowSliceQuery
Specify a non-contiguous set of columns to retrieve.

Specified by:
withColumnSlice in interface RowSliceQuery<K,C>
Returns:

withColumnRange

public RowSliceQuery<K,C> withColumnRange(C startColumn,
                                          C endColumn,
                                          boolean reversed,
                                          int count)
Description copied from interface: RowSliceQuery
Specify a range of columns to return.

Specified by:
withColumnRange in interface RowSliceQuery<K,C>
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

public RowSliceQuery<K,C> withColumnRange(ByteBuffer startColumn,
                                          ByteBuffer endColumn,
                                          boolean reversed,
                                          int count)
Description copied from interface: RowSliceQuery
Specify a range and provide pre-constructed start and end columns. Use this with Composite columns

Specified by:
withColumnRange in interface RowSliceQuery<K,C>
Returns:

withColumnSlice

public RowSliceQuery<K,C> withColumnSlice(ColumnSlice<C> slice)
Description copied from interface: RowSliceQuery
Use this when your application caches the column slice.

Specified by:
withColumnSlice in interface RowSliceQuery<K,C>
Returns:

withColumnRange

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

Specified by:
withColumnRange in interface RowSliceQuery<K,C>
Returns:


Copyright © 2012. All Rights Reserved.