Class: Impala::Protocol::ImpalaService::Processor

Inherits:
Beeswax::BeeswaxService::Processor show all
Includes:
Thrift::Processor
Defined in:
lib/impala/protocol/impala_service.rb

Instance Method Summary collapse

Methods inherited from Beeswax::BeeswaxService::Processor

#process_clean, #process_close, #process_dump_config, #process_echo, #process_executeAndWait, #process_explain, #process_fetch, #process_get_default_configuration, #process_get_log, #process_get_results_metadata, #process_get_state, #process_query

Instance Method Details

#process_Cancel(seqid, iprot, oprot) ⇒ Object



133
134
135
136
137
138
139
140
141
142
# File 'lib/impala/protocol/impala_service.rb', line 133

def process_Cancel(seqid, iprot, oprot)
  args = read_args(iprot, Cancel_args)
  result = Cancel_result.new()
  begin
    result.success = @handler.Cancel(args.query_id)
  rescue ::Impala::Protocol::Beeswax::BeeswaxException => error
    result.error = error
  end
  write_result(result, oprot, 'Cancel', seqid)
end

#process_CloseInsert(seqid, iprot, oprot) ⇒ Object



169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/impala/protocol/impala_service.rb', line 169

def process_CloseInsert(seqid, iprot, oprot)
  args = read_args(iprot, CloseInsert_args)
  result = CloseInsert_result.new()
  begin
    result.success = @handler.CloseInsert(args.handle)
  rescue ::Impala::Protocol::Beeswax::QueryNotFoundException => error
    result.error = error
  rescue ::Impala::Protocol::Beeswax::BeeswaxException => error2
    result.error2 = error2
  end
  write_result(result, oprot, 'CloseInsert', seqid)
end

#process_GetExecSummary(seqid, iprot, oprot) ⇒ Object



189
190
191
192
193
194
195
196
197
198
199
200
# File 'lib/impala/protocol/impala_service.rb', line 189

def process_GetExecSummary(seqid, iprot, oprot)
  args = read_args(iprot, GetExecSummary_args)
  result = GetExecSummary_result.new()
  begin
    result.success = @handler.GetExecSummary(args.handle)
  rescue ::Impala::Protocol::Beeswax::QueryNotFoundException => error
    result.error = error
  rescue ::Impala::Protocol::Beeswax::BeeswaxException => error2
    result.error2 = error2
  end
  write_result(result, oprot, 'GetExecSummary', seqid)
end

#process_GetRuntimeProfile(seqid, iprot, oprot) ⇒ Object



158
159
160
161
162
163
164
165
166
167
# File 'lib/impala/protocol/impala_service.rb', line 158

def process_GetRuntimeProfile(seqid, iprot, oprot)
  args = read_args(iprot, GetRuntimeProfile_args)
  result = GetRuntimeProfile_result.new()
  begin
    result.success = @handler.GetRuntimeProfile(args.query_id)
  rescue ::Impala::Protocol::Beeswax::BeeswaxException => error
    result.error = error
  end
  write_result(result, oprot, 'GetRuntimeProfile', seqid)
end

#process_PingImpalaService(seqid, iprot, oprot) ⇒ Object



182
183
184
185
186
187
# File 'lib/impala/protocol/impala_service.rb', line 182

def process_PingImpalaService(seqid, iprot, oprot)
  args = read_args(iprot, PingImpalaService_args)
  result = PingImpalaService_result.new()
  result.success = @handler.PingImpalaService()
  write_result(result, oprot, 'PingImpalaService', seqid)
end

#process_ResetCatalog(seqid, iprot, oprot) ⇒ Object



144
145
146
147
148
149
# File 'lib/impala/protocol/impala_service.rb', line 144

def process_ResetCatalog(seqid, iprot, oprot)
  args = read_args(iprot, ResetCatalog_args)
  result = ResetCatalog_result.new()
  result.success = @handler.ResetCatalog()
  write_result(result, oprot, 'ResetCatalog', seqid)
end

#process_ResetTable(seqid, iprot, oprot) ⇒ Object



151
152
153
154
155
156
# File 'lib/impala/protocol/impala_service.rb', line 151

def process_ResetTable(seqid, iprot, oprot)
  args = read_args(iprot, ResetTable_args)
  result = ResetTable_result.new()
  result.success = @handler.ResetTable(args.request)
  write_result(result, oprot, 'ResetTable', seqid)
end