|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- C
- public interface ColumnFamilyQuery<K,C>
Top level column family query lets you choose the type of query being performed at the key level. Single key, key range or a key slice.
Method Summary | |
---|---|
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(K... keys)
Query a non-contiguous set of 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 |
Method Detail |
---|
ColumnFamilyQuery<K,C> setConsistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel
-
ColumnFamilyQuery<K,C> withRetryPolicy(RetryPolicy retry)
consistencyLevel
-
ColumnFamilyQuery<K,C> pinToHost(Host host)
host
-
RowQuery<K,C> getKey(K rowKey)
rowKey
-
RowSliceQuery<K,C> getKeyRange(K startKey, K endKey, String startToken, String endToken, int count)
startKey
- endKey
- startToken
- endToken
- count
- Max number of keys to return
RowSliceQuery<K,C> getKeySlice(K... keys)
keys
-
RowSliceQuery<K,C> getKeySlice(Collection<K> keys)
keys
-
AllRowsQuery<K,C> getAllRows()
CqlQuery<K,C> withCql(String cql)
cql
-
IndexQuery<K,C> searchWithIndex()
indexClause
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |