Class: Hypertable::ThriftGen::ClientService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/hypertable/gen-rb/client_service.rb

Direct Known Subclasses

HqlService::Client

Instance Method Summary collapse

Instance Method Details

#close_mutator(mutator, flush) ⇒ Object



222
223
224
225
# File 'lib/hypertable/gen-rb/client_service.rb', line 222

def close_mutator(mutator, flush)
  send_close_mutator(mutator, flush)
  recv_close_mutator()
end

#close_scanner(scanner) ⇒ Object



47
48
49
50
# File 'lib/hypertable/gen-rb/client_service.rb', line 47

def close_scanner(scanner)
  send_close_scanner(scanner)
  recv_close_scanner()
end

#create_table(name, schema) ⇒ Object



16
17
18
19
# File 'lib/hypertable/gen-rb/client_service.rb', line 16

def create_table(name, schema)
  send_create_table(name, schema)
  recv_create_table()
end

#drop_table(name, if_exists) ⇒ Object



360
361
362
363
# File 'lib/hypertable/gen-rb/client_service.rb', line 360

def drop_table(name, if_exists)
  send_drop_table(name, if_exists)
  recv_drop_table()
end

#flush_mutator(mutator) ⇒ Object



297
298
299
300
# File 'lib/hypertable/gen-rb/client_service.rb', line 297

def flush_mutator(mutator)
  send_flush_mutator(mutator)
  recv_flush_mutator()
end

#get_cell(name, row, column) ⇒ Object



158
159
160
161
# File 'lib/hypertable/gen-rb/client_service.rb', line 158

def get_cell(name, row, column)
  send_get_cell(name, row, column)
  return recv_get_cell()
end

#get_cells(name, scan_spec) ⇒ Object



174
175
176
177
# File 'lib/hypertable/gen-rb/client_service.rb', line 174

def get_cells(name, scan_spec)
  send_get_cells(name, scan_spec)
  return recv_get_cells()
end

#get_cells_as_arrays(name, scan_spec) ⇒ Object



190
191
192
193
# File 'lib/hypertable/gen-rb/client_service.rb', line 190

def get_cells_as_arrays(name, scan_spec)
  send_get_cells_as_arrays(name, scan_spec)
  return recv_get_cells_as_arrays()
end

#get_row(name, row) ⇒ Object



126
127
128
129
# File 'lib/hypertable/gen-rb/client_service.rb', line 126

def get_row(name, row)
  send_get_row(name, row)
  return recv_get_row()
end

#get_row_as_arrays(name, row) ⇒ Object



142
143
144
145
# File 'lib/hypertable/gen-rb/client_service.rb', line 142

def get_row_as_arrays(name, row)
  send_get_row_as_arrays(name, row)
  return recv_get_row_as_arrays()
end

#get_schema(name) ⇒ Object



328
329
330
331
# File 'lib/hypertable/gen-rb/client_service.rb', line 328

def get_schema(name)
  send_get_schema(name)
  return recv_get_schema()
end

#get_table_id(name) ⇒ Object



312
313
314
315
# File 'lib/hypertable/gen-rb/client_service.rb', line 312

def get_table_id(name)
  send_get_table_id(name)
  return recv_get_table_id()
end

#get_tablesObject



344
345
346
347
# File 'lib/hypertable/gen-rb/client_service.rb', line 344

def get_tables()
  send_get_tables()
  return recv_get_tables()
end

#next_cells(scanner) ⇒ Object



62
63
64
65
# File 'lib/hypertable/gen-rb/client_service.rb', line 62

def next_cells(scanner)
  send_next_cells(scanner)
  return recv_next_cells()
end

#next_cells_as_arrays(scanner) ⇒ Object



78
79
80
81
# File 'lib/hypertable/gen-rb/client_service.rb', line 78

def next_cells_as_arrays(scanner)
  send_next_cells_as_arrays(scanner)
  return recv_next_cells_as_arrays()
end

#next_row(scanner) ⇒ Object



94
95
96
97
# File 'lib/hypertable/gen-rb/client_service.rb', line 94

def next_row(scanner)
  send_next_row(scanner)
  return recv_next_row()
end

#next_row_as_arrays(scanner) ⇒ Object



110
111
112
113
# File 'lib/hypertable/gen-rb/client_service.rb', line 110

def next_row_as_arrays(scanner)
  send_next_row_as_arrays(scanner)
  return recv_next_row_as_arrays()
end

#open_mutator(name) ⇒ Object



206
207
208
209
# File 'lib/hypertable/gen-rb/client_service.rb', line 206

def open_mutator(name)
  send_open_mutator(name)
  return recv_open_mutator()
end

#open_scanner(name, scan_spec, retry_table_not_found) ⇒ Object



