|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cluster
Interface for cluster operations. Use the Keyspace interface to perform keyspace query and mutation operations.
Method Summary | |
---|---|
String |
addColumnFamily(ColumnFamilyDefinition def)
Add a column family to an existing keyspace |
String |
addKeyspace(KeyspaceDefinition def)
Add a new keyspace to the cluster. |
String |
describeClusterName()
The cluster name is completely arbitrary |
KeyspaceDefinition |
describeKeyspace(String ksName)
Describe a single keyspace |
List<KeyspaceDefinition> |
describeKeyspaces()
Return details about all keyspaces in the cluster |
String |
describePartitioner()
Describe the partitioner used by the cluster |
Map<String,List<String>> |
describeSchemaVersions()
|
String |
describeSnitch()
Describe the snitch name used on the cluster |
String |
dropColumnFamily(String keyspaceName,
String columnFamilyName)
Delete the column family from the keyspace |
String |
dropKeyspace(String keyspaceName)
Delete a keyspace from the cluster |
AstyanaxConfiguration |
getConfig()
Configuration object for this Cluster |
Keyspace |
getKeyspace(String keyspace)
Return a keyspace client. |
String |
getVersion()
Return version of cassandra running on the cluster |
ColumnDefinition |
makeColumnDefinition()
Make a column definitio to be added to a ColumnFamilyDefinition |
ColumnFamilyDefinition |
makeColumnFamilyDefinition()
Prepare a column family definition. |
KeyspaceDefinition |
makeKeyspaceDefinition()
Prepare a keyspace definition. |
String |
updateColumnFamily(ColumnFamilyDefinition def)
Update an existing column family |
String |
updateKeyspace(KeyspaceDefinition def)
Update a new keyspace in the cluster. |
Method Detail |
---|
String describeClusterName() throws ConnectionException
ConnectionException
String getVersion() throws ConnectionException
ConnectionException
String describeSnitch() throws ConnectionException
ConnectionException
String describePartitioner() throws ConnectionException
ConnectionException
Map<String,List<String>> describeSchemaVersions() throws ConnectionException
ConnectionException
ColumnFamilyDefinition makeColumnFamilyDefinition()
ColumnDefinition makeColumnDefinition()
String dropColumnFamily(String keyspaceName, String columnFamilyName) throws ConnectionException
columnFamilyName
-
OperationException
ConnectionException
String addColumnFamily(ColumnFamilyDefinition def) throws ConnectionException
def
- - Created by calling prepareColumnFamilyDefinition();
ConnectionException
String updateColumnFamily(ColumnFamilyDefinition def) throws ConnectionException
def
- - Created by calling prepareColumnFamilyDefinition();
ConnectionException
KeyspaceDefinition makeKeyspaceDefinition()
List<KeyspaceDefinition> describeKeyspaces() throws ConnectionException
ConnectionException
KeyspaceDefinition describeKeyspace(String ksName) throws ConnectionException
ksName
-
ConnectionException
Keyspace getKeyspace(String keyspace)
String dropKeyspace(String keyspaceName) throws ConnectionException
keyspaceName
-
OperationException
ConnectionException
String addKeyspace(KeyspaceDefinition def) throws ConnectionException
def
-
ConnectionException
String updateKeyspace(KeyspaceDefinition def) throws ConnectionException
def
-
ConnectionException
AstyanaxConfiguration getConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |