cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1087042 - in /cassandra/trunk/drivers: py/cql/cassandra/constants.py py/cql/cassandra/ttypes.py txpy/txcql/cassandra/constants.py txpy/txcql/cassandra/ttypes.py
Date Wed, 30 Mar 2011 19:02:48 GMT
Author: eevans
Date: Wed Mar 30 19:02:48 2011
New Revision: 1087042

URL: http://svn.apache.org/viewvc?rev=1087042&view=rev
Log:
update generated code in python drivers

Patch by eevans

Modified:
    cassandra/trunk/drivers/py/cql/cassandra/constants.py
    cassandra/trunk/drivers/py/cql/cassandra/ttypes.py
    cassandra/trunk/drivers/txpy/txcql/cassandra/constants.py
    cassandra/trunk/drivers/txpy/txcql/cassandra/ttypes.py

Modified: cassandra/trunk/drivers/py/cql/cassandra/constants.py
URL: http://svn.apache.org/viewvc/cassandra/trunk/drivers/py/cql/cassandra/constants.py?rev=1087042&r1=1087041&r2=1087042&view=diff
==============================================================================
--- cassandra/trunk/drivers/py/cql/cassandra/constants.py (original)
+++ cassandra/trunk/drivers/py/cql/cassandra/constants.py Wed Mar 30 19:02:48 2011
@@ -7,4 +7,4 @@
 from thrift.Thrift import *
 from ttypes import *
 
-VERSION = "19.4.0"
+VERSION = "19.5.0"

Modified: cassandra/trunk/drivers/py/cql/cassandra/ttypes.py
URL: http://svn.apache.org/viewvc/cassandra/trunk/drivers/py/cql/cassandra/ttypes.py?rev=1087042&r1=1087041&r2=1087042&view=diff
==============================================================================
--- cassandra/trunk/drivers/py/cql/cassandra/ttypes.py (original)
+++ cassandra/trunk/drivers/py/cql/cassandra/ttypes.py Wed Mar 30 19:02:48 2011
@@ -2510,6 +2510,7 @@ class CfDef:
    - memtable_operations_in_millions
    - replicate_on_write
    - merge_shards_chance
+   - key_validation_class
   """
 
   thrift_spec = (
@@ -2539,9 +2540,10 @@ class CfDef:
     (23, TType.DOUBLE, 'memtable_operations_in_millions', None, None, ), # 23
     (24, TType.BOOL, 'replicate_on_write', None, False, ), # 24
     (25, TType.DOUBLE, 'merge_shards_chance', None, None, ), # 25
+    (26, TType.STRING, 'key_validation_class', None, None, ), # 26
   )
 
-  def __init__(self, keyspace=None, name=None, column_type=thrift_spec[3][4], comparator_type=thrift_spec[5][4],
subcomparator_type=None, comment=None, row_cache_size=thrift_spec[9][4], key_cache_size=thrift_spec[11][4],
read_repair_chance=thrift_spec[12][4], column_metadata=None, gc_grace_seconds=None, default_validation_class=None,
id=None, min_compaction_threshold=None, max_compaction_threshold=None, row_cache_save_period_in_seconds=None,
key_cache_save_period_in_seconds=None, memtable_flush_after_mins=None, memtable_throughput_in_mb=None,
memtable_operations_in_millions=None, replicate_on_write=thrift_spec[24][4], merge_shards_chance=None,):
+  def __init__(self, keyspace=None, name=None, column_type=thrift_spec[3][4], comparator_type=thrift_spec[5][4],
subcomparator_type=None, comment=None, row_cache_size=thrift_spec[9][4], key_cache_size=thrift_spec[11][4],
read_repair_chance=thrift_spec[12][4], column_metadata=None, gc_grace_seconds=None, default_validation_class=None,
id=None, min_compaction_threshold=None, max_compaction_threshold=None, row_cache_save_period_in_seconds=None,
key_cache_save_period_in_seconds=None, memtable_flush_after_mins=None, memtable_throughput_in_mb=None,
memtable_operations_in_millions=None, replicate_on_write=thrift_spec[24][4], merge_shards_chance=None,
key_validation_class=None,):
     self.keyspace = keyspace
     self.name = name
     self.column_type = column_type
@@ -2564,6 +2566,7 @@ class CfDef:
     self.memtable_operations_in_millions = memtable_operations_in_millions
     self.replicate_on_write = replicate_on_write
     self.merge_shards_chance = merge_shards_chance
+    self.key_validation_class = key_validation_class
 
   def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans,
TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
@@ -2690,6 +2693,11 @@ class CfDef:
           self.merge_shards_chance = iprot.readDouble();
         else:
           iprot.skip(ftype)
+      elif fid == 26:
+        if ftype == TType.STRING:
+          self.key_validation_class = iprot.readString();
+        else:
+          iprot.skip(ftype)
       else:
         iprot.skip(ftype)
       iprot.readFieldEnd()
@@ -2791,6 +2799,10 @@ class CfDef:
       oprot.writeFieldBegin('merge_shards_chance', TType.DOUBLE, 25)
       oprot.writeDouble(self.merge_shards_chance)
       oprot.writeFieldEnd()
+    if self.key_validation_class != None:
+      oprot.writeFieldBegin('key_validation_class', TType.STRING, 26)
+      oprot.writeString(self.key_validation_class)
+      oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
     def validate(self):

Modified: cassandra/trunk/drivers/txpy/txcql/cassandra/constants.py
URL: http://svn.apache.org/viewvc/cassandra/trunk/drivers/txpy/txcql/cassandra/constants.py?rev=1087042&r1=1087041&r2=1087042&view=diff
==============================================================================
--- cassandra/trunk/drivers/txpy/txcql/cassandra/constants.py (original)
+++ cassandra/trunk/drivers/txpy/txcql/cassandra/constants.py Wed Mar 30 19:02:48 2011
@@ -7,4 +7,4 @@
 from thrift.Thrift import *
 from ttypes import *
 
-VERSION = "19.4.0"
+VERSION = "19.5.0"

Modified: cassandra/trunk/drivers/txpy/txcql/cassandra/ttypes.py
URL: http://svn.apache.org/viewvc/cassandra/trunk/drivers/txpy/txcql/cassandra/ttypes.py?rev=1087042&r1=1087041&r2=1087042&view=diff
==============================================================================
--- cassandra/trunk/drivers/txpy/txcql/cassandra/ttypes.py (original)
+++ cassandra/trunk/drivers/txpy/txcql/cassandra/ttypes.py Wed Mar 30 19:02:48 2011
@@ -2510,6 +2510,7 @@ class CfDef:
    - memtable_operations_in_millions
    - replicate_on_write
    - merge_shards_chance
+   - key_validation_class
   """
 
   thrift_spec = (
@@ -2539,9 +2540,10 @@ class CfDef:
     (23, TType.DOUBLE, 'memtable_operations_in_millions', None, None, ), # 23
     (24, TType.BOOL, 'replicate_on_write', None, False, ), # 24
     (25, TType.DOUBLE, 'merge_shards_chance', None, None, ), # 25
+    (26, TType.STRING, 'key_validation_class', None, None, ), # 26
   )
 
