Class: ThriftHiveMetastore::Processor
Instance Method Summary
collapse
-
#process_add_index(seqid, iprot, oprot) ⇒ Object
-
#process_add_partition(seqid, iprot, oprot) ⇒ Object
-
#process_alter_database(seqid, iprot, oprot) ⇒ Object
-
#process_alter_index(seqid, iprot, oprot) ⇒ Object
-
#process_alter_partition(seqid, iprot, oprot) ⇒ Object
-
#process_alter_table(seqid, iprot, oprot) ⇒ Object
-
#process_append_partition(seqid, iprot, oprot) ⇒ Object
-
#process_append_partition_by_name(seqid, iprot, oprot) ⇒ Object
-
#process_cancel_delegation_token(seqid, iprot, oprot) ⇒ Object
-
#process_create_database(seqid, iprot, oprot) ⇒ Object
-
#process_create_role(seqid, iprot, oprot) ⇒ Object
-
#process_create_table(seqid, iprot, oprot) ⇒ Object
-
#process_create_type(seqid, iprot, oprot) ⇒ Object
-
#process_drop_database(seqid, iprot, oprot) ⇒ Object
-
#process_drop_index_by_name(seqid, iprot, oprot) ⇒ Object
-
#process_drop_partition(seqid, iprot, oprot) ⇒ Object
-
#process_drop_partition_by_name(seqid, iprot, oprot) ⇒ Object
-
#process_drop_role(seqid, iprot, oprot) ⇒ Object
-
#process_drop_table(seqid, iprot, oprot) ⇒ Object
-
#process_drop_type(seqid, iprot, oprot) ⇒ Object
-
#process_get_all_databases(seqid, iprot, oprot) ⇒ Object
-
#process_get_all_tables(seqid, iprot, oprot) ⇒ Object
-
#process_get_config_value(seqid, iprot, oprot) ⇒ Object
-
#process_get_database(seqid, iprot, oprot) ⇒ Object
-
#process_get_databases(seqid, iprot, oprot) ⇒ Object
-
#process_get_delegation_token(seqid, iprot, oprot) ⇒ Object
-
#process_get_delegation_token_with_signature(seqid, iprot, oprot) ⇒ Object
-
#process_get_fields(seqid, iprot, oprot) ⇒ Object
-
#process_get_index_by_name(seqid, iprot, oprot) ⇒ Object
-
#process_get_index_names(seqid, iprot, oprot) ⇒ Object
-
#process_get_indexes(seqid, iprot, oprot) ⇒ Object
-
#process_get_partition(seqid, iprot, oprot) ⇒ Object
-
#process_get_partition_by_name(seqid, iprot, oprot) ⇒ Object
-
#process_get_partition_names(seqid, iprot, oprot) ⇒ Object
-
#process_get_partition_names_ps(seqid, iprot, oprot) ⇒ Object
-
#process_get_partition_with_auth(seqid, iprot, oprot) ⇒ Object
-
#process_get_partitions(seqid, iprot, oprot) ⇒ Object
-
#process_get_partitions_by_filter(seqid, iprot, oprot) ⇒ Object
-
#process_get_partitions_ps(seqid, iprot, oprot) ⇒ Object
-
#process_get_partitions_ps_with_auth(seqid, iprot, oprot) ⇒ Object
-
#process_get_partitions_with_auth(seqid, iprot, oprot) ⇒ Object
-
#process_get_privilege_set(seqid, iprot, oprot) ⇒ Object
-
#process_get_role_names(seqid, iprot, oprot) ⇒ Object
-
#process_get_schema(seqid, iprot, oprot) ⇒ Object
-
#process_get_table(seqid, iprot, oprot) ⇒ Object
-
#process_get_tables(seqid, iprot, oprot) ⇒ Object
-
#process_get_type(seqid, iprot, oprot) ⇒ Object
-
#process_get_type_all(seqid, iprot, oprot) ⇒ Object
-
#process_grant_privileges(seqid, iprot, oprot) ⇒ Object
-
#process_grant_role(seqid, iprot, oprot) ⇒ Object
-
#process_list_privileges(seqid, iprot, oprot) ⇒ Object
-
#process_list_roles(seqid, iprot, oprot) ⇒ Object
-
#process_partition_name_to_spec(seqid, iprot, oprot) ⇒ Object
-
#process_partition_name_to_vals(seqid, iprot, oprot) ⇒ Object
-
#process_renew_delegation_token(seqid, iprot, oprot) ⇒ Object
-
#process_revoke_privileges(seqid, iprot, oprot) ⇒ Object
-
#process_revoke_role(seqid, iprot, oprot) ⇒ Object
#process_aliveSince, #process_getCounter, #process_getCounters, #process_getCpuProfile, #process_getName, #process_getOption, #process_getOptions, #process_getStatus, #process_getStatusDetails, #process_getVersion, #process_reinitialize, #process_setOption, #process_shutdown
Instance Method Details
#process_add_index(seqid, iprot, oprot) ⇒ Object
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
|
# 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) ⇒ Object
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
|
# 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) ⇒ Object
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
|
# 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) ⇒ Object
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
|
# 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) ⇒ Object
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
|
# 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) ⇒ Object
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
|
# 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) ⇒ Object
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
|
# 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) ⇒ Object
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
|
# 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) ⇒ Object
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
|
# 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) ⇒ Object
965
966
967
968
969
970
971
972
973
974
975
976
977
978
|
# 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) ⇒ Object
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
|
# 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) ⇒ Object
#process_create_type(seqid, iprot, oprot) ⇒ Object
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
|
# 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) ⇒ Object
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
|
# 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) ⇒ Object
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
|
# 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) ⇒ Object
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
|
# 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) ⇒ Object
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
|
# 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) ⇒ Object
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
|
# 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) ⇒ Object
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
|
# 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) ⇒ Object
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
|
# 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) ⇒ Object
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
|
# 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) ⇒ Object
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
|
# 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) ⇒ Object
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
|
# 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) ⇒ Object
980
981
982
983
984
985
986
987
988
989
990
991
|
# 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) ⇒ Object
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
|
# 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) ⇒ Object
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
|
# 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) ⇒ Object
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
|
# 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) ⇒ Object
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
|
# 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) ⇒ Object
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
|
# 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) ⇒ Object
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
|
# 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) ⇒ Object
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
|
# 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) ⇒ Object
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
|
# 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) ⇒ Object
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
|
# 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) ⇒ Object
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
|
# 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) ⇒ Object
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
|
# 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) ⇒ Object
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
|
# 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) ⇒ Object
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
|
# 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) ⇒ Object
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
|
# 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) ⇒ Object
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
|
# 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) ⇒ Object
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
|
# 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) ⇒ Object
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
|
# 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) ⇒ Object
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
|
# 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) ⇒ Object
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
|
# 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) ⇒ Object
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
|
# 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) ⇒ Object
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
|
# 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) ⇒ Object
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
|
# 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) ⇒ Object
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
|
# 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) ⇒ Object
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
|
# 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) ⇒ Object
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
|
# 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) ⇒ Object
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
|
# 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) ⇒ Object
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
|
# 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) ⇒ Object
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
|
# 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) ⇒ Object
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
|
# 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) ⇒ Object
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
|
# 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) ⇒ Object
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
|
# 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) ⇒ Object
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
|
# 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) ⇒ Object
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
|
# 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
|