cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdusba...@apache.org
Subject svn commit: r931201 [1/3] - in /cassandra/trunk: interface/ interface/thrift/gen-java/org/apache/cassandra/thrift/ src/java/org/apache/cassandra/thrift/
Date Tue, 06 Apr 2010 16:02:10 GMT
Author: gdusbabek
Date: Tue Apr  6 16:02:10 2010
New Revision: 931201

URL: http://svn.apache.org/viewvc?rev=931201&view=rev
Log:
thrift changes. Patch by Gary Dusbabek, reviewed by Jonthan Ellis. CASSANDRA-827

Added:
    cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java
    cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/KsDef.java
Modified:
    cassandra/trunk/interface/cassandra.thrift
    cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java
    cassandra/trunk/src/java/org/apache/cassandra/thrift/CassandraServer.java

Modified: cassandra/trunk/interface/cassandra.thrift
URL: http://svn.apache.org/viewvc/cassandra/trunk/interface/cassandra.thrift?rev=931201&r1=931200&r2=931201&view=diff
==============================================================================
--- cassandra/trunk/interface/cassandra.thrift (original)
+++ cassandra/trunk/interface/cassandra.thrift Tue Apr  6 16:02:10 2010
@@ -302,6 +302,26 @@ struct AuthenticationRequest {
     1: required map<string, string> credentials,
 }
 
+/* describes a column family. */
+struct CfDef {
+    1: required string table,
+    2: required string name,
+    3: optional string column_type="Standard",
+    4: optional string comparator_type="BytesType",
+    5: optional string subcomparator_type="",
+    6: optional string comment="",
+    7: optional double row_cache_size=0,
+    8: optional double key_cache_size=200000,
+}
+
+/* describes a keyspace. */
+struct KsDef {
+    1: required string name,
+    2: required string strategy_class,
+    3: required i32 replication_factor,
+    4: required string snitch_class,
+    5: required list<CfDef> cf_defs,    
+}
 
 service Cassandra {
   # auth methods
@@ -473,4 +493,22 @@ service Cassandra {
   list<string> describe_splits(1:required string start_token, 
   	                       2:required string end_token,
                                3:required i32 keys_per_split),
+  
+  void system_add_column_family(1:required CfDef cf_def)
+    throws (1:InvalidRequestException ire),
+    
+  void system_drop_column_family(1:required string keyspace, 2:required string column_family)
+    throws (1:InvalidRequestException ire), 
+    
+  void system_rename_column_family(1:required string keyspace, 2:required string old_name,
3:required string new_name)
+    throws (1:InvalidRequestException ire),
+  
+  void system_add_keyspace(1:required KsDef ks_def)
+    throws (1:InvalidRequestException ire),
+  
+  void system_drop_keyspace(1:required string keyspace)
+    throws (1:InvalidRequestException ire),
+    
+  void system_rename_keyspace(1:required string old_name, 2:required string new_name)
+    throws (1:InvalidRequestException ire),
 }



Mime
View raw message