class ThriftHiveMetastore::Processor

Public Instance Methods

process_add_index(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1444
def process_add_index(seqid, iprot, oprot)
  args = read_args(iprot, Add_index_args)
  result = Add_index_result.new()
  begin
    result.success = @handler.add_index(args.new_index, args.index_table)
  rescue ::InvalidObjectException => o1
    result.o1 = o1
  rescue ::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'add_index', seqid)
end
process_add_partition(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1203
def process_add_partition(seqid, iprot, oprot)
  args = read_args(iprot, Add_partition_args)
  result = Add_partition_result.new()
  begin
    result.success = @handler.add_partition(args.new_part)
  rescue ::InvalidObjectException => o1
    result.o1 = o1
  rescue ::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'add_partition', seqid)
end
process_alter_database(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1030
def process_alter_database(seqid, iprot, oprot)
  args = read_args(iprot, Alter_database_args)
  result = Alter_database_result.new()
  begin
    @handler.alter_database(args.dbname, args.db)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_database', seqid)
end
process_alter_index(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1459
def process_alter_index(seqid, iprot, oprot)
  args = read_args(iprot, Alter_index_args)
  result = Alter_index_result.new()
  begin
    @handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
  rescue ::InvalidOperationException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_index', seqid)
end
process_alter_partition(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1398
def process_alter_partition(seqid, iprot, oprot)
  args = read_args(iprot, Alter_partition_args)
  result = Alter_partition_result.new()
  begin
    @handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
  rescue ::InvalidOperationException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_partition', seqid)
end
process_alter_table(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1190
def process_alter_table(seqid, iprot, oprot)
  args = read_args(iprot, Alter_table_args)
  result = Alter_table_result.new()
  begin
    @handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
  rescue ::InvalidOperationException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_table', seqid)
end
process_append_partition(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1218
def process_append_partition(seqid, iprot, oprot)
  args = read_args(iprot, Append_partition_args)
  result = Append_partition_result.new()
  begin
    result.success = @handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
  rescue ::InvalidObjectException => o1
    result.o1 = o1
  rescue ::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'append_partition', seqid)
end
process_append_partition_by_name(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1233
def process_append_partition_by_name(seqid, iprot, oprot)
  args = read_args(iprot, Append_partition_by_name_args)
  result = Append_partition_by_name_result.new()
  begin
    result.success = @handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  rescue ::InvalidObjectException => o1
    result.o1 = o1
  rescue ::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'append_partition_by_name', seqid)
end
process_cancel_delegation_token(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1665
def process_cancel_delegation_token(seqid, iprot, oprot)
  args = read_args(iprot, Cancel_delegation_token_args)
  result = Cancel_delegation_token_result.new()
  begin
    @handler.cancel_delegation_token(args.token_str_form)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'cancel_delegation_token', seqid)
end
process_create_database(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 965
def process_create_database(seqid, iprot, oprot)
  args = read_args(iprot, Create_database_args)
  result = Create_database_result.new()
  begin
    @handler.create_database(args.database)
  rescue ::AlreadyExistsException => o1
    result.o1 = o1
  rescue ::InvalidObjectException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'create_database', seqid)
end
process_create_role(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1522
def process_create_role(seqid, iprot, oprot)
  args = read_args(iprot, Create_role_args)
  result = Create_role_result.new()
  begin
    result.success = @handler.create_role(args.role)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'create_role', seqid)
end
process_create_table(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1125
def process_create_table(seqid, iprot, oprot)
  args = read_args(iprot, Create_table_args)
  result = Create_table_result.new()
  begin
    @handler.create_table(args.tbl)
  rescue ::AlreadyExistsException => o1
    result.o1 = o1
  rescue ::InvalidObjectException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  rescue ::NoSuchObjectException => o4
    result.o4 = o4
  end
  write_result(result, oprot, 'create_table', seqid)
end
process_create_type(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1056
def process_create_type(seqid, iprot, oprot)
  args = read_args(iprot, Create_type_args)
  result = Create_type_result.new()
  begin
    result.success = @handler.create_type(args.type)
  rescue ::AlreadyExistsException => o1
    result.o1 = o1
  rescue ::InvalidObjectException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'create_type', seqid)
end
process_drop_database(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 993
def process_drop_database(seqid, iprot, oprot)
  args = read_args(iprot, Drop_database_args)
  result = Drop_database_result.new()
  begin
    @handler.drop_database(args.name, args.deleteData)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::InvalidOperationException => o2
    result.o2 = o2
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'drop_database', seqid)
end
process_drop_index_by_name(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1472
def process_drop_index_by_name(seqid, iprot, oprot)
  args = read_args(iprot, Drop_index_by_name_args)
  result = Drop_index_by_name_result.new()
  begin
    result.success = @handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'drop_index_by_name', seqid)
end
process_drop_partition(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1248
def process_drop_partition(seqid, iprot, oprot)
  args = read_args(iprot, Drop_partition_args)
  result = Drop_partition_result.new()
  begin
    result.success = @handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'drop_partition', seqid)
end
process_drop_partition_by_name(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1261
def process_drop_partition_by_name(seqid, iprot, oprot)
  args = read_args(iprot, Drop_partition_by_name_args)
  result = Drop_partition_by_name_result.new()
  begin
    result.success = @handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'drop_partition_by_name', seqid)
end
process_drop_role(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1533
def process_drop_role(seqid, iprot, oprot)
  args = read_args(iprot, Drop_role_args)
  result = Drop_role_result.new()
  begin
    result.success = @handler.drop_role(args.role_name)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'drop_role', seqid)
end
process_drop_table(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1142
def process_drop_table(seqid, iprot, oprot)
  args = read_args(iprot, Drop_table_args)
  result = Drop_table_result.new()
  begin
    @handler.drop_table(args.dbname, args.name, args.deleteData)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'drop_table', seqid)
end
process_drop_type(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1071
def process_drop_type(seqid, iprot, oprot)
  args = read_args(iprot, Drop_type_args)
  result = Drop_type_result.new()
  begin
    result.success = @handler.drop_type(args.type)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'drop_type', seqid)
end
process_get_all_databases(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1019
def process_get_all_databases(seqid, iprot, oprot)
  args = read_args(iprot, Get_all_databases_args)
  result = Get_all_databases_result.new()
  begin
    result.success = @handler.get_all_databases()
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_all_databases', seqid)
end
process_get_all_tables(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1166
def process_get_all_tables(seqid, iprot, oprot)
  args = read_args(iprot, Get_all_tables_args)
  result = Get_all_tables_result.new()
  begin
    result.success = @handler.get_all_tables(args.db_name)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_all_tables', seqid)
end
process_get_config_value(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1411
def process_get_config_value(seqid, iprot, oprot)
  args = read_args(iprot, Get_config_value_args)
  result = Get_config_value_result.new()
  begin
    result.success = @handler.get_config_value(args.name, args.defaultValue)
  rescue ::ConfigValSecurityException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_config_value', seqid)
end
process_get_database(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 980
def process_get_database(seqid, iprot, oprot)
  args = read_args(iprot, Get_database_args)
  result = Get_database_result.new()
  begin
    result.success = @handler.get_database(args.name)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_database', seqid)
end
process_get_databases(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1008
def process_get_databases(seqid, iprot, oprot)
  args = read_args(iprot, Get_databases_args)
  result = Get_databases_result.new()
  begin
    result.success = @handler.get_databases(args.pattern)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_databases', seqid)
end
process_get_delegation_token(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1632
def process_get_delegation_token(seqid, iprot, oprot)
  args = read_args(iprot, Get_delegation_token_args)
  result = Get_delegation_token_result.new()
  begin
    result.success = @handler.get_delegation_token(args.renewer_kerberos_principal_name)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_delegation_token', seqid)
end
process_get_delegation_token_with_signature(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1643
def process_get_delegation_token_with_signature(seqid, iprot, oprot)
  args = read_args(iprot, Get_delegation_token_with_signature_args)
  result = Get_delegation_token_with_signature_result.new()
  begin
    result.success = @handler.get_delegation_token_with_signature(args.renewer_kerberos_principal_name, args.token_signature)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_delegation_token_with_signature', seqid)
end
process_get_fields(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1095
def process_get_fields(seqid, iprot, oprot)
  args = read_args(iprot, Get_fields_args)
  result = Get_fields_result.new()
  begin
    result.success = @handler.get_fields(args.db_name, args.table_name)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::UnknownTableException => o2
    result.o2 = o2
  rescue ::UnknownDBException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'get_fields', seqid)
end
process_get_index_by_name(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1485
def process_get_index_by_name(seqid, iprot, oprot)
  args = read_args(iprot, Get_index_by_name_args)
  result = Get_index_by_name_result.new()
  begin
    result.success = @handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_index_by_name', seqid)
end
process_get_index_names(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1511
def process_get_index_names(seqid, iprot, oprot)
  args = read_args(iprot, Get_index_names_args)
  result = Get_index_names_result.new()
  begin
    result.success = @handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_index_names', seqid)
end
process_get_indexes(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1498
def process_get_indexes(seqid, iprot, oprot)
  args = read_args(iprot, Get_indexes_args)
  result = Get_indexes_result.new()
  begin
    result.success = @handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_indexes', seqid)
end
process_get_partition(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1274
def process_get_partition(seqid, iprot, oprot)
  args = read_args(iprot, Get_partition_args)
  result = Get_partition_result.new()
  begin
    result.success = @handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partition', seqid)
end
process_get_partition_by_name(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1300
def process_get_partition_by_name(seqid, iprot, oprot)
  args = read_args(iprot, Get_partition_by_name_args)
  result = Get_partition_by_name_result.new()
  begin
    result.success = @handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partition_by_name', seqid)
end
process_get_partition_names(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1339
def process_get_partition_names(seqid, iprot, oprot)
  args = read_args(iprot, Get_partition_names_args)
  result = Get_partition_names_result.new()
  begin
    result.success = @handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partition_names', seqid)
end
process_get_partition_names_ps(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1374
def process_get_partition_names_ps(seqid, iprot, oprot)
  args = read_args(iprot, Get_partition_names_ps_args)
  result = Get_partition_names_ps_result.new()
  begin
    result.success = @handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_partition_names_ps', seqid)
end
process_get_partition_with_auth(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1287
def process_get_partition_with_auth(seqid, iprot, oprot)
  args = read_args(iprot, Get_partition_with_auth_args)
  result = Get_partition_with_auth_result.new()
  begin
    result.success = @handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partition_with_auth', seqid)
end
process_get_partitions(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1313
def process_get_partitions(seqid, iprot, oprot)
  args = read_args(iprot, Get_partitions_args)
  result = Get_partitions_result.new()
  begin
    result.success = @handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partitions', seqid)
end
process_get_partitions_by_filter(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1385
def process_get_partitions_by_filter(seqid, iprot, oprot)
  args = read_args(iprot, Get_partitions_by_filter_args)
  result = Get_partitions_by_filter_result.new()
  begin
    result.success = @handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partitions_by_filter', seqid)
end
process_get_partitions_ps(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1350
def process_get_partitions_ps(seqid, iprot, oprot)
  args = read_args(iprot, Get_partitions_ps_args)
  result = Get_partitions_ps_result.new()
  begin
    result.success = @handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_partitions_ps', seqid)
end
process_get_partitions_ps_with_auth(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1361
def process_get_partitions_ps_with_auth(seqid, iprot, oprot)
  args = read_args(iprot, Get_partitions_ps_with_auth_args)
  result = Get_partitions_ps_with_auth_result.new()
  begin
    result.success = @handler.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partitions_ps_with_auth', seqid)
end
process_get_partitions_with_auth(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1326
def process_get_partitions_with_auth(seqid, iprot, oprot)
  args = read_args(iprot, Get_partitions_with_auth_args)
  result = Get_partitions_with_auth_result.new()
  begin
    result.success = @handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
  rescue ::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partitions_with_auth', seqid)
end
process_get_privilege_set(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1588
def process_get_privilege_set(seqid, iprot, oprot)
  args = read_args(iprot, Get_privilege_set_args)
  result = Get_privilege_set_result.new()
  begin
    result.success = @handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_privilege_set', seqid)
end
process_get_role_names(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1544
def process_get_role_names(seqid, iprot, oprot)
  args = read_args(iprot, Get_role_names_args)
  result = Get_role_names_result.new()
  begin
    result.success = @handler.get_role_names()
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_role_names', seqid)
end
process_get_schema(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1110
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.db_name, args.table_name)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::UnknownTableException => o2
    result.o2 = o2
  rescue ::UnknownDBException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'get_schema', seqid)
end
process_get_table(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1177
def process_get_table(seqid, iprot, oprot)
  args = read_args(iprot, Get_table_args)
  result = Get_table_result.new()
  begin
    result.success = @handler.get_table(args.dbname, args.tbl_name)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_table', seqid)
end
process_get_tables(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1155
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.db_name, args.pattern)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_tables', seqid)
end
process_get_type(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1043
def process_get_type(seqid, iprot, oprot)
  args = read_args(iprot, Get_type_args)
  result = Get_type_result.new()
  begin
    result.success = @handler.get_type(args.name)
  rescue ::MetaException => o1
    result.o1 = o1
  rescue ::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_type', seqid)
end
process_get_type_all(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1084
def process_get_type_all(seqid, iprot, oprot)
  args = read_args(iprot, Get_type_all_args)
  result = Get_type_all_result.new()
  begin
    result.success = @handler.get_type_all(args.name)
  rescue ::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_type_all', seqid)
end
process_grant_privileges(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1610
def process_grant_privileges(seqid, iprot, oprot)
  args = read_args(iprot, Grant_privileges_args)
  result = Grant_privileges_result.new()
  begin
    result.success = @handler.grant_privileges(args.privileges)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'grant_privileges', seqid)
end
process_grant_role(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1555
def process_grant_role(seqid, iprot, oprot)
  args = read_args(iprot, Grant_role_args)
  result = Grant_role_result.new()
  begin
    result.success = @handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'grant_role', seqid)
end
process_list_privileges(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1599
def process_list_privileges(seqid, iprot, oprot)
  args = read_args(iprot, List_privileges_args)
  result = List_privileges_result.new()
  begin
    result.success = @handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'list_privileges', seqid)
end
process_list_roles(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1577
def process_list_roles(seqid, iprot, oprot)
  args = read_args(iprot, List_roles_args)
  result = List_roles_result.new()
  begin
    result.success = @handler.list_roles(args.principal_name, args.principal_type)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'list_roles', seqid)
end
process_partition_name_to_spec(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1433
def process_partition_name_to_spec(seqid, iprot, oprot)
  args = read_args(iprot, Partition_name_to_spec_args)
  result = Partition_name_to_spec_result.new()
  begin
    result.success = @handler.partition_name_to_spec(args.part_name)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'partition_name_to_spec', seqid)
end
process_partition_name_to_vals(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1422
def process_partition_name_to_vals(seqid, iprot, oprot)
  args = read_args(iprot, Partition_name_to_vals_args)
  result = Partition_name_to_vals_result.new()
  begin
    result.success = @handler.partition_name_to_vals(args.part_name)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'partition_name_to_vals', seqid)
end
process_renew_delegation_token(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1654
def process_renew_delegation_token(seqid, iprot, oprot)
  args = read_args(iprot, Renew_delegation_token_args)
  result = Renew_delegation_token_result.new()
  begin
    result.success = @handler.renew_delegation_token(args.token_str_form)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'renew_delegation_token', seqid)
end
process_revoke_privileges(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1621
def process_revoke_privileges(seqid, iprot, oprot)
  args = read_args(iprot, Revoke_privileges_args)
  result = Revoke_privileges_result.new()
  begin
    result.success = @handler.revoke_privileges(args.privileges)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'revoke_privileges', seqid)
end
process_revoke_role(seqid, iprot, oprot) click to toggle source
# File lib/thrift/thrift_hive_metastore.rb, line 1566
def process_revoke_role(seqid, iprot, oprot)
  args = read_args(iprot, Revoke_role_args)
  result = Revoke_role_result.new()
  begin
    result.success = @handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
  rescue ::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'revoke_role', seqid)
end