public interface

RowQuery

implements Execution<R>
com.netflix.astyanax.query.RowQuery<K, C>
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract 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.
abstract RowCopier<K, C> copyTo(ColumnFamily<K, C> columnFamily, K rowKey)
Copy the results of the query to another column family
abstract ColumnQuery<C> getColumn(C column)
Specify the path to a single column (either Standard or Super).
abstract ColumnCountQuery getCount()
Returns the number of columns in the response without returning any data@return
abstract RowQuery<K, C> setIsPaginating()
abstract RowQuery<K, C> withColumnRange(C startColumn, C endColumn, boolean reversed, int count)
Specify a range of columns to return.
abstract RowQuery<K, C> withColumnRange(ByteBufferRange range)
Specify a range of composite columns.
abstract RowQuery<K, C> withColumnRange(ByteBuffer startColumn, ByteBuffer endColumn, boolean reversed, int count)
Specify a range and provide pre-constructed start and end columns.
abstract RowQuery<K, C> withColumnSlice(Collection<C> columns)
Specify a non-contiguous set of columns to retrieve.
abstract RowQuery<K, C> withColumnSlice(C... columns)
Specify a non-contiguous set of columns to retrieve.
abstract RowQuery<K, C> withColumnSlice(ColumnSlice<C> columns)
Use this when your application caches the column slice.
[Expand]
Inherited Methods
From interface com.netflix.astyanax.Execution

Public Methods

public abstract 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.

public abstract RowCopier<K, C> copyTo (ColumnFamily<K, C> columnFamily, K rowKey)

Copy the results of the query to another column family

public abstract ColumnQuery<C> getColumn (C column)

Specify the path to a single column (either Standard or Super). Notice that the sub column type and serializer will be used now.

public abstract ColumnCountQuery getCount ()

Returns the number of columns in the response without returning any data@return

public abstract RowQuery<K, C> setIsPaginating ()

public abstract RowQuery<K, C> withColumnRange (C startColumn, C endColumn, boolean reversed, int count)

Specify a range of columns to return. Use this for simple ranges for non-composite column names. For Composite column names use withColumnRange(ByteBufferRange range) and the AnnotatedCompositeSerializer.buildRange()

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

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

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

Specify a non-contiguous set of columns to retrieve.

public abstract RowQuery<K, C> withColumnSlice (C... columns)

Specify a non-contiguous set of columns to retrieve.

public abstract RowQuery<K, C> withColumnSlice (ColumnSlice<C> columns)

Use this when your application caches the column slice.