-  def __init__(self, keyspace=None, name=None, column_type=thrift_spec[3][4], comparator_type=thrift_spec[5][4],
subcomparator_type=None, comment=None, row_cache_size=thrift_spec[9][4], key_cache_size=thrift_spec[11][4],
read_repair_chance=thrift_spec[12][4], column_metadata=None, gc_grace_seconds=None, default_validation_class=None,
id=None, min_compaction_threshold=None, max_compaction_threshold=None, row_cache_save_period_in_seconds=None,
key_cache_save_period_in_seconds=None, memtable_flush_after_mins=None, memtable_throughput_in_mb=None,
memtable_operations_in_millions=None, replicate_on_write=thrift_spec[24][4], merge_shards_chance=None,):
+  def __init__(self, keyspace=None, name=None, column_type=thrift_spec[3][4], comparator_type=thrift_spec[5][4],
subcomparator_type=None, comment=None, row_cache_size=thrift_spec[9][4], key_cache_size=thrift_spec[11][4],
read_repair_chance=thrift_spec[12][4], column_metadata=None, gc_grace_seconds=None, default_validation_class=None,
id=None, min_compaction_threshold=None, max_compaction_threshold=None, row_cache_save_period_in_seconds=None,
key_cache_save_period_in_seconds=None, memtable_flush_after_mins=None, memtable_throughput_in_mb=None,
memtable_operations_in_millions=None, replicate_on_write=thrift_spec[24][4], merge_shards_chance=None,
key_validation_class=None,):
     self.keyspace = keyspace
     self.name = name
     self.column_type = column_type
@@ -2564,6 +2566,7 @@ class CfDef:
     self.memtable_operations_in_millions = memtable_operations_in_millions
     self.replicate_on_write = replicate_on_write
     self.merge_shards_chance = merge_shards_chance
+    self.key_validation_class = key_validation_class
 
   def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans,
TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
@@ -2690,6 +2693,11 @@ class CfDef:
           self.merge_shards_chance = iprot.readDouble();
         else:
           iprot.skip(ftype)
+      elif fid == 26:
+        if ftype == TType.STRING:
+          self.key_validation_class = iprot.readString();
+        else:
+          iprot.skip(ftype)
       else:
         iprot.skip(ftype)
       iprot.readFieldEnd()
@@ -2791,6 +2799,10 @@ class CfDef:
       oprot.writeFieldBegin('merge_shards_chance', TType.DOUBLE, 25)
       oprot.writeDouble(self.merge_shards_chance)
       oprot.writeFieldEnd()
+    if self.key_validation_class != None:
+      oprot.writeFieldBegin('key_validation_class', TType.STRING, 26)
+      oprot.writeString(self.key_validation_class)
+      oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
     def validate(self):



Mime
View raw message