Class: Hypertable::ThriftGen::HqlService::Client

Inherits:
ClientService::Client show all
Includes:
Thrift::Client
Defined in:
lib/hypertable/gen-rb/hql_service.rb

Direct Known Subclasses

Hypertable::ThriftClient

Instance Method Summary collapse

Methods inherited from ClientService::Client

#close_mutator, #close_scanner, #create_table, #drop_table, #flush_mutator, #get_cell, #get_cells, #get_cells_as_arrays, #get_row, #get_row_as_arrays, #get_schema, #get_table_id, #get_tables, #next_cells, #next_cells_as_arrays, #next_row, #next_row_as_arrays, #open_mutator, #open_scanner, #recv_close_mutator, #recv_close_scanner, #recv_create_table, #recv_drop_table, #recv_flush_mutator, #recv_get_cell, #recv_get_cells, #recv_get_cells_as_arrays, #recv_get_row, #recv_get_row_as_arrays, #recv_get_schema, #recv_get_table_id, #recv_get_tables, #recv_next_cells, #recv_next_cells_as_arrays, #recv_next_row, #recv_next_row_as_arrays, #recv_open_mutator, #recv_open_scanner, #recv_set_cell, #recv_set_cell_as_array, #recv_set_cells, #recv_set_cells_as_arrays, #send_close_mutator, #send_close_scanner, #send_create_table, #send_drop_table, #send_flush_mutator, #send_get_cell, #send_get_cells, #send_get_cells_as_arrays, #send_get_row, #send_get_row_as_arrays, #send_get_schema, #send_get_table_id, #send_get_tables, #send_next_cells, #send_next_cells_as_arrays, #send_next_row, #send_next_row_as_arrays, #send_open_mutator, #send_open_scanner, #send_set_cell, #send_set_cell_as_array, #send_set_cells, #send_set_cells_as_arrays, #set_cell, #set_cell_as_array, #set_cells, #set_cells_as_arrays

Instance Method Details

#hql_exec(command, noflush, unbuffered) ⇒ Object



17
18
19
20
# File 'lib/hypertable/gen-rb/hql_service.rb', line 17

def hql_exec(command, noflush, unbuffered)
  send_hql_exec(command, noflush, unbuffered)
  return recv_hql_exec()
end

#hql_query(command) ⇒ Object



33
34
35
36
# File 'lib/hypertable/gen-rb/hql_service.rb', line 33

def hql_query(command)
  send_hql_query(command)
  return recv_hql_query()
end

#recv_hql_execObject

Raises:

  • (::Thrift::ApplicationException)


26
27
28
29
30
31
# File 'lib/hypertable/gen-rb/hql_service.rb', line 26

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

#recv_hql_queryObject

Raises:

  • (::Thrift::ApplicationException)


42
43
44
45
46
47
# File 'lib/hypertable/gen-rb/hql_service.rb', line 42

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

#send_hql_exec(command, noflush, unbuffered) ⇒ Object



22
23
24
# File 'lib/hypertable/gen-rb/hql_service.rb', line 22

def send_hql_exec(command, noflush, unbuffered)
  send_message('hql_exec', Hql_exec_args, :command => command, :noflush => noflush, :unbuffered => unbuffered)
end

#send_hql_query(command) ⇒ Object



38
39
40
# File 'lib/hypertable/gen-rb/hql_service.rb', line 38

def send_hql_query(command)
  send_message('hql_query', Hql_query_args, :command => command)
end