cassandra 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +2 -0
- data/Manifest +18 -4
- data/README.rdoc +14 -2
- data/Rakefile +8 -4
- data/cassandra.gemspec +9 -9
- data/conf/cassandra.yaml +113 -0
- data/conf/storage-conf.xml +2 -1
- data/lib/cassandra.rb +22 -5
- data/lib/cassandra/0.6.rb +7 -0
- data/lib/cassandra/0.6/cassandra.rb +63 -0
- data/lib/cassandra/0.6/columns.rb +35 -0
- data/lib/cassandra/{protocol.rb → 0.6/protocol.rb} +2 -2
- data/lib/cassandra/0.7.rb +7 -0
- data/lib/cassandra/0.7/cassandra.rb +195 -0
- data/lib/cassandra/0.7/column_family.rb +3 -0
- data/lib/cassandra/0.7/columns.rb +59 -0
- data/lib/cassandra/0.7/keyspace.rb +3 -0
- data/lib/cassandra/0.7/protocol.rb +95 -0
- data/lib/cassandra/cassandra.rb +35 -72
- data/lib/cassandra/columns.rb +7 -35
- data/lib/cassandra/debug.rb +2 -0
- data/lib/cassandra/ordered_hash.rb +66 -7
- data/test/cassandra_test.rb +60 -4
- data/test/ordered_hash_test.rb +182 -3
- data/vendor/{gen-rb → 0.6/gen-rb}/cassandra.rb +85 -82
- data/vendor/{gen-rb → 0.6/gen-rb}/cassandra_constants.rb +0 -0
- data/vendor/{gen-rb → 0.6/gen-rb}/cassandra_types.rb +48 -45
- data/vendor/0.7/gen-rb/cassandra.rb +1936 -0
- data/vendor/0.7/gen-rb/cassandra_constants.rb +12 -0
- data/vendor/0.7/gen-rb/cassandra_types.rb +679 -0
- metadata +48 -12
@@ -594,11 +594,10 @@ require 'cassandra_types'
|
|
594
594
|
# HELPER FUNCTIONS AND STRUCTURES
|
595
595
|
|
596
596
|
class Login_args
|
597
|
-
include ::Thrift::Struct
|
597
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
598
598
|
KEYSPACE = 1
|
599
599
|
AUTH_REQUEST = 2
|
600
600
|
|
601
|
-
::Thrift::Struct.field_accessor self, :keyspace, :auth_request
|
602
601
|
FIELDS = {
|
603
602
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
604
603
|
AUTH_REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'auth_request', :class => CassandraThrift::AuthenticationRequest}
|
@@ -611,14 +610,14 @@ require 'cassandra_types'
|
|
611
610
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field auth_request is unset!') unless @auth_request
|
612
611
|
end
|
613
612
|
|
613
|
+
::Thrift::Struct.generate_accessors self
|
614
614
|
end
|
615
615
|
|
616
616
|
class Login_result
|
617
|
-
include ::Thrift::Struct
|
617
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
618
618
|
AUTHNX = 1
|
619
619
|
AUTHZX = 2
|
620
620
|
|
621
|
-
::Thrift::Struct.field_accessor self, :authnx, :authzx
|
622
621
|
FIELDS = {
|
623
622
|
AUTHNX => {:type => ::Thrift::Types::STRUCT, :name => 'authnx', :class => CassandraThrift::AuthenticationException},
|
624
623
|
AUTHZX => {:type => ::Thrift::Types::STRUCT, :name => 'authzx', :class => CassandraThrift::AuthorizationException}
|
@@ -629,16 +628,16 @@ require 'cassandra_types'
|
|
629
628
|
def validate
|
630
629
|
end
|
631
630
|
|
631
|
+
::Thrift::Struct.generate_accessors self
|
632
632
|
end
|
633
633
|
|
634
634
|
class Get_args
|
635
|
-
include ::Thrift::Struct
|
635
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
636
636
|
KEYSPACE = 1
|
637
637
|
KEY = 2
|
638
638
|
COLUMN_PATH = 3
|
639
639
|
CONSISTENCY_LEVEL = 4
|
640
640
|
|
641
|
-
::Thrift::Struct.field_accessor self, :keyspace, :key, :column_path, :consistency_level
|
642
641
|
FIELDS = {
|
643
642
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
644
643
|
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
@@ -658,17 +657,17 @@ require 'cassandra_types'
|
|
658
657
|
end
|
659
658
|
end
|
660
659
|
|
660
|
+
::Thrift::Struct.generate_accessors self
|
661
661
|
end
|
662
662
|
|
663
663
|
class Get_result
|
664
|
-
include ::Thrift::Struct
|
664
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
665
665
|
SUCCESS = 0
|
666
666
|
IRE = 1
|
667
667
|
NFE = 2
|
668
668
|
UE = 3
|
669
669
|
TE = 4
|
670
670
|
|
671
|
-
::Thrift::Struct.field_accessor self, :success, :ire, :nfe, :ue, :te
|
672
671
|
FIELDS = {
|
673
672
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::ColumnOrSuperColumn},
|
674
673
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
@@ -682,17 +681,17 @@ require 'cassandra_types'
|
|
682
681
|
def validate
|
683
682
|
end
|
684
683
|
|
684
|
+
::Thrift::Struct.generate_accessors self
|
685
685
|
end
|
686
686
|
|
687
687
|
class Get_slice_args
|
688
|
-
include ::Thrift::Struct
|
688
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
689
689
|
KEYSPACE = 1
|
690
690
|
KEY = 2
|
691
691
|
COLUMN_PARENT = 3
|
692
692
|
PREDICATE = 4
|
693
693
|
CONSISTENCY_LEVEL = 5
|
694
694
|
|
695
|
-
::Thrift::Struct.field_accessor self, :keyspace, :key, :column_parent, :predicate, :consistency_level
|
696
695
|
FIELDS = {
|
697
696
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
698
697
|
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
@@ -714,16 +713,16 @@ require 'cassandra_types'
|
|
714
713
|
end
|
715
714
|
end
|
716
715
|
|
716
|
+
::Thrift::Struct.generate_accessors self
|
717
717
|
end
|
718
718
|
|
719
719
|
class Get_slice_result
|
720
|
-
include ::Thrift::Struct
|
720
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
721
721
|
SUCCESS = 0
|
722
722
|
IRE = 1
|
723
723
|
UE = 2
|
724
724
|
TE = 3
|
725
725
|
|
726
|
-
::Thrift::Struct.field_accessor self, :success, :ire, :ue, :te
|
727
726
|
FIELDS = {
|
728
727
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}},
|
729
728
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
@@ -736,16 +735,16 @@ require 'cassandra_types'
|
|
736
735
|
def validate
|
737
736
|
end
|
738
737
|
|
738
|
+
::Thrift::Struct.generate_accessors self
|
739
739
|
end
|
740
740
|
|
741
741
|
class Multiget_args
|
742
|
-
include ::Thrift::Struct
|
742
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
743
743
|
KEYSPACE = 1
|
744
744
|
KEYS = 2
|
745
745
|
COLUMN_PATH = 3
|
746
746
|
CONSISTENCY_LEVEL = 4
|
747
747
|
|
748
|
-
::Thrift::Struct.field_accessor self, :keyspace, :keys, :column_path, :consistency_level
|
749
748
|
FIELDS = {
|
750
749
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
751
750
|
KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING}},
|
@@ -765,16 +764,16 @@ require 'cassandra_types'
|
|
765
764
|
end
|
766
765
|
end
|
767
766
|
|
767
|
+
::Thrift::Struct.generate_accessors self
|
768
768
|
end
|
769
769
|
|
770
770
|
class Multiget_result
|
771
|
-
include ::Thrift::Struct
|
771
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
772
772
|
SUCCESS = 0
|
773
773
|
IRE = 1
|
774
774
|
UE = 2
|
775
775
|
TE = 3
|
776
776
|
|
777
|
-
::Thrift::Struct.field_accessor self, :success, :ire, :ue, :te
|
778
777
|
FIELDS = {
|
779
778
|
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}},
|
780
779
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
@@ -787,17 +786,17 @@ require 'cassandra_types'
|
|
787
786
|
def validate
|
788
787
|
end
|
789
788
|
|
789
|
+
::Thrift::Struct.generate_accessors self
|
790
790
|
end
|
791
791
|
|
792
792
|
class Multiget_slice_args
|
793
|
-
include ::Thrift::Struct
|
793
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
794
794
|
KEYSPACE = 1
|
795
795
|
KEYS = 2
|
796
796
|
COLUMN_PARENT = 3
|
797
797
|
PREDICATE = 4
|
798
798
|
CONSISTENCY_LEVEL = 5
|
799
799
|
|
800
|
-
::Thrift::Struct.field_accessor self, :keyspace, :keys, :column_parent, :predicate, :consistency_level
|
801
800
|
FIELDS = {
|
802
801
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
803
802
|
KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING}},
|
@@ -819,16 +818,16 @@ require 'cassandra_types'
|
|
819
818
|
end
|
820
819
|
end
|
821
820
|
|
821
|
+
::Thrift::Struct.generate_accessors self
|
822
822
|
end
|
823
823
|
|
824
824
|
class Multiget_slice_result
|
825
|
-
include ::Thrift::Struct
|
825
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
826
826
|
SUCCESS = 0
|
827
827
|
IRE = 1
|
828
828
|
UE = 2
|
829
829
|
TE = 3
|
830
830
|
|
831
|
-
::Thrift::Struct.field_accessor self, :success, :ire, :ue, :te
|
832
831
|
FIELDS = {
|
833
832
|
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}}},
|
834
833
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
@@ -841,16 +840,16 @@ require 'cassandra_types'
|
|
841
840
|
def validate
|
842
841
|
end
|
843
842
|
|
843
|
+
::Thrift::Struct.generate_accessors self
|
844
844
|
end
|
845
845
|
|
846
846
|
class Get_count_args
|
847
|
-
include ::Thrift::Struct
|
847
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
848
848
|
KEYSPACE = 1
|
849
849
|
KEY = 2
|
850
850
|
COLUMN_PARENT = 3
|
851
851
|
CONSISTENCY_LEVEL = 4
|
852
852
|
|
853
|
-
::Thrift::Struct.field_accessor self, :keyspace, :key, :column_parent, :consistency_level
|
854
853
|
FIELDS = {
|
855
854
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
856
855
|
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
@@ -870,16 +869,16 @@ require 'cassandra_types'
|
|
870
869
|
end
|
871
870
|
end
|
872
871
|
|
872
|
+
::Thrift::Struct.generate_accessors self
|
873
873
|
end
|
874
874
|
|
875
875
|
class Get_count_result
|
876
|
-
include ::Thrift::Struct
|
876
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
877
877
|
SUCCESS = 0
|
878
878
|
IRE = 1
|
879
879
|
UE = 2
|
880
880
|
TE = 3
|
881
881
|
|
882
|
-
::Thrift::Struct.field_accessor self, :success, :ire, :ue, :te
|
883
882
|
FIELDS = {
|
884
883
|
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
885
884
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
@@ -892,10 +891,11 @@ require 'cassandra_types'
|
|
892
891
|
def validate
|
893
892
|
end
|
894
893
|
|
894
|
+
::Thrift::Struct.generate_accessors self
|
895
895
|
end
|
896
896
|
|
897
897
|
class Get_range_slice_args
|
898
|
-
include ::Thrift::Struct
|
898
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
899
899
|
KEYSPACE = 1
|
900
900
|
COLUMN_PARENT = 2
|
901
901
|
PREDICATE = 3
|
@@ -904,7 +904,6 @@ require 'cassandra_types'
|
|
904
904
|
ROW_COUNT = 6
|
905
905
|
CONSISTENCY_LEVEL = 7
|
906
906
|
|
907
|
-
::Thrift::Struct.field_accessor self, :keyspace, :column_parent, :predicate, :start_key, :finish_key, :row_count, :consistency_level
|
908
907
|
FIELDS = {
|
909
908
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
910
909
|
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
|
@@ -930,16 +929,16 @@ require 'cassandra_types'
|
|
930
929
|
end
|
931
930
|
end
|
932
931
|
|
932
|
+
::Thrift::Struct.generate_accessors self
|
933
933
|
end
|
934
934
|
|
935
935
|
class Get_range_slice_result
|
936
|
-
include ::Thrift::Struct
|
936
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
937
937
|
SUCCESS = 0
|
938
938
|
IRE = 1
|
939
939
|
UE = 2
|
940
940
|
TE = 3
|
941
941
|
|
942
|
-
::Thrift::Struct.field_accessor self, :success, :ire, :ue, :te
|
943
942
|
FIELDS = {
|
944
943
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KeySlice}},
|
945
944
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
@@ -952,17 +951,17 @@ require 'cassandra_types'
|
|
952
951
|
def validate
|
953
952
|
end
|
954
953
|
|
954
|
+
::Thrift::Struct.generate_accessors self
|
955
955
|
end
|
956
956
|
|
957
957
|
class Get_range_slices_args
|
958
|
-
include ::Thrift::Struct
|
958
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
959
959
|
KEYSPACE = 1
|
960
960
|
COLUMN_PARENT = 2
|
961
961
|
PREDICATE = 3
|
962
962
|
RANGE = 4
|
963
963
|
CONSISTENCY_LEVEL = 5
|
964
964
|
|
965
|
-
::Thrift::Struct.field_accessor self, :keyspace, :column_parent, :predicate, :range, :consistency_level
|
966
965
|
FIELDS = {
|
967
966
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
968
967
|
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
|
@@ -984,16 +983,16 @@ require 'cassandra_types'
|
|
984
983
|
end
|
985
984
|
end
|
986
985
|
|
986
|
+
::Thrift::Struct.generate_accessors self
|
987
987
|
end
|
988
988
|
|
989
989
|
class Get_range_slices_result
|
990
|
-
include ::Thrift::Struct
|
990
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
991
991
|
SUCCESS = 0
|
992
992
|
IRE = 1
|
993
993
|
UE = 2
|
994
994
|
TE = 3
|
995
995
|
|
996
|
-
::Thrift::Struct.field_accessor self, :success, :ire, :ue, :te
|
997
996
|
FIELDS = {
|
998
997
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KeySlice}},
|
999
998
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
@@ -1006,10 +1005,11 @@ require 'cassandra_types'
|
|
1006
1005
|
def validate
|
1007
1006
|
end
|
1008
1007
|
|
1008
|
+
::Thrift::Struct.generate_accessors self
|
1009
1009
|
end
|
1010
1010
|
|
1011
1011
|
class Insert_args
|
1012
|
-
include ::Thrift::Struct
|
1012
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1013
1013
|
KEYSPACE = 1
|
1014
1014
|
KEY = 2
|
1015
1015
|
COLUMN_PATH = 3
|
@@ -1017,14 +1017,13 @@ require 'cassandra_types'
|
|
1017
1017
|
TIMESTAMP = 5
|
1018
1018
|
CONSISTENCY_LEVEL = 6
|
1019
1019
|
|
1020
|
-
::Thrift::Struct.field_accessor self, :keyspace, :key, :column_path, :value, :timestamp, :consistency_level
|
1021
1020
|
FIELDS = {
|
1022
1021
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
1023
1022
|
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
1024
1023
|
COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
|
1025
|
-
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
|
1024
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
|
1026
1025
|
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
|
1027
|
-
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default =>
|
1026
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
|
1028
1027
|
}
|
1029
1028
|
|
1030
1029
|
def struct_fields; FIELDS; end
|
@@ -1041,15 +1040,15 @@ require 'cassandra_types'
|
|
1041
1040
|
end
|
1042
1041
|
end
|
1043
1042
|
|
1043
|
+
::Thrift::Struct.generate_accessors self
|
1044
1044
|
end
|
1045
1045
|
|
1046
1046
|
class Insert_result
|
1047
|
-
include ::Thrift::Struct
|
1047
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1048
1048
|
IRE = 1
|
1049
1049
|
UE = 2
|
1050
1050
|
TE = 3
|
1051
1051
|
|
1052
|
-
::Thrift::Struct.field_accessor self, :ire, :ue, :te
|
1053
1052
|
FIELDS = {
|
1054
1053
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
1055
1054
|
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
|
@@ -1061,21 +1060,21 @@ require 'cassandra_types'
|
|
1061
1060
|
def validate
|
1062
1061
|
end
|
1063
1062
|
|
1063
|
+
::Thrift::Struct.generate_accessors self
|
1064
1064
|
end
|
1065
1065
|
|
1066
1066
|
class Batch_insert_args
|
1067
|
-
include ::Thrift::Struct
|
1067
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1068
1068
|
KEYSPACE = 1
|
1069
1069
|
KEY = 2
|
1070
1070
|
CFMAP = 3
|
1071
1071
|
CONSISTENCY_LEVEL = 4
|
1072
1072
|
|
1073
|
-
::Thrift::Struct.field_accessor self, :keyspace, :key, :cfmap, :consistency_level
|
1074
1073
|
FIELDS = {
|
1075
1074
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
1076
1075
|
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
1077
1076
|
CFMAP => {:type => ::Thrift::Types::MAP, :name => 'cfmap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}}},
|
1078
|
-
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default =>
|
1077
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
|
1079
1078
|
}
|
1080
1079
|
|
1081
1080
|
def struct_fields; FIELDS; end
|
@@ -1090,15 +1089,15 @@ require 'cassandra_types'
|
|
1090
1089
|
end
|
1091
1090
|
end
|
1092
1091
|
|
1092
|
+
::Thrift::Struct.generate_accessors self
|
1093
1093
|
end
|
1094
1094
|
|
1095
1095
|
class Batch_insert_result
|
1096
|
-
include ::Thrift::Struct
|
1096
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1097
1097
|
IRE = 1
|
1098
1098
|
UE = 2
|
1099
1099
|
TE = 3
|
1100
1100
|
|
1101
|
-
::Thrift::Struct.field_accessor self, :ire, :ue, :te
|
1102
1101
|
FIELDS = {
|
1103
1102
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
1104
1103
|
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
|
@@ -1110,23 +1109,23 @@ require 'cassandra_types'
|
|
1110
1109
|
def validate
|
1111
1110
|
end
|
1112
1111
|
|
1112
|
+
::Thrift::Struct.generate_accessors self
|
1113
1113
|
end
|
1114
1114
|
|
1115
1115
|
class Remove_args
|
1116
|
-
include ::Thrift::Struct
|
1116
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1117
1117
|
KEYSPACE = 1
|
1118
1118
|
KEY = 2
|
1119
1119
|
COLUMN_PATH = 3
|
1120
1120
|
TIMESTAMP = 4
|
1121
1121
|
CONSISTENCY_LEVEL = 5
|
1122
1122
|
|
1123
|
-
::Thrift::Struct.field_accessor self, :keyspace, :key, :column_path, :timestamp, :consistency_level
|
1124
1123
|
FIELDS = {
|
1125
1124
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
1126
1125
|
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
1127
1126
|
COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
|
1128
1127
|
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
|
1129
|
-
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default =>
|
1128
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
|
1130
1129
|
}
|
1131
1130
|
|
1132
1131
|
def struct_fields; FIELDS; end
|
@@ -1141,15 +1140,15 @@ require 'cassandra_types'
|
|
1141
1140
|
end
|
1142
1141
|
end
|
1143
1142
|
|
1143
|
+
::Thrift::Struct.generate_accessors self
|
1144
1144
|
end
|
1145
1145
|
|
1146
1146
|
class Remove_result
|
1147
|
-
include ::Thrift::Struct
|
1147
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1148
1148
|
IRE = 1
|
1149
1149
|
UE = 2
|
1150
1150
|
TE = 3
|
1151
1151
|
|
1152
|
-
::Thrift::Struct.field_accessor self, :ire, :ue, :te
|
1153
1152
|
FIELDS = {
|
1154
1153
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
1155
1154
|
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
|
@@ -1161,19 +1160,19 @@ require 'cassandra_types'
|
|
1161
1160
|
def validate
|
1162
1161
|
end
|
1163
1162
|
|
1163
|
+
::Thrift::Struct.generate_accessors self
|
1164
1164
|
end
|
1165
1165
|
|
1166
1166
|
class Batch_mutate_args
|
1167
|
-
include ::Thrift::Struct
|
1167
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1168
1168
|
KEYSPACE = 1
|
1169
1169
|
MUTATION_MAP = 2
|
1170
1170
|
CONSISTENCY_LEVEL = 3
|
1171
1171
|
|
1172
|
-
::Thrift::Struct.field_accessor self, :keyspace, :mutation_map, :consistency_level
|
1173
1172
|
FIELDS = {
|
1174
1173
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
|
1175
1174
|
MUTATION_MAP => {:type => ::Thrift::Types::MAP, :name => 'mutation_map', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::Mutation}}}},
|
1176
|
-
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default =>
|
1175
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
|
1177
1176
|
}
|
1178
1177
|
|
1179
1178
|
def struct_fields; FIELDS; end
|
@@ -1187,15 +1186,15 @@ require 'cassandra_types'
|
|
1187
1186
|
end
|
1188
1187
|
end
|
1189
1188
|
|
1189
|
+
::Thrift::Struct.generate_accessors self
|
1190
1190
|
end
|
1191
1191
|
|
1192
1192
|
class Batch_mutate_result
|
1193
|
-
include ::Thrift::Struct
|
1193
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1194
1194
|
IRE = 1
|
1195
1195
|
UE = 2
|
1196
1196
|
TE = 3
|
1197
1197
|
|
1198
|
-
::Thrift::Struct.field_accessor self, :ire, :ue, :te
|
1199
1198
|
FIELDS = {
|
1200
1199
|
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
|
1201
1200
|
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
|
@@ -1207,13 +1206,13 @@ require 'cassandra_types'
|
|
1207
1206
|
def validate
|
1208
1207
|
end
|
1209
1208
|
|
1209
|
+
::Thrift::Struct.generate_accessors self
|
1210
1210
|
end
|
1211
1211
|
|
1212
1212
|
class Get_string_property_args
|
1213
|
-
include ::Thrift::Struct
|
1213
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1214
1214
|
PROPERTY = 1
|
1215
1215
|
|
1216
|
-
::Thrift::Struct.field_accessor self, :property
|
1217
1216
|
FIELDS = {
|
1218
1217
|
PROPERTY => {:type => ::Thrift::Types::STRING, :name => 'property'}
|
1219
1218
|
}
|
@@ -1224,13 +1223,13 @@ require 'cassandra_types'
|
|
1224
1223
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field property is unset!') unless @property
|
1225
1224
|
end
|
1226
1225
|
|
1226
|
+
::Thrift::Struct.generate_accessors self
|
1227
1227
|
end
|
1228
1228
|
|
1229
1229
|
class Get_string_property_result
|
1230
|
-
include ::Thrift::Struct
|
1230
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1231
1231
|
SUCCESS = 0
|
1232
1232
|
|
1233
|
-
::Thrift::Struct.field_accessor self, :success
|
1234
1233
|
FIELDS = {
|
1235
1234
|
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
1236
1235
|
}
|
@@ -1240,13 +1239,13 @@ require 'cassandra_types'
|
|
1240
1239
|
def validate
|
1241
1240
|
end
|
1242
1241
|
|
1242
|
+
::Thrift::Struct.generate_accessors self
|
1243
1243
|
end
|
1244
1244
|
|
1245
1245
|
class Get_string_list_property_args
|
1246
|
-
include ::Thrift::Struct
|
1246
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1247
1247
|
PROPERTY = 1
|
1248
1248
|
|
1249
|
-
::Thrift::Struct.field_accessor self, :property
|
1250
1249
|
FIELDS = {
|
1251
1250
|
PROPERTY => {:type => ::Thrift::Types::STRING, :name => 'property'}
|
1252
1251
|
}
|
@@ -1257,13 +1256,13 @@ require 'cassandra_types'
|
|
1257
1256
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field property is unset!') unless @property
|
1258
1257
|
end
|
1259
1258
|
|
1259
|
+
::Thrift::Struct.generate_accessors self
|
1260
1260
|
end
|
1261
1261
|
|
1262
1262
|
class Get_string_list_property_result
|
1263
|
-
include ::Thrift::Struct
|
1263
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1264
1264
|
SUCCESS = 0
|
1265
1265
|
|
1266
|
-
::Thrift::Struct.field_accessor self, :success
|
1267
1266
|
FIELDS = {
|
1268
1267
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
|
1269
1268
|
}
|
@@ -1273,10 +1272,11 @@ require 'cassandra_types'
|
|
1273
1272
|
def validate
|
1274
1273
|
end
|
1275
1274
|
|
1275
|
+
::Thrift::Struct.generate_accessors self
|
1276
1276
|
end
|
1277
1277
|
|
1278
1278
|
class Describe_keyspaces_args
|
1279
|
-
include ::Thrift::Struct
|
1279
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1280
1280
|
|
1281
1281
|
FIELDS = {
|
1282
1282
|
|
@@ -1287,13 +1287,13 @@ require 'cassandra_types'
|
|
1287
1287
|
def validate
|
1288
1288
|
end
|
1289
1289
|
|
1290
|
+
::Thrift::Struct.generate_accessors self
|
1290
1291
|
end
|
1291
1292
|
|
1292
1293
|
class Describe_keyspaces_result
|
1293
|
-
include ::Thrift::Struct
|
1294
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1294
1295
|
SUCCESS = 0
|
1295
1296
|
|
1296
|
-
::Thrift::Struct.field_accessor self, :success
|
1297
1297
|
FIELDS = {
|
1298
1298
|
SUCCESS => {:type => ::Thrift::Types::SET, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
|
1299
1299
|
}
|
@@ -1303,10 +1303,11 @@ require 'cassandra_types'
|
|
1303
1303
|
def validate
|
1304
1304
|
end
|
1305
1305
|
|
1306
|
+
::Thrift::Struct.generate_accessors self
|
1306
1307
|
end
|
1307
1308
|
|
1308
1309
|
class Describe_cluster_name_args
|
1309
|
-
include ::Thrift::Struct
|
1310
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1310
1311
|
|
1311
1312
|
FIELDS = {
|
1312
1313
|
|
@@ -1317,13 +1318,13 @@ require 'cassandra_types'
|
|
1317
1318
|
def validate
|
1318
1319
|
end
|
1319
1320
|
|
1321
|
+
::Thrift::Struct.generate_accessors self
|
1320
1322
|
end
|
1321
1323
|
|
1322
1324
|
class Describe_cluster_name_result
|
1323
|
-
include ::Thrift::Struct
|
1325
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1324
1326
|
SUCCESS = 0
|
1325
1327
|
|
1326
|
-
::Thrift::Struct.field_accessor self, :success
|
1327
1328
|
FIELDS = {
|
1328
1329
|
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
1329
1330
|
}
|
@@ -1333,10 +1334,11 @@ require 'cassandra_types'
|
|
1333
1334
|
def validate
|
1334
1335
|
end
|
1335
1336
|
|
1337
|
+
::Thrift::Struct.generate_accessors self
|
1336
1338
|
end
|
1337
1339
|
|
1338
1340
|
class Describe_version_args
|
1339
|
-
include ::Thrift::Struct
|
1341
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1340
1342
|
|
1341
1343
|
FIELDS = {
|
1342
1344
|
|
@@ -1347,13 +1349,13 @@ require 'cassandra_types'
|
|
1347
1349
|
def validate
|
1348
1350
|
end
|
1349
1351
|
|
1352
|
+
::Thrift::Struct.generate_accessors self
|
1350
1353
|
end
|
1351
1354
|
|
1352
1355
|
class Describe_version_result
|
1353
|
-
include ::Thrift::Struct
|
1356
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1354
1357
|
SUCCESS = 0
|
1355
1358
|
|
1356
|
-
::Thrift::Struct.field_accessor self, :success
|
1357
1359
|
FIELDS = {
|
1358
1360
|
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
1359
1361
|
}
|
@@ -1363,13 +1365,13 @@ require 'cassandra_types'
|
|
1363
1365
|
def validate
|
1364
1366
|
end
|
1365
1367
|
|
1368
|
+
::Thrift::Struct.generate_accessors self
|
1366
1369
|
end
|
1367
1370
|
|
1368
1371
|
class Describe_ring_args
|
1369
|
-
include ::Thrift::Struct
|
1372
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1370
1373
|
KEYSPACE = 1
|
1371
1374
|
|
1372
|
-
::Thrift::Struct.field_accessor self, :keyspace
|
1373
1375
|
FIELDS = {
|
1374
1376
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
1375
1377
|
}
|
@@ -1380,13 +1382,13 @@ require 'cassandra_types'
|
|
1380
1382
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
1381
1383
|
end
|
1382
1384
|
|
1385
|
+
::Thrift::Struct.generate_accessors self
|
1383
1386
|
end
|
1384
1387
|
|
1385
1388
|
class Describe_ring_result
|
1386
|
-
include ::Thrift::Struct
|
1389
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1387
1390
|
SUCCESS = 0
|
1388
1391
|
|
1389
|
-
::Thrift::Struct.field_accessor self, :success
|
1390
1392
|
FIELDS = {
|
1391
1393
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::TokenRange}}
|
1392
1394
|
}
|
@@ -1396,13 +1398,13 @@ require 'cassandra_types'
|
|
1396
1398
|
def validate
|
1397
1399
|
end
|
1398
1400
|
|
1401
|
+
::Thrift::Struct.generate_accessors self
|
1399
1402
|
end
|
1400
1403
|
|
1401
1404
|
class Describe_keyspace_args
|
1402
|
-
include ::Thrift::Struct
|
1405
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1403
1406
|
KEYSPACE = 1
|
1404
1407
|
|
1405
|
-
::Thrift::Struct.field_accessor self, :keyspace
|
1406
1408
|
FIELDS = {
|
1407
1409
|
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
1408
1410
|
}
|
@@ -1413,14 +1415,14 @@ require 'cassandra_types'
|
|
1413
1415
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
1414
1416
|
end
|
1415
1417
|
|
1418
|
+
::Thrift::Struct.generate_accessors self
|
1416
1419
|
end
|
1417
1420
|
|
1418
1421
|
class Describe_keyspace_result
|
1419
|
-
include ::Thrift::Struct
|
1422
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1420
1423
|
SUCCESS = 0
|
1421
1424
|
NFE = 1
|
1422
1425
|
|
1423
|
-
::Thrift::Struct.field_accessor self, :success, :nfe
|
1424
1426
|
FIELDS = {
|
1425
1427
|
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}},
|
1426
1428
|
NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
|
@@ -1431,15 +1433,15 @@ require 'cassandra_types'
|
|
1431
1433
|
def validate
|
1432
1434
|
end
|
1433
1435
|
|
1436
|
+
::Thrift::Struct.generate_accessors self
|
1434
1437
|
end
|
1435
1438
|
|
1436
1439
|
class Describe_splits_args
|
1437
|
-
include ::Thrift::Struct
|
1440
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1438
1441
|
START_TOKEN = 1
|
1439
1442
|
END_TOKEN = 2
|
1440
1443
|
KEYS_PER_SPLIT = 3
|
1441
1444
|
|
1442
|
-
::Thrift::Struct.field_accessor self, :start_token, :end_token, :keys_per_split
|
1443
1445
|
FIELDS = {
|
1444
1446
|
START_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'start_token'},
|
1445
1447
|
END_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'end_token'},
|
@@ -1454,13 +1456,13 @@ require 'cassandra_types'
|
|
1454
1456
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys_per_split is unset!') unless @keys_per_split
|
1455
1457
|
end
|
1456
1458
|
|
1459
|
+
::Thrift::Struct.generate_accessors self
|
1457
1460
|
end
|
1458
1461
|
|
1459
1462
|
class Describe_splits_result
|
1460
|
-
include ::Thrift::Struct
|
1463
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1461
1464
|
SUCCESS = 0
|
1462
1465
|
|
1463
|
-
::Thrift::Struct.field_accessor self, :success
|
1464
1466
|
FIELDS = {
|
1465
1467
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
|
1466
1468
|
}
|
@@ -1470,6 +1472,7 @@ require 'cassandra_types'
|
|
1470
1472
|
def validate
|
1471
1473
|
end
|
1472
1474
|
|
1475
|
+
::Thrift::Struct.generate_accessors self
|
1473
1476
|
end
|
1474
1477
|
|
1475
1478
|
end
|