# # Autogenerated by Thrift # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'thrift' require 'thrift/protocol' require File.dirname(__FILE__) + '/Client_types' module Hypertable module ThriftGen module ClientService class Client include ::Thrift::Client def create_table(name, schema) send_create_table(name, schema) recv_create_table() end def send_create_table(name, schema) send_message('create_table', Create_table_args, :name => name, :schema => schema) end def recv_create_table() result = receive_message(Create_table_result) raise result.e unless result.e.nil? return end def open_scanner(name, scan_spec) send_open_scanner(name, scan_spec) return recv_open_scanner() end def send_open_scanner(name, scan_spec) send_message('open_scanner', Open_scanner_args, :name => name, :scan_spec => scan_spec) end 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 def close_scanner(scanner) send_close_scanner(scanner) recv_close_scanner() end def send_close_scanner(scanner) send_message('close_scanner', Close_scanner_args, :scanner => scanner) end def recv_close_scanner() result = receive_message(Close_scanner_result) raise result.e unless result.e.nil? return end def next_cells(scanner) send_next_cells(scanner) return recv_next_cells() end def send_next_cells(scanner) send_message('next_cells', Next_cells_args, :scanner => scanner) end 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 def next_cells_as_arrays(scanner) send_next_cells_as_arrays(scanner) return recv_next_cells_as_arrays() end def send_next_cells_as_arrays(scanner) send_message('next_cells_as_arrays', Next_cells_as_arrays_args, :scanner => scanner) end 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 def next_row(scanner) send_next_row(scanner) return recv_next_row() end def send_next_row(scanner) send_message('next_row', Next_row_args, :scanner => scanner) end 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 def next_row_as_arrays(scanner) send_next_row_as_arrays(scanner) return recv_next_row_as_arrays() end def send_next_row_as_arrays(scanner) send_message('next_row_as_arrays', Next_row_as_arrays_args, :scanner => scanner) end 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 def get_row(name, row) send_get_row(name, row) return recv_get_row() end def send_get_row(name, row) send_message('get_row', Get_row_args, :name => name, :row => row) end 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 def get_row_as_arrays(name, row) send_get_row_as_arrays(name, row) return recv_get_row_as_arrays() end def send_get_row_as_arrays(name, row) send_message('get_row_as_arrays', Get_row_as_arrays_args, :name => name, :row => row) end 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 def get_cell(name, row, column) send_get_cell(name, row, column) return recv_get_cell() end def send_get_cell(name, row, column) send_message('get_cell', Get_cell_args, :name => name, :row => row, :column => column) end 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 def get_cells(name, scan_spec) send_get_cells(name, scan_spec) return recv_get_cells() end def send_get_cells(name, scan_spec) send_message('get_cells', Get_cells_args, :name => name, :scan_spec => scan_spec) end 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 def get_cells_as_arrays(name, scan_spec) send_get_cells_as_arrays(name, scan_spec) return recv_get_cells_as_arrays() end 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 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 def open_mutator(name) send_open_mutator(name) return recv_open_mutator() end def send_open_mutator(name) send_message('open_mutator', Open_mutator_args, :name => name) end 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 def close_mutator(mutator, flush) send_close_mutator(mutator, flush) recv_close_mutator() end def send_close_mutator(mutator, flush) send_message('close_mutator', Close_mutator_args, :mutator => mutator, :flush => flush) end def recv_close_mutator() result = receive_message(Close_mutator_result) raise result.e unless result.e.nil? return end def set_cell(mutator, cell) send_set_cell(mutator, cell) recv_set_cell() end def send_set_cell(mutator, cell) send_message('set_cell', Set_cell_args, :mutator => mutator, :cell => cell) end def recv_set_cell() result = receive_message(Set_cell_result) raise result.e unless result.e.nil? return end def set_cell_as_array(mutator, cell) send_set_cell_as_array(mutator, cell) recv_set_cell_as_array() end def send_set_cell_as_array(mutator, cell) send_message('set_cell_as_array', Set_cell_as_array_args, :mutator => mutator, :cell => cell) end def recv_set_cell_as_array() result = receive_message(Set_cell_as_array_result) raise result.e unless result.e.nil? return end def set_cells(mutator, cells) send_set_cells(mutator, cells) recv_set_cells() end def send_set_cells(mutator, cells) send_message('set_cells', Set_cells_args, :mutator => mutator, :cells => cells) end def recv_set_cells() result = receive_message(Set_cells_result) raise result.e unless result.e.nil? return end def set_cells_as_arrays(mutator, cells) send_set_cells_as_arrays(mutator, cells) recv_set_cells_as_arrays() end def send_set_cells_as_arrays(mutator, cells) send_message('set_cells_as_arrays', Set_cells_as_arrays_args, :mutator => mutator, :cells => cells) end def recv_set_cells_as_arrays() result = receive_message(Set_cells_as_arrays_result) raise result.e unless result.e.nil? return end def flush_mutator(mutator) send_flush_mutator(mutator) recv_flush_mutator() end def send_flush_mutator(mutator) send_message('flush_mutator', Flush_mutator_args, :mutator => mutator) end def recv_flush_mutator() result = receive_message(Flush_mutator_result) raise result.e unless result.e.nil? return end def get_table_id(name) send_get_table_id(name) return recv_get_table_id() end def send_get_table_id(name) send_message('get_table_id', Get_table_id_args, :name => name) end 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 def get_schema(name) send_get_schema(name) return recv_get_schema() end def send_get_schema(name) send_message('get_schema', Get_schema_args, :name => name) end 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 def get_tables() send_get_tables() return recv_get_tables() end def send_get_tables() send_message('get_tables', Get_tables_args) end 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 def drop_table(name, if_exists) send_drop_table(name, if_exists) recv_drop_table() end def send_drop_table(name, if_exists) send_message('drop_table', Drop_table_args, :name => name, :if_exists => if_exists) end def recv_drop_table() result = receive_message(Drop_table_result) raise result.e unless result.e.nil? return end end class Processor include ::Thrift::Processor def process_create_table(seqid, iprot, oprot) args = read_args(iprot, Create_table_args) result = Create_table_result.new() begin @handler.create_table(args.name, args.schema) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'create_table', seqid) end def process_open_scanner(seqid, iprot, oprot) args = read_args(iprot, Open_scanner_args) result = Open_scanner_result.new() begin result.success = @handler.open_scanner(args.name, args.scan_spec) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'open_scanner', seqid) end def process_close_scanner(seqid, iprot, oprot) args = read_args(iprot, Close_scanner_args) result = Close_scanner_result.new() begin @handler.close_scanner(args.scanner) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'close_scanner', seqid) end def process_next_cells(seqid, iprot, oprot) args = read_args(iprot, Next_cells_args) result = Next_cells_result.new() begin result.success = @handler.next_cells(args.scanner) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'next_cells', seqid) end def process_next_cells_as_arrays(seqid, iprot, oprot) args = read_args(iprot, Next_cells_as_arrays_args) result = Next_cells_as_arrays_result.new() begin result.success = @handler.next_cells_as_arrays(args.scanner) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'next_cells_as_arrays', seqid) end def process_next_row(seqid, iprot, oprot) args = read_args(iprot, Next_row_args) result = Next_row_result.new() begin result.success = @handler.next_row(args.scanner) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'next_row', seqid) end def process_next_row_as_arrays(seqid, iprot, oprot) args = read_args(iprot, Next_row_as_arrays_args) result = Next_row_as_arrays_result.new() begin result.success = @handler.next_row_as_arrays(args.scanner) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'next_row_as_arrays', seqid) end def process_get_row(seqid, iprot, oprot) args = read_args(iprot, Get_row_args) result = Get_row_result.new() begin result.success = @handler.get_row(args.name, args.row) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_row', seqid) end def process_get_row_as_arrays(seqid, iprot, oprot) args = read_args(iprot, Get_row_as_arrays_args) result = Get_row_as_arrays_result.new() begin result.success = @handler.get_row_as_arrays(args.name, args.row) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_row_as_arrays', seqid) end def process_get_cell(seqid, iprot, oprot) args = read_args(iprot, Get_cell_args) result = Get_cell_result.new() begin result.success = @handler.get_cell(args.name, args.row, args.column) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_cell', seqid) end def process_get_cells(seqid, iprot, oprot) args = read_args(iprot, Get_cells_args) result = Get_cells_result.new() begin result.success = @handler.get_cells(args.name, args.scan_spec) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_cells', seqid) end def process_get_cells_as_arrays(seqid, iprot, oprot) args = read_args(iprot, Get_cells_as_arrays_args) result = Get_cells_as_arrays_result.new() begin result.success = @handler.get_cells_as_arrays(args.name, args.scan_spec) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_cells_as_arrays', seqid) end def process_open_mutator(seqid, iprot, oprot) args = read_args(iprot, Open_mutator_args) result = Open_mutator_result.new() begin result.success = @handler.open_mutator(args.name) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'open_mutator', seqid) end def process_close_mutator(seqid, iprot, oprot) args = read_args(iprot, Close_mutator_args) result = Close_mutator_result.new() begin @handler.close_mutator(args.mutator, args.flush) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'close_mutator', seqid) end def process_set_cell(seqid, iprot, oprot) args = read_args(iprot, Set_cell_args) result = Set_cell_result.new() begin @handler.set_cell(args.mutator, args.cell) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'set_cell', seqid) end def process_set_cell_as_array(seqid, iprot, oprot) args = read_args(iprot, Set_cell_as_array_args) result = Set_cell_as_array_result.new() begin @handler.set_cell_as_array(args.mutator, args.cell) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'set_cell_as_array', seqid) end def process_set_cells(seqid, iprot, oprot) args = read_args(iprot, Set_cells_args) result = Set_cells_result.new() begin @handler.set_cells(args.mutator, args.cells) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'set_cells', seqid) end def process_set_cells_as_arrays(seqid, iprot, oprot) args = read_args(iprot, Set_cells_as_arrays_args) result = Set_cells_as_arrays_result.new() begin @handler.set_cells_as_arrays(args.mutator, args.cells) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'set_cells_as_arrays', seqid) end def process_flush_mutator(seqid, iprot, oprot) args = read_args(iprot, Flush_mutator_args) result = Flush_mutator_result.new() begin @handler.flush_mutator(args.mutator) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'flush_mutator', seqid) end def process_get_table_id(seqid, iprot, oprot) args = read_args(iprot, Get_table_id_args) result = Get_table_id_result.new() begin result.success = @handler.get_table_id(args.name) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_table_id', seqid) end def process_get_schema(seqid, iprot, oprot) args = read_args(iprot, Get_schema_args) result = Get_schema_result.new() begin result.success = @handler.get_schema(args.name) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_schema', seqid) end def process_get_tables(seqid, iprot, oprot) args = read_args(iprot, Get_tables_args) result = Get_tables_result.new() begin result.success = @handler.get_tables() rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_tables', seqid) end def process_drop_table(seqid, iprot, oprot) args = read_args(iprot, Drop_table_args) result = Drop_table_result.new() begin @handler.drop_table(args.name, args.if_exists) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'drop_table', seqid) end end # HELPER FUNCTIONS AND STRUCTURES class Create_table_args include ::Thrift::Struct NAME = 1 SCHEMA = 2 Thrift::Struct.field_accessor self, :name, :schema FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, SCHEMA => {:type => Thrift::Types::STRING, :name => 'schema'} } def struct_fields; FIELDS; end def validate end end class Create_table_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Open_scanner_args include ::Thrift::Struct NAME = 1 SCAN_SPEC = 2 Thrift::Struct.field_accessor self, :name, :scan_spec FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, SCAN_SPEC => {:type => Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec} } def struct_fields; FIELDS; end def validate end end class Open_scanner_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::I64, :name => 'success'}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Close_scanner_args include ::Thrift::Struct SCANNER = 1 Thrift::Struct.field_accessor self, :scanner FIELDS = { SCANNER => {:type => Thrift::Types::I64, :name => 'scanner'} } def struct_fields; FIELDS; end def validate end end class Close_scanner_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Next_cells_args include ::Thrift::Struct SCANNER = 1 Thrift::Struct.field_accessor self, :scanner FIELDS = { SCANNER => {:type => Thrift::Types::I64, :name => 'scanner'} } def struct_fields; FIELDS; end def validate end end class Next_cells_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Next_cells_as_arrays_args include ::Thrift::Struct SCANNER = 1 Thrift::Struct.field_accessor self, :scanner FIELDS = { SCANNER => {:type => Thrift::Types::I64, :name => 'scanner'} } def struct_fields; FIELDS; end def validate end end class Next_cells_as_arrays_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::LIST, :element => {:type => Thrift::Types::STRING}}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Next_row_args include ::Thrift::Struct SCANNER = 1 Thrift::Struct.field_accessor self, :scanner FIELDS = { SCANNER => {:type => Thrift::Types::I64, :name => 'scanner'} } def struct_fields; FIELDS; end def validate end end class Next_row_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Next_row_as_arrays_args include ::Thrift::Struct SCANNER = 1 Thrift::Struct.field_accessor self, :scanner FIELDS = { SCANNER => {:type => Thrift::Types::I64, :name => 'scanner'} } def struct_fields; FIELDS; end def validate end end class Next_row_as_arrays_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::LIST, :element => {:type => Thrift::Types::STRING}}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_row_args include ::Thrift::Struct NAME = 1 ROW = 2 Thrift::Struct.field_accessor self, :name, :row FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, ROW => {:type => Thrift::Types::STRING, :name => 'row'} } def struct_fields; FIELDS; end def validate end end class Get_row_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_row_as_arrays_args include ::Thrift::Struct NAME = 1 ROW = 2 Thrift::Struct.field_accessor self, :name, :row FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, ROW => {:type => Thrift::Types::STRING, :name => 'row'} } def struct_fields; FIELDS; end def validate end end class Get_row_as_arrays_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::LIST, :element => {:type => Thrift::Types::STRING}}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_cell_args include ::Thrift::Struct NAME = 1 ROW = 2 COLUMN = 3 Thrift::Struct.field_accessor self, :name, :row, :column FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, ROW => {:type => Thrift::Types::STRING, :name => 'row'}, COLUMN => {:type => Thrift::Types::STRING, :name => 'column'} } def struct_fields; FIELDS; end def validate end end class Get_cell_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::STRING, :name => 'success'}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_cells_args include ::Thrift::Struct NAME = 1 SCAN_SPEC = 2 Thrift::Struct.field_accessor self, :name, :scan_spec FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, SCAN_SPEC => {:type => Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec} } def struct_fields; FIELDS; end def validate end end class Get_cells_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_cells_as_arrays_args include ::Thrift::Struct NAME = 1 SCAN_SPEC = 2 Thrift::Struct.field_accessor self, :name, :scan_spec FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, SCAN_SPEC => {:type => Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec} } def struct_fields; FIELDS; end def validate end end class Get_cells_as_arrays_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::LIST, :element => {:type => Thrift::Types::STRING}}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Open_mutator_args include ::Thrift::Struct NAME = 1 Thrift::Struct.field_accessor self, :name FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'} } def struct_fields; FIELDS; end def validate end end class Open_mutator_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::I64, :name => 'success'}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Close_mutator_args include ::Thrift::Struct MUTATOR = 1 FLUSH = 2 Thrift::Struct.field_accessor self, :mutator, :flush FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, FLUSH => {:type => Thrift::Types::BOOL, :name => 'flush', :default => true} } def struct_fields; FIELDS; end def validate end end class Close_mutator_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Set_cell_args include ::Thrift::Struct MUTATOR = 1 CELL = 2 Thrift::Struct.field_accessor self, :mutator, :cell FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, CELL => {:type => Thrift::Types::STRUCT, :name => 'cell', :class => Hypertable::ThriftGen::Cell} } def struct_fields; FIELDS; end def validate end end class Set_cell_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Set_cell_as_array_args include ::Thrift::Struct MUTATOR = 1 CELL = 2 Thrift::Struct.field_accessor self, :mutator, :cell FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, CELL => {:type => Thrift::Types::LIST, :name => 'cell', :element => {:type => Thrift::Types::STRING}} } def struct_fields; FIELDS; end def validate end end class Set_cell_as_array_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Set_cells_args include ::Thrift::Struct MUTATOR = 1 CELLS = 2 Thrift::Struct.field_accessor self, :mutator, :cells FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, CELLS => {:type => Thrift::Types::LIST, :name => 'cells', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}} } def struct_fields; FIELDS; end def validate end end class Set_cells_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Set_cells_as_arrays_args include ::Thrift::Struct MUTATOR = 1 CELLS = 2 Thrift::Struct.field_accessor self, :mutator, :cells FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, CELLS => {:type => Thrift::Types::LIST, :name => 'cells', :element => {:type => Thrift::Types::LIST, :element => {:type => Thrift::Types::STRING}}} } def struct_fields; FIELDS; end def validate end end class Set_cells_as_arrays_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Flush_mutator_args include ::Thrift::Struct MUTATOR = 1 Thrift::Struct.field_accessor self, :mutator FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'} } def struct_fields; FIELDS; end def validate end end class Flush_mutator_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_table_id_args include ::Thrift::Struct NAME = 1 Thrift::Struct.field_accessor self, :name FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'} } def struct_fields; FIELDS; end def validate end end class Get_table_id_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::I32, :name => 'success'}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_schema_args include ::Thrift::Struct NAME = 1 Thrift::Struct.field_accessor self, :name FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'} } def struct_fields; FIELDS; end def validate end end class Get_schema_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::STRING, :name => 'success'}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Get_tables_args include ::Thrift::Struct FIELDS = { } def struct_fields; FIELDS; end def validate end end class Get_tables_result include ::Thrift::Struct SUCCESS = 0 E = 1 Thrift::Struct.field_accessor self, :success, :e FIELDS = { SUCCESS => {:type => Thrift::Types::LIST, :name => 'success', :element => {:type => Thrift::Types::STRING}}, E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end class Drop_table_args include ::Thrift::Struct NAME = 1 IF_EXISTS = 2 Thrift::Struct.field_accessor self, :name, :if_exists FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, IF_EXISTS => {:type => Thrift::Types::BOOL, :name => 'if_exists', :default => true} } def struct_fields; FIELDS; end def validate end end class Drop_table_result include ::Thrift::Struct E = 1 Thrift::Struct.field_accessor self, :e FIELDS = { E => {:type => Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException} } def struct_fields; FIELDS; end def validate end end end end end