|
|||||||||
| 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 | |
|---|---|
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
addColumnFamily(ColumnFamilyDefinition def)
Add a column family to an existing keyspace |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
addKeyspace(KeyspaceDefinition def)
Add a new keyspace to the cluster. |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
createColumnFamily(java.util.Map<java.lang.String,java.lang.Object> options)
Create a column family. |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
createColumnFamily(java.util.Properties props)
Create a column family. |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
createKeyspace(java.util.Map<java.lang.String,java.lang.Object> options)
Create the keyspace in cassandra. |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
createKeyspace(java.util.Properties props)
Create the keyspace in cassandra. |
java.lang.String |
describeClusterName()
The cluster name is completely arbitrary |
KeyspaceDefinition |
describeKeyspace(java.lang.String ksName)
Describe a single keyspace |
java.util.List<KeyspaceDefinition> |
describeKeyspaces()
Return details about all keyspaces in the cluster |
java.lang.String |
describePartitioner()
Describe the partitioner used by the cluster |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
describeSchemaVersions()
For each schema version present in the cluster, returns a list of nodes at that version. |
java.lang.String |
describeSnitch()
Describe the snitch name used on the cluster |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
dropColumnFamily(java.lang.String keyspaceName,
java.lang.String columnFamilyName)
Delete the column family from the keyspace |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
dropKeyspace(java.lang.String keyspaceName)
Delete a keyspace from the cluster |
java.util.Properties |
getAllKeyspaceProperties()
Return all the keyspace definition as properties |
java.util.Properties |
getColumnFamilyProperties(java.lang.String keyspace,
java.lang.String keyspaces)
Return the |
AstyanaxConfiguration |
getConfig()
Configuration object for this Cluster |
Keyspace |
getKeyspace(java.lang.String keyspace)
Return a keyspace client. |
java.util.Properties |
getKeyspaceProperties(java.lang.String keyspace)
Return the keyspace definition as a properties |
java.lang.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. |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
updateColumnFamily(ColumnFamilyDefinition def)
Update an existing column family |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
updateColumnFamily(java.util.Map<java.lang.String,java.lang.Object> options)
Update the column family in cassandra |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
updateColumnFamily(java.util.Properties props)
Update the column family in cassandra |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
updateKeyspace(KeyspaceDefinition def)
Update a new keyspace in the cluster. |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
updateKeyspace(java.util.Map<java.lang.String,java.lang.Object> options)
Update the keyspace in cassandra. |
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> |
updateKeyspace(java.util.Properties props)
Update the keyspace in cassandra. |
| Method Detail |
|---|
java.lang.String describeClusterName()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
java.lang.String getVersion()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
java.lang.String describeSnitch()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
java.lang.String describePartitioner()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
java.util.Map<java.lang.String,java.util.List<java.lang.String>> describeSchemaVersions()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionExceptionColumnFamilyDefinition makeColumnFamilyDefinition()
ColumnDefinition makeColumnDefinition()
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> dropColumnFamily(java.lang.String keyspaceName,
java.lang.String columnFamilyName)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
columnFamilyName - To delete
com.netflix.astyanax.connectionpool.exceptions.OperationException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> addColumnFamily(ColumnFamilyDefinition def)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
def - - Created by calling makeColumnFamilyDefinition();
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> updateColumnFamily(ColumnFamilyDefinition def)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
def - - Created by calling makeColumnFamilyDefinition();
com.netflix.astyanax.connectionpool.exceptions.ConnectionExceptionKeyspaceDefinition makeKeyspaceDefinition()
java.util.Properties getAllKeyspaceProperties()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
keyspace -
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
java.util.Properties getKeyspaceProperties(java.lang.String keyspace)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
java.util.Properties getColumnFamilyProperties(java.lang.String keyspace,
java.lang.String keyspaces)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
java.util.List<KeyspaceDefinition> describeKeyspaces()
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
KeyspaceDefinition describeKeyspace(java.lang.String ksName)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
ksName - - Keyspace name
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
Keyspace getKeyspace(java.lang.String keyspace)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> dropKeyspace(java.lang.String keyspaceName)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
keyspaceName - - Keyspace to drop
com.netflix.astyanax.connectionpool.exceptions.OperationException
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> addKeyspace(KeyspaceDefinition def)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
def -
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> updateKeyspace(KeyspaceDefinition def)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
def -
com.netflix.astyanax.connectionpool.exceptions.ConnectionExceptionAstyanaxConfiguration getConfig()
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> createColumnFamily(java.util.Map<java.lang.String,java.lang.Object> options)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> createColumnFamily(java.util.Properties props)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> updateColumnFamily(java.util.Map<java.lang.String,java.lang.Object> options)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> updateColumnFamily(java.util.Properties props)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> createKeyspace(java.util.Map<java.lang.String,java.lang.Object> options)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> createKeyspace(java.util.Properties props)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> updateKeyspace(java.util.Map<java.lang.String,java.lang.Object> options)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
com.netflix.astyanax.connectionpool.OperationResult<SchemaChangeResult> updateKeyspace(java.util.Properties props)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
options - - For list of options see http://www.datastax.com/docs/1.0/configuration/storage_configuration
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||