31
32
33
34
# File 'lib/hypertable/gen-rb/client_service.rb', line 31

def open_scanner(name, scan_spec, retry_table_not_found)
  send_open_scanner(name, scan_spec, retry_table_not_found)
  return recv_open_scanner()
end

#recv_close_mutatorObject



231
232
233
234
235
# File 'lib/hypertable/gen-rb/client_service.rb', line 231

def recv_close_mutator()
  result = receive_message(Close_mutator_result)
  raise result.e unless result.e.nil?
  return
end

#recv_close_scannerObject



56
57
58
59
60
# File 'lib/hypertable/gen-rb/client_service.rb', line 56

def recv_close_scanner()
  result = receive_message(Close_scanner_result)
  raise result.e unless result.e.nil?
  return
end

#recv_create_tableObject



25
26
27
28
29
# File 'lib/hypertable/gen-rb/client_service.rb', line 25

def recv_create_table()
  result = receive_message(Create_table_result)
  raise result.e unless result.e.nil?
  return
end

#recv_drop_tableObject



369
370
371
372
373
# File 'lib/hypertable/gen-rb/client_service.rb', line 369

def recv_drop_table()
  result = receive_message(Drop_table_result)
  raise result.e unless result.e.nil?
  return
end

#recv_flush_mutatorObject



306
307
308
309
310
# File 'lib/hypertable/gen-rb/client_service.rb', line 306

def recv_flush_mutator()
  result = receive_message(Flush_mutator_result)
  raise result.e unless result.e.nil?
  return
end

#recv_get_cellObject

Raises:

  • (::Thrift::ApplicationException)


167
168
169
170
171
172
# File 'lib/hypertable/gen-rb/client_service.rb', line 167

