|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.thrift.ThriftKeyspaceImpl
public final class ThriftKeyspaceImpl
Constructor Summary | |
---|---|
ThriftKeyspaceImpl(String ksName,
ConnectionPool<org.apache.cassandra.thrift.Cassandra.Client> pool,
AstyanaxConfiguration config,
KeyspaceTracerFactory tracerFactory)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThriftKeyspaceImpl(String ksName, ConnectionPool<org.apache.cassandra.thrift.Cassandra.Client> pool, AstyanaxConfiguration config, KeyspaceTracerFactory tracerFactory)
Method Detail |
---|
public String getKeyspaceName()
Keyspace
getKeyspaceName
in interface Keyspace
public MutationBatch prepareMutationBatch()
Keyspace
prepareMutationBatch
in interface Keyspace
public List<TokenRange> describeRing() throws ConnectionException
Keyspace
describeRing
in interface Keyspace
ConnectionException
public KeyspaceDefinition describeKeyspace() throws ConnectionException
Keyspace
describeKeyspace
in interface Keyspace
ConnectionException
public <K,C> ColumnFamilyQuery<K,C> prepareQuery(ColumnFamily<K,C> cf)
Keyspace
prepareQuery
in interface Keyspace
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.
public <K,C> ColumnMutation prepareColumnMutation(ColumnFamily<K,C> columnFamily, K rowKey, C column)
Keyspace
prepareColumnMutation
in interface Keyspace
public AstyanaxConfiguration getConfig()
Keyspace
getConfig
in interface Keyspace
public SerializerPackage getSerializerPackage(String cfName, boolean ignoreErrors) throws ConnectionException, UnknownComparatorException
Keyspace
getSerializerPackage
in interface Keyspace
ConnectionException
UnknownComparatorException
public OperationResult<Void> testOperation(Operation<?,?> operation) throws ConnectionException
Keyspace
testOperation
in interface Keyspace
ConnectionException
public OperationResult<Void> testOperation(Operation<?,?> operation, RetryPolicy retry) throws ConnectionException
Keyspace
testOperation
in interface Keyspace
ConnectionException
public <K,C> OperationResult<Void> truncateColumnFamily(ColumnFamily<K,C> columnFamily) throws OperationException, ConnectionException
Keyspace
truncateColumnFamily
in interface Keyspace
OperationException
ConnectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |