# # 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 authenticate(user, password_blob) send_authenticate(user, password_blob) return recv_authenticate() end def send_authenticate(user, password_blob) send_message('authenticate', Authenticate_args, :user => user, :password_blob => password_blob) end def recv_authenticate() result = receive_message(Authenticate_result) return result.success unless result.success.nil? raise result.e unless result.e.nil? raise Thrift::ApplicationException.new(Thrift::ApplicationException::MISSING_RESULT, 'authenticate failed: unknown result') end def create_table(name, schema, token) send_create_table(name, schema, token) recv_create_table() end def send_create_table(name, schema, token) send_message('create_table', Create_table_args, :name => name, :schema => schema, :token => token) 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, token) send_open_scanner(name, scan_spec, token) return recv_open_scanner() end def send_open_scanner(name, scan_spec, token) send_message('open_scanner', Open_scanner_args, :name => name, :scan_spec => scan_spec, :token => token) 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, token) send_close_scanner(scanner, token) recv_close_scanner() end def send_close_scanner(scanner, token) send_message('close_scanner', Close_scanner_args, :scanner => scanner, :token => token) end def recv_close_scanner() result = receive_message(Close_scanner_result) raise result.e unless result.e.nil? return end def next_cells(scanner, token) send_next_cells(scanner, token) return recv_next_cells() end def send_next_cells(scanner, token) send_message('next_cells', Next_cells_args, :scanner => scanner, :token => token) 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 get_row(name, row, token) send_get_row(name, row, token) return recv_get_row() end def send_get_row(name, row, token) send_message('get_row', Get_row_args, :name => name, :row => row, :token => token) 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_cell(name, row, column, token) send_get_cell(name, row, column, token) return recv_get_cell() end def send_get_cell(name, row, column, token) send_message('get_cell', Get_cell_args, :name => name, :row => row, :column => column, :token => token) 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, token) send_get_cells(name, scan_spec, token) return recv_get_cells() end def send_get_cells(name, scan_spec, token) send_message('get_cells', Get_cells_args, :name => name, :scan_spec => scan_spec, :token => token) 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 open_mutator(name, token) send_open_mutator(name, token) return recv_open_mutator() end def send_open_mutator(name, token) send_message('open_mutator', Open_mutator_args, :name => name, :token => token) 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, token) send_close_mutator(mutator, flush, token) recv_close_mutator() end def send_close_mutator(mutator, flush, token) send_message('close_mutator', Close_mutator_args, :mutator => mutator, :flush => flush, :token => token) 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, token) send_set_cell(mutator, cell, token) recv_set_cell() end def send_set_cell(mutator, cell, token) send_message('set_cell', Set_cell_args, :mutator => mutator, :cell => cell, :token => token) end def recv_set_cell() result = receive_message(Set_cell_result) raise result.e unless result.e.nil? return end def set_cells(mutator, cells, token) send_set_cells(mutator, cells, token) recv_set_cells() end def send_set_cells(mutator, cells, token) send_message('set_cells', Set_cells_args, :mutator => mutator, :cells => cells, :token => token) end def recv_set_cells() result = receive_message(Set_cells_result) raise result.e unless result.e.nil? return end def flush_mutator(mutator, token) send_flush_mutator(mutator, token) recv_flush_mutator() end def send_flush_mutator(mutator, token) send_message('flush_mutator', Flush_mutator_args, :mutator => mutator, :token => token) 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, token) send_get_table_id(name, token) return recv_get_table_id() end def send_get_table_id(name, token) send_message('get_table_id', Get_table_id_args, :name => name, :token => token) 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, token) send_get_schema(name, token) return recv_get_schema() end def send_get_schema(name, token) send_message('get_schema', Get_schema_args, :name => name, :token => token) 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(token) send_get_tables(token) return recv_get_tables() end def send_get_tables(token) send_message('get_tables', Get_tables_args, :token => token) 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, token) send_drop_table(name, if_exists, token) recv_drop_table() end def send_drop_table(name, if_exists, token) send_message('drop_table', Drop_table_args, :name => name, :if_exists => if_exists, :token => token) 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_authenticate(seqid, iprot, oprot) args = read_args(iprot, Authenticate_args) result = Authenticate_result.new() begin result.success = @handler.authenticate(args.user, args.password_blob) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'authenticate', seqid) end 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, args.token) 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, args.token) 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, args.token) 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, args.token) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'next_cells', 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, args.token) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_row', 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, args.token) 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, args.token) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'get_cells', 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, args.token) 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, args.token) 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, args.token) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'set_cell', 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, args.token) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'set_cells', 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, args.token) 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, args.token) 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, args.token) 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(args.token) 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, args.token) rescue Hypertable::ThriftGen::ClientException => e result.e = e end write_result(result, oprot, 'drop_table', seqid) end end # HELPER FUNCTIONS AND STRUCTURES class Authenticate_args include ::Thrift::Struct USER = 1 PASSWORD_BLOB = 2 Thrift::Struct.field_accessor self, :user, :password_blob FIELDS = { USER => {:type => Thrift::Types::STRING, :name => 'user'}, PASSWORD_BLOB => {:type => Thrift::Types::STRING, :name => 'password_blob'} } def struct_fields; FIELDS; end def validate end end class Authenticate_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 Create_table_args include ::Thrift::Struct NAME = 1 SCHEMA = 2 TOKEN = 3 Thrift::Struct.field_accessor self, :name, :schema, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, SCHEMA => {:type => Thrift::Types::STRING, :name => 'schema'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 3 Thrift::Struct.field_accessor self, :name, :scan_spec, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, SCAN_SPEC => {:type => Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 2 Thrift::Struct.field_accessor self, :scanner, :token FIELDS = { SCANNER => {:type => Thrift::Types::I64, :name => 'scanner'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 2 Thrift::Struct.field_accessor self, :scanner, :token FIELDS = { SCANNER => {:type => Thrift::Types::I64, :name => 'scanner'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 Get_row_args include ::Thrift::Struct NAME = 1 ROW = 2 TOKEN = 3 Thrift::Struct.field_accessor self, :name, :row, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, ROW => {:type => Thrift::Types::STRING, :name => 'row'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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_cell_args include ::Thrift::Struct NAME = 1 ROW = 2 COLUMN = 3 TOKEN = 4 Thrift::Struct.field_accessor self, :name, :row, :column, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, ROW => {:type => Thrift::Types::STRING, :name => 'row'}, COLUMN => {:type => Thrift::Types::STRING, :name => 'column'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 3 Thrift::Struct.field_accessor self, :name, :scan_spec, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, SCAN_SPEC => {:type => Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 Open_mutator_args include ::Thrift::Struct NAME = 1 TOKEN = 2 Thrift::Struct.field_accessor self, :name, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 3 Thrift::Struct.field_accessor self, :mutator, :flush, :token FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, FLUSH => {:type => Thrift::Types::BOOL, :name => 'flush', :default => true}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 3 Thrift::Struct.field_accessor self, :mutator, :cell, :token FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, CELL => {:type => Thrift::Types::STRUCT, :name => 'cell', :class => Hypertable::ThriftGen::Cell}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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_cells_args include ::Thrift::Struct MUTATOR = 1 CELLS = 2 TOKEN = 3 Thrift::Struct.field_accessor self, :mutator, :cells, :token FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, CELLS => {:type => Thrift::Types::LIST, :name => 'cells', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 Flush_mutator_args include ::Thrift::Struct MUTATOR = 1 TOKEN = 2 Thrift::Struct.field_accessor self, :mutator, :token FIELDS = { MUTATOR => {:type => Thrift::Types::I64, :name => 'mutator'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 2 Thrift::Struct.field_accessor self, :name, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 2 Thrift::Struct.field_accessor self, :name, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 1 Thrift::Struct.field_accessor self, :token FIELDS = { TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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 TOKEN = 3 Thrift::Struct.field_accessor self, :name, :if_exists, :token FIELDS = { NAME => {:type => Thrift::Types::STRING, :name => 'name'}, IF_EXISTS => {:type => Thrift::Types::BOOL, :name => 'if_exists', :default => true}, TOKEN => {:type => Thrift::Types::I64, :name => 'token'} } 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