impala 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +28 -0
- data/Rakefile +15 -0
- data/impala.gemspec +25 -0
- data/lib/impala.rb +33 -0
- data/lib/impala/connection.rb +93 -0
- data/lib/impala/cursor.rb +86 -0
- data/lib/impala/protocol.rb +6 -0
- data/lib/impala/protocol/beeswax_constants.rb +14 -0
- data/lib/impala/protocol/beeswax_service.rb +747 -0
- data/lib/impala/protocol/beeswax_types.rb +192 -0
- data/lib/impala/protocol/data_constants.rb +12 -0
- data/lib/impala/protocol/data_sinks_constants.rb +12 -0
- data/lib/impala/protocol/data_sinks_types.rb +107 -0
- data/lib/impala/protocol/data_types.rb +77 -0
- data/lib/impala/protocol/descriptors_constants.rb +12 -0
- data/lib/impala/protocol/descriptors_types.rb +266 -0
- data/lib/impala/protocol/exprs_constants.rb +12 -0
- data/lib/impala/protocol/exprs_types.rb +345 -0
- data/lib/impala/protocol/facebook_service.rb +706 -0
- data/lib/impala/protocol/fb303_constants.rb +14 -0
- data/lib/impala/protocol/fb303_types.rb +24 -0
- data/lib/impala/protocol/frontend_constants.rb +12 -0
- data/lib/impala/protocol/frontend_types.rb +347 -0
- data/lib/impala/protocol/hive_metastore_constants.rb +52 -0
- data/lib/impala/protocol/hive_metastore_types.rb +697 -0
- data/lib/impala/protocol/impala_internal_service.rb +244 -0
- data/lib/impala/protocol/impala_internal_service_constants.rb +12 -0
- data/lib/impala/protocol/impala_internal_service_types.rb +362 -0
- data/lib/impala/protocol/impala_plan_service.rb +310 -0
- data/lib/impala/protocol/impala_plan_service_constants.rb +12 -0
- data/lib/impala/protocol/impala_plan_service_types.rb +36 -0
- data/lib/impala/protocol/impala_service.rb +260 -0
- data/lib/impala/protocol/impala_service_constants.rb +12 -0
- data/lib/impala/protocol/impala_service_types.rb +46 -0
- data/lib/impala/protocol/java_constants_constants.rb +42 -0
- data/lib/impala/protocol/java_constants_types.rb +14 -0
- data/lib/impala/protocol/opcodes_constants.rb +12 -0
- data/lib/impala/protocol/opcodes_types.rb +309 -0
- data/lib/impala/protocol/partitions_constants.rb +12 -0
- data/lib/impala/protocol/partitions_types.rb +44 -0
- data/lib/impala/protocol/plan_nodes_constants.rb +12 -0
- data/lib/impala/protocol/plan_nodes_types.rb +345 -0
- data/lib/impala/protocol/planner_constants.rb +12 -0
- data/lib/impala/protocol/planner_types.rb +78 -0
- data/lib/impala/protocol/runtime_profile_constants.rb +12 -0
- data/lib/impala/protocol/runtime_profile_types.rb +97 -0
- data/lib/impala/protocol/state_store_service.rb +244 -0
- data/lib/impala/protocol/state_store_service_constants.rb +12 -0
- data/lib/impala/protocol/state_store_service_types.rb +185 -0
- data/lib/impala/protocol/state_store_subscriber_service.rb +82 -0
- data/lib/impala/protocol/state_store_subscriber_service_constants.rb +12 -0
- data/lib/impala/protocol/state_store_subscriber_service_types.rb +67 -0
- data/lib/impala/protocol/statestore_types_constants.rb +12 -0
- data/lib/impala/protocol/statestore_types_types.rb +77 -0
- data/lib/impala/protocol/status_constants.rb +12 -0
- data/lib/impala/protocol/status_types.rb +44 -0
- data/lib/impala/protocol/thrift_hive_metastore.rb +4707 -0
- data/lib/impala/protocol/types_constants.rb +12 -0
- data/lib/impala/protocol/types_types.rb +86 -0
- data/lib/impala/version.rb +3 -0
- data/thrift/Data.thrift +52 -0
- data/thrift/DataSinks.thrift +61 -0
- data/thrift/Descriptors.thrift +115 -0
- data/thrift/Exprs.thrift +134 -0
- data/thrift/Frontend.thrift +193 -0
- data/thrift/ImpalaInternalService.thrift +265 -0
- data/thrift/ImpalaPlanService.thrift +44 -0
- data/thrift/ImpalaService.thrift +105 -0
- data/thrift/JavaConstants.thrift +60 -0
- data/thrift/Opcodes.thrift +317 -0
- data/thrift/Partitions.thrift +41 -0
- data/thrift/PlanNodes.thrift +184 -0
- data/thrift/Planner.thrift +72 -0
- data/thrift/RuntimeProfile.thrift +58 -0
- data/thrift/StateStoreService.thrift +121 -0
- data/thrift/StateStoreSubscriberService.thrift +64 -0
- data/thrift/StatestoreTypes.thrift +50 -0
- data/thrift/Status.thrift +31 -0
- data/thrift/Types.thrift +71 -0
- data/thrift/beeswax.thrift +175 -0
- data/thrift/fb303.thrift +112 -0
- data/thrift/hive_metastore.thrift +528 -0
- metadata +206 -0
@@ -0,0 +1,97 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
|
8
|
+
module Impala
|
9
|
+
module Protocol
|
10
|
+
module TCounterType
|
11
|
+
UNIT = 0
|
12
|
+
UNIT_PER_SECOND = 1
|
13
|
+
TIME_MS = 2
|
14
|
+
CPU_TICKS = 3
|
15
|
+
BYTES = 4
|
16
|
+
BYTES_PER_SECOND = 5
|
17
|
+
VALUE_MAP = { 0 => "UNIT", 1 => "UNIT_PER_SECOND", 2 => "TIME_MS", 3 => "CPU_TICKS", 4 => "BYTES", 5 => "BYTES_PER_SECOND" }
|
18
|
+
VALID_VALUES = Set.new([UNIT, UNIT_PER_SECOND, TIME_MS, CPU_TICKS, BYTES, BYTES_PER_SECOND]).freeze
|
19
|
+
end
|
20
|
+
|
21
|
+
class TCounter
|
22
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
23
|
+
NAME = 1
|
24
|
+
TYPE = 2
|
25
|
+
VALUE = 3
|
26
|
+
|
27
|
+
FIELDS = {
|
28
|
+
NAME => { :type => ::Thrift::Types::STRING, :name => 'name' },
|
29
|
+
TYPE => { :type => ::Thrift::Types::I32, :name => 'type', :enum_class => Impala::Protocol::TCounterType },
|
30
|
+
VALUE => { :type => ::Thrift::Types::I64, :name => 'value' }
|
31
|
+
}
|
32
|
+
|
33
|
+
def struct_fields; FIELDS; end
|
34
|
+
|
35
|
+
def validate
|
36
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
|
37
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
|
38
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value is unset!') unless @value
|
39
|
+
unless @type.nil? || Impala::Protocol::TCounterType::VALID_VALUES.include?(@type)
|
40
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
::Thrift::Struct.generate_accessors self
|
45
|
+
end
|
46
|
+
|
47
|
+
class TRuntimeProfileNode
|
48
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
49
|
+
NAME = 1
|
50
|
+
NUM_CHILDREN = 2
|
51
|
+
COUNTERS = 3
|
52
|
+
METADATA = 4
|
53
|
+
INDENT = 5
|
54
|
+
INFO_STRINGS = 6
|
55
|
+
|
56
|
+
FIELDS = {
|
57
|
+
NAME => { :type => ::Thrift::Types::STRING, :name => 'name' },
|
58
|
+
NUM_CHILDREN => { :type => ::Thrift::Types::I32, :name => 'num_children' },
|
59
|
+
COUNTERS => { :type => ::Thrift::Types::LIST, :name => 'counters', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TCounter } },
|
60
|
+
METADATA => { :type => ::Thrift::Types::I64, :name => 'metadata' },
|
61
|
+
INDENT => { :type => ::Thrift::Types::BOOL, :name => 'indent' },
|
62
|
+
INFO_STRINGS => { :type => ::Thrift::Types::MAP, :name => 'info_strings', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }
|
63
|
+
}
|
64
|
+
|
65
|
+
def struct_fields; FIELDS; end
|
66
|
+
|
67
|
+
def validate
|
68
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
|
69
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_children is unset!') unless @num_children
|
70
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field counters is unset!') unless @counters
|
71
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field metadata is unset!') unless @metadata
|
72
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field indent is unset!') if @indent.nil?
|
73
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field info_strings is unset!') unless @info_strings
|
74
|
+
end
|
75
|
+
|
76
|
+
::Thrift::Struct.generate_accessors self
|
77
|
+
end
|
78
|
+
|
79
|
+
class TRuntimeProfileTree
|
80
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
81
|
+
NODES = 1
|
82
|
+
|
83
|
+
FIELDS = {
|
84
|
+
NODES => { :type => ::Thrift::Types::LIST, :name => 'nodes', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TRuntimeProfileNode } }
|
85
|
+
}
|
86
|
+
|
87
|
+
def struct_fields; FIELDS; end
|
88
|
+
|
89
|
+
def validate
|
90
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nodes is unset!') unless @nodes
|
91
|
+
end
|
92
|
+
|
93
|
+
::Thrift::Struct.generate_accessors self
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,244 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'state_store_service_types'
|
9
|
+
|
10
|
+
module Impala
|
11
|
+
module Protocol
|
12
|
+
module StateStoreService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def RegisterService(request)
|
17
|
+
send_RegisterService(request)
|
18
|
+
return recv_RegisterService()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_RegisterService(request)
|
22
|
+
send_message('RegisterService', RegisterService_args, :request => request)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_RegisterService()
|
26
|
+
result = receive_message(RegisterService_result)
|
27
|
+
return result.success unless result.success.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RegisterService failed: unknown result')
|
29
|
+
end
|
30
|
+
|
31
|
+
def UnregisterService(request)
|
32
|
+
send_UnregisterService(request)
|
33
|
+
return recv_UnregisterService()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_UnregisterService(request)
|
37
|
+
send_message('UnregisterService', UnregisterService_args, :request => request)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_UnregisterService()
|
41
|
+
result = receive_message(UnregisterService_result)
|
42
|
+
return result.success unless result.success.nil?
|
43
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'UnregisterService failed: unknown result')
|
44
|
+
end
|
45
|
+
|
46
|
+
def RegisterSubscription(request)
|
47
|
+
send_RegisterSubscription(request)
|
48
|
+
return recv_RegisterSubscription()
|
49
|
+
end
|
50
|
+
|
51
|
+
def send_RegisterSubscription(request)
|
52
|
+
send_message('RegisterSubscription', RegisterSubscription_args, :request => request)
|
53
|
+
end
|
54
|
+
|
55
|
+
def recv_RegisterSubscription()
|
56
|
+
result = receive_message(RegisterSubscription_result)
|
57
|
+
return result.success unless result.success.nil?
|
58
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RegisterSubscription failed: unknown result')
|
59
|
+
end
|
60
|
+
|
61
|
+
def UnregisterSubscription(request)
|
62
|
+
send_UnregisterSubscription(request)
|
63
|
+
return recv_UnregisterSubscription()
|
64
|
+
end
|
65
|
+
|
66
|
+
def send_UnregisterSubscription(request)
|
67
|
+
send_message('UnregisterSubscription', UnregisterSubscription_args, :request => request)
|
68
|
+
end
|
69
|
+
|
70
|
+
def recv_UnregisterSubscription()
|
71
|
+
result = receive_message(UnregisterSubscription_result)
|
72
|
+
return result.success unless result.success.nil?
|
73
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'UnregisterSubscription failed: unknown result')
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
|
78
|
+
class Processor
|
79
|
+
include ::Thrift::Processor
|
80
|
+
|
81
|
+
def process_RegisterService(seqid, iprot, oprot)
|
82
|
+
args = read_args(iprot, RegisterService_args)
|
83
|
+
result = RegisterService_result.new()
|
84
|
+
result.success = @handler.RegisterService(args.request)
|
85
|
+
write_result(result, oprot, 'RegisterService', seqid)
|
86
|
+
end
|
87
|
+
|
88
|
+
def process_UnregisterService(seqid, iprot, oprot)
|
89
|
+
args = read_args(iprot, UnregisterService_args)
|
90
|
+
result = UnregisterService_result.new()
|
91
|
+
result.success = @handler.UnregisterService(args.request)
|
92
|
+
write_result(result, oprot, 'UnregisterService', seqid)
|
93
|
+
end
|
94
|
+
|
95
|
+
def process_RegisterSubscription(seqid, iprot, oprot)
|
96
|
+
args = read_args(iprot, RegisterSubscription_args)
|
97
|
+
result = RegisterSubscription_result.new()
|
98
|
+
result.success = @handler.RegisterSubscription(args.request)
|
99
|
+
write_result(result, oprot, 'RegisterSubscription', seqid)
|
100
|
+
end
|
101
|
+
|
102
|
+
def process_UnregisterSubscription(seqid, iprot, oprot)
|
103
|
+
args = read_args(iprot, UnregisterSubscription_args)
|
104
|
+
result = UnregisterSubscription_result.new()
|
105
|
+
result.success = @handler.UnregisterSubscription(args.request)
|
106
|
+
write_result(result, oprot, 'UnregisterSubscription', seqid)
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
|
111
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
112
|
+
|
113
|
+
class RegisterService_args
|
114
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
115
|
+
REQUEST = 1
|
116
|
+
|
117
|
+
FIELDS = {
|
118
|
+
REQUEST => { :type => ::Thrift::Types::STRUCT, :name => 'request', :class => Impala::Protocol::TRegisterServiceRequest }
|
119
|
+
}
|
120
|
+
|
121
|
+
def struct_fields; FIELDS; end
|
122
|
+
|
123
|
+
def validate
|
124
|
+
end
|
125
|
+
|
126
|
+
::Thrift::Struct.generate_accessors self
|
127
|
+
end
|
128
|
+
|
129
|
+
class RegisterService_result
|
130
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
131
|
+
SUCCESS = 0
|
132
|
+
|
133
|
+
FIELDS = {
|
134
|
+
SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TRegisterServiceResponse }
|
135
|
+
}
|
136
|
+
|
137
|
+
def struct_fields; FIELDS; end
|
138
|
+
|
139
|
+
def validate
|
140
|
+
end
|
141
|
+
|
142
|
+
::Thrift::Struct.generate_accessors self
|
143
|
+
end
|
144
|
+
|
145
|
+
class UnregisterService_args
|
146
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
147
|
+
REQUEST = 1
|
148
|
+
|
149
|
+
FIELDS = {
|
150
|
+
REQUEST => { :type => ::Thrift::Types::STRUCT, :name => 'request', :class => Impala::Protocol::TUnregisterServiceRequest }
|
151
|
+
}
|
152
|
+
|
153
|
+
def struct_fields; FIELDS; end
|
154
|
+
|
155
|
+
def validate
|
156
|
+
end
|
157
|
+
|
158
|
+
::Thrift::Struct.generate_accessors self
|
159
|
+
end
|
160
|
+
|
161
|
+
class UnregisterService_result
|
162
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
163
|
+
SUCCESS = 0
|
164
|
+
|
165
|
+
FIELDS = {
|
166
|
+
SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TUnregisterServiceResponse }
|
167
|
+
}
|
168
|
+
|
169
|
+
def struct_fields; FIELDS; end
|
170
|
+
|
171
|
+
def validate
|
172
|
+
end
|
173
|
+
|
174
|
+
::Thrift::Struct.generate_accessors self
|
175
|
+
end
|
176
|
+
|
177
|
+
class RegisterSubscription_args
|
178
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
179
|
+
REQUEST = 1
|
180
|
+
|
181
|
+
FIELDS = {
|
182
|
+
REQUEST => { :type => ::Thrift::Types::STRUCT, :name => 'request', :class => Impala::Protocol::TRegisterSubscriptionRequest }
|
183
|
+
}
|
184
|
+
|
185
|
+
def struct_fields; FIELDS; end
|
186
|
+
|
187
|
+
def validate
|
188
|
+
end
|
189
|
+
|
190
|
+
::Thrift::Struct.generate_accessors self
|
191
|
+
end
|
192
|
+
|
193
|
+
class RegisterSubscription_result
|
194
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
195
|
+
SUCCESS = 0
|
196
|
+
|
197
|
+
FIELDS = {
|
198
|
+
SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TRegisterSubscriptionResponse }
|
199
|
+
}
|
200
|
+
|
201
|
+
def struct_fields; FIELDS; end
|
202
|
+
|
203
|
+
def validate
|
204
|
+
end
|
205
|
+
|
206
|
+
::Thrift::Struct.generate_accessors self
|
207
|
+
end
|
208
|
+
|
209
|
+
class UnregisterSubscription_args
|
210
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
211
|
+
REQUEST = 1
|
212
|
+
|
213
|
+
FIELDS = {
|
214
|
+
REQUEST => { :type => ::Thrift::Types::STRUCT, :name => 'request', :class => Impala::Protocol::TUnregisterSubscriptionRequest }
|
215
|
+
}
|
216
|
+
|
217
|
+
def struct_fields; FIELDS; end
|
218
|
+
|
219
|
+
def validate
|
220
|
+
end
|
221
|
+
|
222
|
+
::Thrift::Struct.generate_accessors self
|
223
|
+
end
|
224
|
+
|
225
|
+
class UnregisterSubscription_result
|
226
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
227
|
+
SUCCESS = 0
|
228
|
+
|
229
|
+
FIELDS = {
|
230
|
+
SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TUnregisterSubscriptionResponse }
|
231
|
+
}
|
232
|
+
|
233
|
+
def struct_fields; FIELDS; end
|
234
|
+
|
235
|
+
def validate
|
236
|
+
end
|
237
|
+
|
238
|
+
::Thrift::Struct.generate_accessors self
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|
242
|
+
|
243
|
+
end
|
244
|
+
end
|
@@ -0,0 +1,185 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'statestore_types_types'
|
8
|
+
require 'status_types'
|
9
|
+
require 'types_types'
|
10
|
+
|
11
|
+
|
12
|
+
module Impala
|
13
|
+
module Protocol
|
14
|
+
module StateStoreServiceVersion
|
15
|
+
V1 = 0
|
16
|
+
VALUE_MAP = { 0 => "V1" }
|
17
|
+
VALID_VALUES = Set.new([V1]).freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
class TRegisterServiceRequest
|
21
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
22
|
+
PROTOCOL_VERSION = 1
|
23
|
+
SUBSCRIBER_ADDRESS = 2
|
24
|
+
SERVICE_ID = 3
|
25
|
+
SERVICE_ADDRESS = 4
|
26
|
+
|
27
|
+
FIELDS = {
|
28
|
+
PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :default => 0, :enum_class => Impala::Protocol::StateStoreServiceVersion },
|
29
|
+
SUBSCRIBER_ADDRESS => { :type => ::Thrift::Types::STRUCT, :name => 'subscriber_address', :class => Impala::Protocol::THostPort, :optional => true },
|
30
|
+
SERVICE_ID => { :type => ::Thrift::Types::STRING, :name => 'service_id', :optional => true },
|
31
|
+
SERVICE_ADDRESS => { :type => ::Thrift::Types::STRUCT, :name => 'service_address', :class => Impala::Protocol::THostPort, :optional => true }
|
32
|
+
}
|
33
|
+
|
34
|
+
def struct_fields; FIELDS; end
|
35
|
+
|
36
|
+
def validate
|
37
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
|
38
|
+
unless @protocol_version.nil? || Impala::Protocol::StateStoreServiceVersion::VALID_VALUES.include?(@protocol_version)
|
39
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
::Thrift::Struct.generate_accessors self
|
44
|
+
end
|
45
|
+
|
46
|
+
class TRegisterServiceResponse
|
47
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
48
|
+
STATUS = 1
|
49
|
+
|
50
|
+
FIELDS = {
|
51
|
+
STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
|
52
|
+
}
|
53
|
+
|
54
|
+
def struct_fields; FIELDS; end
|
55
|
+
|
56
|
+
def validate
|
57
|
+
end
|
58
|
+
|
59
|
+
::Thrift::Struct.generate_accessors self
|
60
|
+
end
|
61
|
+
|
62
|
+
class TUnregisterServiceRequest
|
63
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
64
|
+
PROTOCOL_VERSION = 1
|
65
|
+
SUBSCRIBER_ADDRESS = 2
|
66
|
+
SERVICE_ID = 3
|
67
|
+
|
68
|
+
FIELDS = {
|
69
|
+
PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :default => 0, :enum_class => Impala::Protocol::StateStoreServiceVersion },
|
70
|
+
SUBSCRIBER_ADDRESS => { :type => ::Thrift::Types::STRUCT, :name => 'subscriber_address', :class => Impala::Protocol::THostPort, :optional => true },
|
71
|
+
SERVICE_ID => { :type => ::Thrift::Types::STRING, :name => 'service_id', :optional => true }
|
72
|
+
}
|
73
|
+
|
74
|
+
def struct_fields; FIELDS; end
|
75
|
+
|
76
|
+
def validate
|
77
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
|
78
|
+
unless @protocol_version.nil? || Impala::Protocol::StateStoreServiceVersion::VALID_VALUES.include?(@protocol_version)
|
79
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
::Thrift::Struct.generate_accessors self
|
84
|
+
end
|
85
|
+
|
86
|
+
class TUnregisterServiceResponse
|
87
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
88
|
+
STATUS = 1
|
89
|
+
|
90
|
+
FIELDS = {
|
91
|
+
STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
|
92
|
+
}
|
93
|
+
|
94
|
+
def struct_fields; FIELDS; end
|
95
|
+
|
96
|
+
def validate
|
97
|
+
end
|
98
|
+
|
99
|
+
::Thrift::Struct.generate_accessors self
|
100
|
+
end
|
101
|
+
|
102
|
+
class TRegisterSubscriptionRequest
|
103
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
104
|
+
PROTOCOL_VERSION = 1
|
105
|
+
SUBSCRIBER_ADDRESS = 2
|
106
|
+
SERVICES = 3
|
107
|
+
SUBSCRIPTION_ID = 4
|
108
|
+
|
109
|
+
FIELDS = {
|
110
|
+
PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :default => 0, :enum_class => Impala::Protocol::StateStoreServiceVersion },
|
111
|
+
SUBSCRIBER_ADDRESS => { :type => ::Thrift::Types::STRUCT, :name => 'subscriber_address', :class => Impala::Protocol::THostPort, :optional => true },
|
112
|
+
SERVICES => { :type => ::Thrift::Types::SET, :name => 'services', :element => { :type => ::Thrift::Types::STRING }, :optional => true },
|
113
|
+
SUBSCRIPTION_ID => { :type => ::Thrift::Types::STRING, :name => 'subscription_id', :optional => true }
|
114
|
+
}
|
115
|
+
|
116
|
+
def struct_fields; FIELDS; end
|
117
|
+
|
118
|
+
def validate
|
119
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
|
120
|
+
unless @protocol_version.nil? || Impala::Protocol::StateStoreServiceVersion::VALID_VALUES.include?(@protocol_version)
|
121
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
::Thrift::Struct.generate_accessors self
|
126
|
+
end
|
127
|
+
|
128
|
+
class TRegisterSubscriptionResponse
|
129
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
130
|
+
STATUS = 1
|
131
|
+
|
132
|
+
FIELDS = {
|
133
|
+
STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
|
134
|
+
}
|
135
|
+
|
136
|
+
def struct_fields; FIELDS; end
|
137
|
+
|
138
|
+
def validate
|
139
|
+
end
|
140
|
+
|
141
|
+
::Thrift::Struct.generate_accessors self
|
142
|
+
end
|
143
|
+
|
144
|
+
class TUnregisterSubscriptionRequest
|
145
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
146
|
+
PROTOCOL_VERSION = 1
|
147
|
+
SUBSCRIBER_ADDRESS = 2
|
148
|
+
SUBSCRIPTION_ID = 3
|
149
|
+
|
150
|
+
FIELDS = {
|
151
|
+
PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :default => 0, :enum_class => Impala::Protocol::StateStoreServiceVersion },
|
152
|
+
SUBSCRIBER_ADDRESS => { :type => ::Thrift::Types::STRUCT, :name => 'subscriber_address', :class => Impala::Protocol::THostPort, :optional => true },
|
153
|
+
SUBSCRIPTION_ID => { :type => ::Thrift::Types::STRING, :name => 'subscription_id', :optional => true }
|
154
|
+
}
|
155
|
+
|
156
|
+
def struct_fields; FIELDS; end
|
157
|
+
|
158
|
+
def validate
|
159
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
|
160
|
+
unless @protocol_version.nil? || Impala::Protocol::StateStoreServiceVersion::VALID_VALUES.include?(@protocol_version)
|
161
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
::Thrift::Struct.generate_accessors self
|
166
|
+
end
|
167
|
+
|
168
|
+
class TUnregisterSubscriptionResponse
|
169
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
170
|
+
STATUS = 1
|
171
|
+
|
172
|
+
FIELDS = {
|
173
|
+
STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
|
174
|
+
}
|
175
|
+
|
176
|
+
def struct_fields; FIELDS; end
|
177
|
+
|
178
|
+
def validate
|
179
|
+
end
|
180
|
+
|
181
|
+
::Thrift::Struct.generate_accessors self
|
182
|
+
end
|
183
|
+
|
184
|
+
end
|
185
|
+
end
|