def recv_get_cell()
  result = receive_message(Get_cell_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_cell failed: unknown result')
end

#recv_get_cellsObject

Raises:

  • (::Thrift::ApplicationException)


183
184
185
186
187
188
# File 'lib/hypertable/gen-rb/client_service.rb', line 183

def recv_get_cells()
  result = receive_message(Get_cells_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_cells failed: unknown result')
end

#recv_get_cells_as_arraysObject

Raises:

  • (::Thrift::ApplicationException)


199
200
201
202
203
204
# File 'lib/hypertable/gen-rb/client_service.rb', line 199

def recv_get_cells_as_arrays()
  result = receive_message(Get_cells_as_arrays_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_cells_as_arrays failed: unknown result')
end

#recv_get_rowObject

Raises:

  • (::Thrift::ApplicationException)


135
136
137
138
139
140
# File 'lib/hypertable/gen-rb/client_service.rb', line 135

def recv_get_row()
  result = receive_message(Get_row_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_row failed: unknown result')
end

#recv_get_row_as_arraysObject

Raises:

  • (::Thrift::ApplicationException)


151
152
153
154
155
156
# File 'lib/hypertable/gen-rb/client_service.rb', line 151

def recv_get_row_as_arrays()
  result = receive_message(Get_row_as_arrays_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_row_as_arrays failed: unknown result')
end

#recv_get_schemaObject

Raises:

  • (::Thrift::ApplicationException)


337
338
339
340
341
342
# File 'lib/hypertable/gen-rb/client_service.rb', line 337

def recv_get_schema()
  result = receive_message(Get_schema_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_schema failed: unknown result')
end

#recv_get_table_idObject

Raises:

  • (::Thrift::ApplicationException)


321
322
323
324
325
326
# File 'lib/hypertable/gen-rb/client_service.rb', line 321

def recv_get_table_id()
  result = receive_message(Get_table_id_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_id failed: unknown result')
end

#recv_get_tablesObject

Raises:

  • (::Thrift::ApplicationException)


353
354
355
356
357
358
# File 'lib/hypertable/gen-rb/client_service.rb', line 353

def recv_get_tables()
  result = receive_message(Get_tables_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result')
end

#recv_next_cellsObject

Raises:

  • (::Thrift::ApplicationException)


71
72
73
74
75
76
# File 'lib/hypertable/gen-rb/client_service.rb', line 71

def recv_next_cells()
  result = receive_message(Next_cells_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_cells failed: unknown result')
end

#recv_next_cells_as_arraysObject

Raises:

  • (::Thrift::ApplicationException)


87
88
89
90
91
92
# File 'lib/hypertable/gen-rb/client_service.rb', line 87

def recv_next_cells_as_arrays()
  result = receive_message(Next_cells_as_arrays_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_cells_as_arrays failed: unknown result')
end

#recv_next_rowObject

Raises:

  • (::Thrift::ApplicationException)


103
104
105
106
107
108
# File 'lib/hypertable/gen-rb/client_service.rb', line 103

def recv_next_row()
  result = receive_message(Next_row_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_row failed: unknown result')
end

#recv_next_row_as_arraysObject

Raises:

  • (::Thrift::ApplicationException)


119
120
121
122
123
124
# File 'lib/hypertable/gen-rb/client_service.rb', line 119

def recv_next_row_as_arrays()
  result = receive_message(Next_row_as_arrays_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_row_as_arrays failed: unknown result')
end

#recv_open_mutatorObject

Raises:

  • (::Thrift::ApplicationException)


215
216
217
218
219
220
# File 'lib/hypertable/gen-rb/client_service.rb', line 215

def recv_open_mutator()
  result = receive_message(Open_mutator_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'open_mutator failed: unknown result')
end

#recv_open_scannerObject

Raises:

  • (::Thrift::ApplicationException)


40
41
42
43
44
45
# File 'lib/hypertable/gen-rb/client_service.rb', line 40

def recv_open_scanner()
  result = receive_message(Open_scanner_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'open_scanner failed: unknown result')
end

#recv_set_cellObject



246
247
248
249
250
# File 'lib/hypertable/gen-rb/client_service.rb', line 246

def recv_set_cell()
  result = receive_message(Set_cell_result)
  raise result.e unless result.e.nil?
  return
end

#recv_set_cell_as_arrayObject



261
262
263
264
265
# File 'lib/hypertable/gen-rb/client_service.rb', line 261

def recv_set_cell_as_array()
  result = receive_message(Set_cell_as_array_result)
  raise result.e unless result.e.nil?
  return
end

#recv_set_cellsObject



276
277
278
279
280
# File 'lib/hypertable/gen-rb/client_service.rb', line 276

def recv_set_cells()
  result = receive_message(Set_cells_result)
  raise result.e unless result.e.nil?
  return
end

#recv_set_cells_as_arraysObject



291
292
293
294
295
# File 'lib/hypertable/gen-rb/client_service.rb', line 291

def recv_set_cells_as_arrays()
  result = receive_message(Set_cells_as_arrays_result)
  raise result.e unless result.e.nil?
  return
end

#send_close_mutator(mutator, flush) ⇒ Object



227
228
229
# File 'lib/hypertable/gen-rb/client_service.rb', line 227

def send_close_mutator(mutator, flush)
  send_message('close_mutator', Close_mutator_args, :mutator => mutator, :flush => flush)
end

#send_close_scanner(scanner) ⇒ Object



52
53
54
# File 'lib/hypertable/gen-rb/client_service.rb', line 52

def send_close_scanner(scanner)
  send_message('close_scanner', Close_scanner_args, :scanner => scanner)
end

#send_create_table(name, schema) ⇒ Object



21
22
23
# File 'lib/hypertable/gen-rb/client_service.rb', line 21

def send_create_table(name, schema)
  send_message('create_table', Create_table_args, :name => name, :schema => schema)
end

#send_drop_table(name, if_exists) ⇒ Object



365
366
367
# File 'lib/hypertable/gen-rb/client_service.rb', line 365

def send_drop_table(name, if_exists)
  send_message('drop_table', Drop_table_args, :name => name, :if_exists => if_exists)
end

#send_flush_mutator(mutator) ⇒ Object



302
303
304
# File 'lib/hypertable/gen-rb/client_service.rb', line 302

def send_flush_mutator(mutator)
  send_message('flush_mutator', Flush_mutator_args, :mutator => mutator)
end

#send_get_cell(name, row, column) ⇒ Object



163
164
165
# File 'lib/hypertable/gen-rb/client_service.rb', line 163

def send_get_cell(name, row, column)
  send_message('get_cell', Get_cell_args, :name => name, :row => row, :column => column)
end

#send_get_cells(name, scan_spec) ⇒ Object



179
180
181
# File 'lib/hypertable/gen-rb/client_service.rb', line 179

def send_get_cells(name, scan_spec)
  send_message('get_cells', Get_cells_args, :name => name, :scan_spec => scan_spec)
end

#send_get_cells_as_arrays(name, scan_spec) ⇒ Object



195
196
197
# File 'lib/hypertable/gen-rb/client_service.rb', line 195

def send_get_cells_as_arrays(name, scan_spec)
  send_message('get_cells_as_arrays', Get_cells_as_arrays_args, :name => name, :scan_spec => scan_spec)
end

#send_get_row(name, row) ⇒ Object



131
132
133
# File 'lib/hypertable/gen-rb/client_service.rb', line 131

def send_get_row(name, row)
  send_message('get_row', Get_row_args, :name => name, :row => row)
end

#send_get_row_as_arrays(name, row) ⇒ Object



147
148
149
# File 'lib/hypertable/gen-rb/client_service.rb', line 147

def send_get_row_as_arrays(name, row)
  send_message('get_row_as_arrays', Get_row_as_arrays_args, :name => name, :row => row)
end

#send_get_schema(name) ⇒ Object



333
334
335
# File 'lib/hypertable/gen-rb/client_service.rb', line 333

def send_get_schema(name)
  send_message('get_schema', Get_schema_args, :name => name)
end

#send_get_table_id(name) ⇒ Object



317
318
319
# File 'lib/hypertable/gen-rb/client_service.rb', line 317

def send_get_table_id(name)
  send_message('get_table_id', Get_table_id_args, :name => name)
end

#send_get_tablesObject



349
350
351
# File 'lib/hypertable/gen-rb/client_service.rb', line 349

def send_get_tables()
  send_message('get_tables', Get_tables_args)
end

#send_next_cells(scanner) ⇒ Object



67
68
69
# File 'lib/hypertable/gen-rb/client_service.rb', line 67

def send_next_cells(scanner)
  send_message('next_cells', Next_cells_args, :scanner => scanner)
end

#send_next_cells_as_arrays(scanner) ⇒ Object



83
84
85
# File 'lib/hypertable/gen-rb/client_service.rb', line 83

def send_next_cells_as_arrays(scanner)
  send_message('next_cells_as_arrays', Next_cells_as_arrays_args, :scanner => scanner)
end

#send_next_row(scanner) ⇒ Object



99
100
101
# File 'lib/hypertable/gen-rb/client_service.rb', line 99

def send_next_row(scanner)
  send_message('next_row', Next_row_args, :scanner => scanner)
end

#send_next_row_as_arrays(scanner) ⇒ Object



115
116
117
# File 'lib/hypertable/gen-rb/client_service.rb', line 115

def send_next_row_as_arrays(scanner)
  send_message('next_row_as_arrays', Next_row_as_arrays_args, :scanner => scanner)
end

#send_open_mutator(name) ⇒ Object



211
212
213
# File 'lib/hypertable/gen-rb/client_service.rb', line 211

def send_open_mutator(name)
  send_message('open_mutator', Open_mutator_args, :name => name)
end

#send_open_scanner(name, scan_spec, retry_table_not_found) ⇒ Object



36
37
38
# File 'lib/hypertable/gen-rb/client_service.rb', line 36

def send_open_scanner(name, scan_spec, retry_table_not_found)
  send_message('open_scanner', Open_scanner_args, :name => name, :scan_spec => scan_spec, :retry_table_not_found => retry_table_not_found)
end

#send_set_cell(mutator, cell) ⇒ Object



242
243
244
# File 'lib/hypertable/gen-rb/client_service.rb', line 242

def send_set_cell(mutator, cell)
  send_message('set_cell', Set_cell_args, :mutator => mutator, :cell => cell)
end

#send_set_cell_as_array(mutator, cell) ⇒ Object



257
258
259
# File 'lib/hypertable/gen-rb/client_service.rb', line 257

def send_set_cell_as_array(mutator, cell)
  send_message('set_cell_as_array', Set_cell_as_array_args, :mutator => mutator, :cell => cell)
end

#send_set_cells(mutator, cells) ⇒ Object



272
273
274
# File 'lib/hypertable/gen-rb/client_service.rb', line 272

def send_set_cells(mutator, cells)
  send_message('set_cells', Set_cells_args, :mutator => mutator, :cells => cells)
end

#send_set_cells_as_arrays(mutator, cells) ⇒ Object



287
288
289
# File 'lib/hypertable/gen-rb/client_service.rb', line 287

def send_set_cells_as_arrays(mutator, cells)
  send_message('set_cells_as_arrays', Set_cells_as_arrays_args, :mutator => mutator, :cells => cells)
end

#set_cell(mutator, cell) ⇒ Object



237
238
239
240
# File 'lib/hypertable/gen-rb/client_service.rb', line 237

def set_cell(mutator, cell)
  send_set_cell(mutator, cell)
  recv_set_cell()
end

#set_cell_as_array(mutator, cell) ⇒ Object



252
253
254
255
# File 'lib/hypertable/gen-rb/client_service.rb', line 252

def set_cell_as_array(mutator, cell)
  send_set_cell_as_array(mutator, cell)
  recv_set_cell_as_array()
end

#set_cells(mutator, cells) ⇒ Object



267
268
269
270
# File 'lib/hypertable/gen-rb/client_service.rb', line 267

def set_cells(mutator, cells)
  send_set_cells(mutator, cells)
  recv_set_cells()
end

#set_cells_as_arrays(mutator, cells) ⇒ Object



282
283
284
285
# File 'lib/hypertable/gen-rb/client_service.rb', line 282

def set_cells_as_arrays(mutator, cells)
  send_set_cells_as_arrays(mutator, cells)
  recv_set_cells_as_arrays()
end