java.lang.Object |
↳ |
com.netflix.astyanax.thrift.ThriftColumnFamilyQueryImpl<K, C> |
Class Overview
Implementation of all column family queries using the thrift API.
Summary
Public Methods |
AllRowsQuery<K, C>
|
getAllRows()
Query to get an iterator to all rows in the column family
|
RowQuery<K, C>
|
getKey(K rowKey)
Query a single key
|
RowSliceQuery<K, C>
|
getKeyRange(K startKey, K endKey, String startToken, String endToken, int count)
Query a range of keys.
|
RowSliceQuery<K, C>
|
getKeySlice(Collection<K> keys)
Query a non-contiguous set of keys.
|
RowSliceQuery<K, C>
|
getKeySlice(Iterable<K> keys)
Query a non-contiguous set of keys.
|
RowSliceQuery<K, C>
|
getKeySlice(K[] keys)
|
ColumnFamilyQuery<K, C>
|
pinToHost(Host host)
Run the query on the specified host
|
IndexQuery<K, C>
|
searchWithIndex()
Search for keys matching the provided index clause
|
ColumnFamilyQuery<K, C>
|
setConsistencyLevel(ConsistencyLevel consistencyLevel)
Set the consistency level for this operations.
|
CqlQuery<K, C>
|
withCql(String cql)
Prepare a CQL Query
|
ColumnFamilyQuery<K, C>
|
withRetryPolicy(RetryPolicy retry)
Set the retry policy to use instead of the default
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.netflix.astyanax.query.ColumnFamilyQuery
abstract
AllRowsQuery<K, C>
|
getAllRows()
Query to get an iterator to all rows in the column family
|
abstract
RowQuery<K, C>
|
getKey(K rowKey)
Query a single key
|
abstract
RowSliceQuery<K, C>
|
getKeyRange(K startKey, K endKey, String startToken, String endToken, int count)
Query a range of keys.
|
abstract
RowSliceQuery<K, C>
|
getKeySlice(K... keys)
Query a non-contiguous set of keys.
|
abstract
RowSliceQuery<K, C>
|
getKeySlice(Collection<K> keys)
Query a non-contiguous set of keys.
|
abstract
RowSliceQuery<K, C>
|
getKeySlice(Iterable<K> keys)
Query a non-contiguous set of keys.
|
abstract
ColumnFamilyQuery<K, C>
|
pinToHost(Host host)
Run the query on the specified host
|
abstract
IndexQuery<K, C>
|
searchWithIndex()
Search for keys matching the provided index clause
|
abstract
ColumnFamilyQuery<K, C>
|
setConsistencyLevel(ConsistencyLevel consistencyLevel)
Set the consistency level for this operations.
|
abstract
CqlQuery<K, C>
|
withCql(String cql)
Prepare a CQL Query
|
abstract
ColumnFamilyQuery<K, C>
|
withRetryPolicy(RetryPolicy retry)
Set the retry policy to use instead of the default
|
|
Public Constructors
Public Methods
public
AllRowsQuery<K, C>
getAllRows
()
Query to get an iterator to all rows in the column family
public
RowSliceQuery<K, C>
getKeyRange
(K startKey, K endKey, String startToken, String endToken, int count)
Query a range of keys. startKey and endKey cannot not be used with the
RandomPartitioner.
Parameters
count
| Max number of keys to return |
Query a non-contiguous set of keys.
Query a non-contiguous set of keys.
Run the query on the specified host
public
IndexQuery<K, C>
searchWithIndex
()
Search for keys matching the provided index clause
Set the consistency level for this operations.
Set the retry policy to use instead of the default