|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Keyspace
Interface providing access to mutate and query columns from a cassandra keyspace.
Method Summary | ||
---|---|---|
KeyspaceDefinition |
describeKeyspace()
Return a complete description of the keyspace and its column families |
|
List<TokenRange> |
describeRing()
Get a list of all tokens and their endpoints |
|
AstyanaxConfiguration |
getConfig()
Return the configuration object used to set up this keyspace |
|
String |
getKeyspaceName()
Returns keyspace name |
|
SerializerPackage |
getSerializerPackage(String cfName,
boolean ignoreErrors)
Return the serializer package for a specific column family. |
|
|
prepareColumnMutation(ColumnFamily<K,C> columnFamily,
K rowKey,
C column)
Mutation for a single column |
|
MutationBatch |
prepareMutationBatch()
Prepare a batch mutation object. |
|
|
prepareQuery(ColumnFamily<K,C> cf)
Starting point for constructing a query. |
|
OperationResult<Void> |
testOperation(Operation<?,?> operation)
This method is used for testing purposes only. |
|
OperationResult<Void> |
testOperation(Operation<?,?> operation,
RetryPolicy retry)
This method is used for testing purposes only. |
|
|
truncateColumnFamily(ColumnFamily<K,C> columnFamily)
Delete all rows in a column family |
Method Detail |
---|
AstyanaxConfiguration getConfig()
String getKeyspaceName()
List<TokenRange> describeRing() throws ConnectionException
ConnectionException
KeyspaceDefinition describeKeyspace() throws ConnectionException
ConnectionException
SerializerPackage getSerializerPackage(String cfName, boolean ignoreErrors) throws ConnectionException, UnknownComparatorException
columnFamily
- ignoreErrors
-
ConnectionException
UnknownComparatorException
MutationBatch prepareMutationBatch()
ConnectionException
<K,C> ColumnFamilyQuery<K,C> prepareQuery(ColumnFamily<K,C> cf)
K
- C
- cf
- Column family to be used for the query. The key and column
serializers in the ColumnFamily are automatically used while
constructing the query and the response.
<K,C> ColumnMutation prepareColumnMutation(ColumnFamily<K,C> columnFamily, K rowKey, C column)
K
- C
- columnFamily
-
<K,C> OperationResult<Void> truncateColumnFamily(ColumnFamily<K,C> columnFamily) throws OperationException, ConnectionException
K
- C
- columnFamily
-
ConnectionException
OperationException
OperationResult<Void> testOperation(Operation<?,?> operation) throws ConnectionException
operation
-
ConnectionException
OperationResult<Void> testOperation(Operation<?,?> operation, RetryPolicy retry) throws ConnectionException
operation
-
ConnectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |