class Impala::Protocol::HiveMetastore::ThriftHiveMetastore::Processor

Public Instance Methods

process_add_index(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1820
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 ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1464
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 ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'add_partition', seqid)
end
process_add_partition_with_environment_context(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1479
def process_add_partition_with_environment_context(seqid, iprot, oprot)
  args = read_args(iprot, Add_partition_with_environment_context_args)
  result = Add_partition_with_environment_context_result.new()
  begin
    result.success = @handler.add_partition_with_environment_context(args.new_part, args.environment_context)
  rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'add_partition_with_environment_context', seqid)
end
process_add_partitions(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1494
def process_add_partitions(seqid, iprot, oprot)
  args = read_args(iprot, Add_partitions_args)
  result = Add_partitions_result.new()
  begin
    result.success = @handler.add_partitions(args.new_parts)
  rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'add_partitions', seqid)
end
process_alter_database(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1231
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1835
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 ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1706
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 ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_partition', seqid)
end
process_alter_partition_with_environment_context(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1719
def process_alter_partition_with_environment_context(seqid, iprot, oprot)
  args = read_args(iprot, Alter_partition_with_environment_context_args)
  result = Alter_partition_with_environment_context_result.new()
  begin
    @handler.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context)
  rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_partition_with_environment_context', seqid)
end
process_alter_table(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1438
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 ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_table', seqid)
end
process_alter_table_with_environment_context(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1451
def process_alter_table_with_environment_context(seqid, iprot, oprot)
  args = read_args(iprot, Alter_table_with_environment_context_args)
  result = Alter_table_with_environment_context_result.new()
  begin
    @handler.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context)
  rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'alter_table_with_environment_context', seqid)
end
process_append_partition(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1509
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 ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1524
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 ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 2041
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1166
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 ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1898
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1326
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 ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
    result.o3 = o3
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o4
    result.o4 = o4
  end
  write_result(result, oprot, 'create_table', seqid)
end
process_create_table_with_environment_context(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1343
def process_create_table_with_environment_context(seqid, iprot, oprot)
  args = read_args(iprot, Create_table_with_environment_context_args)
  result = Create_table_with_environment_context_result.new()
  begin
    @handler.create_table_with_environment_context(args.tbl, args.environment_context)
  rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
    result.o3 = o3
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o4
    result.o4 = o4
  end
  write_result(result, oprot, 'create_table_with_environment_context', seqid)
end
process_create_type(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1257
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 ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1194
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, args.cascade)
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1848
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1539
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1552
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1909
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1360
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1272
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1220
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1384
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1745
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1181
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1209
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 2019
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.token_owner, args.renewer_kerberos_principal_name)
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'get_delegation_token', seqid)
end
process_get_fields(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1296
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1861
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1887
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1874
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1565
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1591
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1630
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1667
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
    result.o2 = o2
  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/impala/protocol/thrift_hive_metastore.rb, line 1578
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1604
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1680
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partitions_by_filter', seqid)
end
process_get_partitions_by_names(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1693
def process_get_partitions_by_names(seqid, iprot, oprot)
  args = read_args(iprot, Get_partitions_by_names_args)
  result = Get_partitions_by_names_result.new()
  begin
    result.success = @handler.get_partitions_by_names(args.db_name, args.tbl_name, args.names)
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_partitions_by_names', seqid)
end
process_get_partitions_ps(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1641
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
    result.o2 = o2
  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/impala/protocol/thrift_hive_metastore.rb, line 1654
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1617
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 ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1964
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1920
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1311
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1395
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'get_table', seqid)
end
process_get_table_names_by_filter(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1423
def process_get_table_names_by_filter(seqid, iprot, oprot)
  args = read_args(iprot, Get_table_names_by_filter_args)
  result = Get_table_names_by_filter_result.new()
  begin
    result.success = @handler.get_table_names_by_filter(args.dbname, args.filter, args.max_tables)
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'get_table_names_by_filter', seqid)
end
process_get_table_objects_by_name(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1408
def process_get_table_objects_by_name(seqid, iprot, oprot)
  args = read_args(iprot, Get_table_objects_by_name_args)
  result = Get_table_objects_by_name_result.new()
  begin
    result.success = @handler.get_table_objects_by_name(args.dbname, args.tbl_names)
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
    result.o3 = o3
  end
  write_result(result, oprot, 'get_table_objects_by_name', seqid)
end
process_get_tables(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1373
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1244
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1285
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1986
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1931
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'grant_role', seqid)
end
process_isPartitionMarkedForEvent(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1799
def process_isPartitionMarkedForEvent(seqid, iprot, oprot)
  args = read_args(iprot, IsPartitionMarkedForEvent_args)
  result = IsPartitionMarkedForEvent_result.new()
  begin
    result.success = @handler.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
    result.o3 = o3
  rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o4
    result.o4 = o4
  rescue ::Impala::Protocol::HiveMetastore::UnknownPartitionException => o5
    result.o5 = o5
  rescue ::Impala::Protocol::HiveMetastore::InvalidPartitionException => o6
    result.o6 = o6
  end
  write_result(result, oprot, 'isPartitionMarkedForEvent', seqid)
end
process_list_privileges(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1975
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1953
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'list_roles', seqid)
end
process_markPartitionForEvent(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1778
def process_markPartitionForEvent(seqid, iprot, oprot)
  args = read_args(iprot, MarkPartitionForEvent_args)
  result = MarkPartitionForEvent_result.new()
  begin
    @handler.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
    result.o2 = o2
  rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
    result.o3 = o3
  rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o4
    result.o4 = o4
  rescue ::Impala::Protocol::HiveMetastore::UnknownPartitionException => o5
    result.o5 = o5
  rescue ::Impala::Protocol::HiveMetastore::InvalidPartitionException => o6
    result.o6 = o6
  end
  write_result(result, oprot, 'markPartitionForEvent', seqid)
end
process_partition_name_to_spec(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1767
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1756
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'partition_name_to_vals', seqid)
end
process_rename_partition(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 1732
def process_rename_partition(seqid, iprot, oprot)
  args = read_args(iprot, Rename_partition_args)
  result = Rename_partition_result.new()
  begin
    @handler.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part)
  rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
    result.o1 = o1
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
    result.o2 = o2
  end
  write_result(result, oprot, 'rename_partition', seqid)
end
process_renew_delegation_token(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 2030
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1997
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 ::Impala::Protocol::HiveMetastore::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/impala/protocol/thrift_hive_metastore.rb, line 1942
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 ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'revoke_role', seqid)
end
process_set_ugi(seqid, iprot, oprot) click to toggle source
# File lib/impala/protocol/thrift_hive_metastore.rb, line 2008
def process_set_ugi(seqid, iprot, oprot)
  args = read_args(iprot, Set_ugi_args)
  result = Set_ugi_result.new()
  begin
    result.success = @handler.set_ugi(args.user_name, args.group_names)
  rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
    result.o1 = o1
  end
  write_result(result, oprot, 'set_ugi', seqid)
end