rbhive 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/thrift/facebook_service.rb +53 -40
- data/lib/thrift/hive_metastore_constants.rb +9 -0
- data/lib/thrift/hive_metastore_types.rb +89 -51
- data/lib/thrift/hive_service_types.rb +10 -10
- data/lib/thrift/queryplan_constants.rb +8 -0
- data/lib/thrift/queryplan_types.rb +253 -0
- data/lib/thrift/reflection_limited_types.rb +12 -12
- data/lib/thrift/serde_constants.rb +2 -0
- data/lib/thrift/thrift_hive.rb +88 -23
- data/lib/thrift/thrift_hive_metastore.rb +1255 -150
- metadata +16 -5
@@ -12,21 +12,21 @@ module ThriftHiveMetastore
|
|
12
12
|
class Client < FacebookService::Client
|
13
13
|
include ::Thrift::Client
|
14
14
|
|
15
|
-
def create_database(
|
16
|
-
send_create_database(
|
17
|
-
|
15
|
+
def create_database(database)
|
16
|
+
send_create_database(database)
|
17
|
+
recv_create_database()
|
18
18
|
end
|
19
19
|
|
20
|
-
def send_create_database(
|
21
|
-
send_message('create_database', Create_database_args, :
|
20
|
+
def send_create_database(database)
|
21
|
+
send_message('create_database', Create_database_args, :database => database)
|
22
22
|
end
|
23
23
|
|
24
24
|
def recv_create_database()
|
25
25
|
result = receive_message(Create_database_result)
|
26
|
-
return result.success unless result.success.nil?
|
27
26
|
raise result.o1 unless result.o1.nil?
|
28
27
|
raise result.o2 unless result.o2.nil?
|
29
|
-
raise
|
28
|
+
raise result.o3 unless result.o3.nil?
|
29
|
+
return
|
30
30
|
end
|
31
31
|
|
32
32
|
def get_database(name)
|
@@ -46,29 +46,30 @@ module ThriftHiveMetastore
|
|
46
46
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_database failed: unknown result')
|
47
47
|
end
|
48
48
|
|
49
|
-
def drop_database(name)
|
50
|
-
send_drop_database(name)
|
51
|
-
|
49
|
+
def drop_database(name, deleteData)
|
50
|
+
send_drop_database(name, deleteData)
|
51
|
+
recv_drop_database()
|
52
52
|
end
|
53
53
|
|
54
|
-
def send_drop_database(name)
|
55
|
-
send_message('drop_database', Drop_database_args, :name => name)
|
54
|
+
def send_drop_database(name, deleteData)
|
55
|
+
send_message('drop_database', Drop_database_args, :name => name, :deleteData => deleteData)
|
56
56
|
end
|
57
57
|
|
58
58
|
def recv_drop_database()
|
59
59
|
result = receive_message(Drop_database_result)
|
60
|
-
|
60
|
+
raise result.o1 unless result.o1.nil?
|
61
61
|
raise result.o2 unless result.o2.nil?
|
62
|
-
raise
|
62
|
+
raise result.o3 unless result.o3.nil?
|
63
|
+
return
|
63
64
|
end
|
64
65
|
|
65
|
-
def get_databases()
|
66
|
-
send_get_databases()
|
66
|
+
def get_databases(pattern)
|
67
|
+
send_get_databases(pattern)
|
67
68
|
return recv_get_databases()
|
68
69
|
end
|
69
70
|
|
70
|
-
def send_get_databases()
|
71
|
-
send_message('get_databases', Get_databases_args)
|
71
|
+
def send_get_databases(pattern)
|
72
|
+
send_message('get_databases', Get_databases_args, :pattern => pattern)
|
72
73
|
end
|
73
74
|
|
74
75
|
def recv_get_databases()
|
@@ -78,6 +79,22 @@ module ThriftHiveMetastore
|
|
78
79
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_databases failed: unknown result')
|
79
80
|
end
|
80
81
|
|
82
|
+
def get_all_databases()
|
83
|
+
send_get_all_databases()
|
84
|
+
return recv_get_all_databases()
|
85
|
+
end
|
86
|
+
|
87
|
+
def send_get_all_databases()
|
88
|
+
send_message('get_all_databases', Get_all_databases_args)
|
89
|
+
end
|
90
|
+
|
91
|
+
def recv_get_all_databases()
|
92
|
+
result = receive_message(Get_all_databases_result)
|
93
|
+
return result.success unless result.success.nil?
|
94
|
+
raise result.o1 unless result.o1.nil?
|
95
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_databases failed: unknown result')
|
96
|
+
end
|
97
|
+
|
81
98
|
def get_type(name)
|
82
99
|
send_get_type(name)
|
83
100
|
return recv_get_type()
|
@@ -90,6 +107,7 @@ module ThriftHiveMetastore
|
|
90
107
|
def recv_get_type()
|
91
108
|
result = receive_message(Get_type_result)
|
92
109
|
return result.success unless result.success.nil?
|
110
|
+
raise result.o1 unless result.o1.nil?
|
93
111
|
raise result.o2 unless result.o2.nil?
|
94
112
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_type failed: unknown result')
|
95
113
|
end
|
@@ -124,6 +142,7 @@ module ThriftHiveMetastore
|
|
124
142
|
def recv_drop_type()
|
125
143
|
result = receive_message(Drop_type_result)
|
126
144
|
return result.success unless result.success.nil?
|
145
|
+
raise result.o1 unless result.o1.nil?
|
127
146
|
raise result.o2 unless result.o2.nil?
|
128
147
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_type failed: unknown result')
|
129
148
|
end
|
@@ -230,6 +249,22 @@ module ThriftHiveMetastore
|
|
230
249
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result')
|
231
250
|
end
|
232
251
|
|
252
|
+
def get_all_tables(db_name)
|
253
|
+
send_get_all_tables(db_name)
|
254
|
+
return recv_get_all_tables()
|
255
|
+
end
|
256
|
+
|
257
|
+
def send_get_all_tables(db_name)
|
258
|
+
send_message('get_all_tables', Get_all_tables_args, :db_name => db_name)
|
259
|
+
end
|
260
|
+
|
261
|
+
def recv_get_all_tables()
|
262
|
+
result = receive_message(Get_all_tables_result)
|
263
|
+
return result.success unless result.success.nil?
|
264
|
+
raise result.o1 unless result.o1.nil?
|
265
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_tables failed: unknown result')
|
266
|
+
end
|
267
|
+
|
233
268
|
def get_table(dbname, tbl_name)
|
234
269
|
send_get_table(dbname, tbl_name)
|
235
270
|
return recv_get_table()
|
@@ -299,6 +334,24 @@ module ThriftHiveMetastore
|
|
299
334
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'append_partition failed: unknown result')
|
300
335
|
end
|
301
336
|
|
337
|
+
def append_partition_by_name(db_name, tbl_name, part_name)
|
338
|
+
send_append_partition_by_name(db_name, tbl_name, part_name)
|
339
|
+
return recv_append_partition_by_name()
|
340
|
+
end
|
341
|
+
|
342
|
+
def send_append_partition_by_name(db_name, tbl_name, part_name)
|
343
|
+
send_message('append_partition_by_name', Append_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name)
|
344
|
+
end
|
345
|
+
|
346
|
+
def recv_append_partition_by_name()
|
347
|
+
result = receive_message(Append_partition_by_name_result)
|
348
|
+
return result.success unless result.success.nil?
|
349
|
+
raise result.o1 unless result.o1.nil?
|
350
|
+
raise result.o2 unless result.o2.nil?
|
351
|
+
raise result.o3 unless result.o3.nil?
|
352
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'append_partition_by_name failed: unknown result')
|
353
|
+
end
|
354
|
+
|
302
355
|
def drop_partition(db_name, tbl_name, part_vals, deleteData)
|
303
356
|
send_drop_partition(db_name, tbl_name, part_vals, deleteData)
|
304
357
|
return recv_drop_partition()
|
@@ -316,6 +369,23 @@ module ThriftHiveMetastore
|
|
316
369
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition failed: unknown result')
|
317
370
|
end
|
318
371
|
|
372
|
+
def drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
|
373
|
+
send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
|
374
|
+
return recv_drop_partition_by_name()
|
375
|
+
end
|
376
|
+
|
377
|
+
def send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
|
378
|
+
send_message('drop_partition_by_name', Drop_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name, :deleteData => deleteData)
|
379
|
+
end
|
380
|
+
|
381
|
+
def recv_drop_partition_by_name()
|
382
|
+
result = receive_message(Drop_partition_by_name_result)
|
383
|
+
return result.success unless result.success.nil?
|
384
|
+
raise result.o1 unless result.o1.nil?
|
385
|
+
raise result.o2 unless result.o2.nil?
|
386
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition_by_name failed: unknown result')
|
387
|
+
end
|
388
|
+
|
319
389
|
def get_partition(db_name, tbl_name, part_vals)
|
320
390
|
send_get_partition(db_name, tbl_name, part_vals)
|
321
391
|
return recv_get_partition()
|
@@ -329,9 +399,27 @@ module ThriftHiveMetastore
|
|
329
399
|
result = receive_message(Get_partition_result)
|
330
400
|
return result.success unless result.success.nil?
|
331
401
|
raise result.o1 unless result.o1.nil?
|
402
|
+
raise result.o2 unless result.o2.nil?
|
332
403
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition failed: unknown result')
|
333
404
|
end
|
334
405
|
|
406
|
+
def get_partition_by_name(db_name, tbl_name, part_name)
|
407
|
+
send_get_partition_by_name(db_name, tbl_name, part_name)
|
408
|
+
return recv_get_partition_by_name()
|
409
|
+
end
|
410
|
+
|
411
|
+
def send_get_partition_by_name(db_name, tbl_name, part_name)
|
412
|
+
send_message('get_partition_by_name', Get_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name)
|
413
|
+
end
|
414
|
+
|
415
|
+
def recv_get_partition_by_name()
|
416
|
+
result = receive_message(Get_partition_by_name_result)
|
417
|
+
return result.success unless result.success.nil?
|
418
|
+
raise result.o1 unless result.o1.nil?
|
419
|
+
raise result.o2 unless result.o2.nil?
|
420
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_by_name failed: unknown result')
|
421
|
+
end
|
422
|
+
|
335
423
|
def get_partitions(db_name, tbl_name, max_parts)
|
336
424
|
send_get_partitions(db_name, tbl_name, max_parts)
|
337
425
|
return recv_get_partitions()
|
@@ -365,6 +453,55 @@ module ThriftHiveMetastore
|
|
365
453
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names failed: unknown result')
|
366
454
|
end
|
367
455
|
|
456
|
+
def get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
|
457
|
+
send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
|
458
|
+
return recv_get_partitions_ps()
|
459
|
+
end
|
460
|
+
|
461
|
+
def send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
|
462
|
+
send_message('get_partitions_ps', Get_partitions_ps_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :max_parts => max_parts)
|
463
|
+
end
|
464
|
+
|
465
|
+
def recv_get_partitions_ps()
|
466
|
+
result = receive_message(Get_partitions_ps_result)
|
467
|
+
return result.success unless result.success.nil?
|
468
|
+
raise result.o1 unless result.o1.nil?
|
469
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps failed: unknown result')
|
470
|
+
end
|
471
|
+
|
472
|
+
def get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
|
473
|
+
send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
|
474
|
+
return recv_get_partition_names_ps()
|
475
|
+
end
|
476
|
+
|
477
|
+
def send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
|
478
|
+
send_message('get_partition_names_ps', Get_partition_names_ps_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :max_parts => max_parts)
|
479
|
+
end
|
480
|
+
|
481
|
+
def recv_get_partition_names_ps()
|
482
|
+
result = receive_message(Get_partition_names_ps_result)
|
483
|
+
return result.success unless result.success.nil?
|
484
|
+
raise result.o1 unless result.o1.nil?
|
485
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names_ps failed: unknown result')
|
486
|
+
end
|
487
|
+
|
488
|
+
def get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
|
489
|
+
send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
|
490
|
+
return recv_get_partitions_by_filter()
|
491
|
+
end
|
492
|
+
|
493
|
+
def send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
|
494
|
+
send_message('get_partitions_by_filter', Get_partitions_by_filter_args, :db_name => db_name, :tbl_name => tbl_name, :filter => filter, :max_parts => max_parts)
|
495
|
+
end
|
496
|
+
|
497
|
+
def recv_get_partitions_by_filter()
|
498
|
+
result = receive_message(Get_partitions_by_filter_result)
|
499
|
+
return result.success unless result.success.nil?
|
500
|
+
raise result.o1 unless result.o1.nil?
|
501
|
+
raise result.o2 unless result.o2.nil?
|
502
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_by_filter failed: unknown result')
|
503
|
+
end
|
504
|
+
|
368
505
|
def alter_partition(db_name, tbl_name, new_part)
|
369
506
|
send_alter_partition(db_name, tbl_name, new_part)
|
370
507
|
recv_alter_partition()
|
@@ -381,6 +518,139 @@ module ThriftHiveMetastore
|
|
381
518
|
return
|
382
519
|
end
|
383
520
|
|
521
|
+
def get_config_value(name, defaultValue)
|
522
|
+
send_get_config_value(name, defaultValue)
|
523
|
+
return recv_get_config_value()
|
524
|
+
end
|
525
|
+
|
526
|
+
def send_get_config_value(name, defaultValue)
|
527
|
+
send_message('get_config_value', Get_config_value_args, :name => name, :defaultValue => defaultValue)
|
528
|
+
end
|
529
|
+
|
530
|
+
def recv_get_config_value()
|
531
|
+
result = receive_message(Get_config_value_result)
|
532
|
+
return result.success unless result.success.nil?
|
533
|
+
raise result.o1 unless result.o1.nil?
|
534
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_config_value failed: unknown result')
|
535
|
+
end
|
536
|
+
|
537
|
+
def partition_name_to_vals(part_name)
|
538
|
+
send_partition_name_to_vals(part_name)
|
539
|
+
return recv_partition_name_to_vals()
|
540
|
+
end
|
541
|
+
|
542
|
+
def send_partition_name_to_vals(part_name)
|
543
|
+
send_message('partition_name_to_vals', Partition_name_to_vals_args, :part_name => part_name)
|
544
|
+
end
|
545
|
+
|
546
|
+
def recv_partition_name_to_vals()
|
547
|
+
result = receive_message(Partition_name_to_vals_result)
|
548
|
+
return result.success unless result.success.nil?
|
549
|
+
raise result.o1 unless result.o1.nil?
|
550
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_vals failed: unknown result')
|
551
|
+
end
|
552
|
+
|
553
|
+
def partition_name_to_spec(part_name)
|
554
|
+
send_partition_name_to_spec(part_name)
|
555
|
+
return recv_partition_name_to_spec()
|
556
|
+
end
|
557
|
+
|
558
|
+
def send_partition_name_to_spec(part_name)
|
559
|
+
send_message('partition_name_to_spec', Partition_name_to_spec_args, :part_name => part_name)
|
560
|
+
end
|
561
|
+
|
562
|
+
def recv_partition_name_to_spec()
|
563
|
+
result = receive_message(Partition_name_to_spec_result)
|
564
|
+
return result.success unless result.success.nil?
|
565
|
+
raise result.o1 unless result.o1.nil?
|
566
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_spec failed: unknown result')
|
567
|
+
end
|
568
|
+
|
569
|
+
def add_index(new_index, index_table)
|
570
|
+
send_add_index(new_index, index_table)
|
571
|
+
return recv_add_index()
|
572
|
+
end
|
573
|
+
|
574
|
+
def send_add_index(new_index, index_table)
|
575
|
+
send_message('add_index', Add_index_args, :new_index => new_index, :index_table => index_table)
|
576
|
+
end
|
577
|
+
|
578
|
+
def recv_add_index()
|
579
|
+
result = receive_message(Add_index_result)
|
580
|
+
return result.success unless result.success.nil?
|
581
|
+
raise result.o1 unless result.o1.nil?
|
582
|
+
raise result.o2 unless result.o2.nil?
|
583
|
+
raise result.o3 unless result.o3.nil?
|
584
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_index failed: unknown result')
|
585
|
+
end
|
586
|
+
|
587
|
+
def drop_index_by_name(db_name, tbl_name, index_name, deleteData)
|
588
|
+
send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
|
589
|
+
return recv_drop_index_by_name()
|
590
|
+
end
|
591
|
+
|
592
|
+
def send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
|
593
|
+
send_message('drop_index_by_name', Drop_index_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :index_name => index_name, :deleteData => deleteData)
|
594
|
+
end
|
595
|
+
|
596
|
+
def recv_drop_index_by_name()
|
597
|
+
result = receive_message(Drop_index_by_name_result)
|
598
|
+
return result.success unless result.success.nil?
|
599
|
+
raise result.o1 unless result.o1.nil?
|
600
|
+
raise result.o2 unless result.o2.nil?
|
601
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_index_by_name failed: unknown result')
|
602
|
+
end
|
603
|
+
|
604
|
+
def get_index_by_name(db_name, tbl_name, index_name)
|
605
|
+
send_get_index_by_name(db_name, tbl_name, index_name)
|
606
|
+
return recv_get_index_by_name()
|
607
|
+
end
|
608
|
+
|
609
|
+
def send_get_index_by_name(db_name, tbl_name, index_name)
|
610
|
+
send_message('get_index_by_name', Get_index_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :index_name => index_name)
|
611
|
+
end
|
612
|
+
|
613
|
+
def recv_get_index_by_name()
|
614
|
+
result = receive_message(Get_index_by_name_result)
|
615
|
+
return result.success unless result.success.nil?
|
616
|
+
raise result.o1 unless result.o1.nil?
|
617
|
+
raise result.o2 unless result.o2.nil?
|
618
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_by_name failed: unknown result')
|
619
|
+
end
|
620
|
+
|
621
|
+
def get_indexes(db_name, tbl_name, max_indexes)
|
622
|
+
send_get_indexes(db_name, tbl_name, max_indexes)
|
623
|
+
return recv_get_indexes()
|
624
|
+
end
|
625
|
+
|
626
|
+
def send_get_indexes(db_name, tbl_name, max_indexes)
|
627
|
+
send_message('get_indexes', Get_indexes_args, :db_name => db_name, :tbl_name => tbl_name, :max_indexes => max_indexes)
|
628
|
+
end
|
629
|
+
|
630
|
+
def recv_get_indexes()
|
631
|
+
result = receive_message(Get_indexes_result)
|
632
|
+
return result.success unless result.success.nil?
|
633
|
+
raise result.o1 unless result.o1.nil?
|
634
|
+
raise result.o2 unless result.o2.nil?
|
635
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_indexes failed: unknown result')
|
636
|
+
end
|
637
|
+
|
638
|
+
def get_index_names(db_name, tbl_name, max_indexes)
|
639
|
+
send_get_index_names(db_name, tbl_name, max_indexes)
|
640
|
+
return recv_get_index_names()
|
641
|
+
end
|
642
|
+
|
643
|
+
def send_get_index_names(db_name, tbl_name, max_indexes)
|
644
|
+
send_message('get_index_names', Get_index_names_args, :db_name => db_name, :tbl_name => tbl_name, :max_indexes => max_indexes)
|
645
|
+
end
|
646
|
+
|
647
|
+
def recv_get_index_names()
|
648
|
+
result = receive_message(Get_index_names_result)
|
649
|
+
return result.success unless result.success.nil?
|
650
|
+
raise result.o2 unless result.o2.nil?
|
651
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_names failed: unknown result')
|
652
|
+
end
|
653
|
+
|
384
654
|
end
|
385
655
|
|
386
656
|
class Processor < FacebookService::Processor
|
@@ -390,11 +660,13 @@ module ThriftHiveMetastore
|
|
390
660
|
args = read_args(iprot, Create_database_args)
|
391
661
|
result = Create_database_result.new()
|
392
662
|
begin
|
393
|
-
|
663
|
+
@handler.create_database(args.database)
|
394
664
|
rescue AlreadyExistsException => o1
|
395
665
|
result.o1 = o1
|
396
|
-
rescue
|
666
|
+
rescue InvalidObjectException => o2
|
397
667
|
result.o2 = o2
|
668
|
+
rescue MetaException => o3
|
669
|
+
result.o3 = o3
|
398
670
|
end
|
399
671
|
write_result(result, oprot, 'create_database', seqid)
|
400
672
|
end
|
@@ -416,9 +688,13 @@ module ThriftHiveMetastore
|
|
416
688
|
args = read_args(iprot, Drop_database_args)
|
417
689
|
result = Drop_database_result.new()
|
418
690
|
begin
|
419
|
-
|
420
|
-
rescue
|
691
|
+
@handler.drop_database(args.name, args.deleteData)
|
692
|
+
rescue NoSuchObjectException => o1
|
693
|
+
result.o1 = o1
|
694
|
+
rescue InvalidOperationException => o2
|
421
695
|
result.o2 = o2
|
696
|
+
rescue MetaException => o3
|
697
|
+
result.o3 = o3
|
422
698
|
end
|
423
699
|
write_result(result, oprot, 'drop_database', seqid)
|
424
700
|
end
|
@@ -427,19 +703,32 @@ module ThriftHiveMetastore
|
|
427
703
|
args = read_args(iprot, Get_databases_args)
|
428
704
|
result = Get_databases_result.new()
|
429
705
|
begin
|
430
|
-
result.success = @handler.get_databases()
|
706
|
+
result.success = @handler.get_databases(args.pattern)
|
431
707
|
rescue MetaException => o1
|
432
708
|
result.o1 = o1
|
433
709
|
end
|
434
710
|
write_result(result, oprot, 'get_databases', seqid)
|
435
711
|
end
|
436
712
|
|
713
|
+
def process_get_all_databases(seqid, iprot, oprot)
|
714
|
+
args = read_args(iprot, Get_all_databases_args)
|
715
|
+
result = Get_all_databases_result.new()
|
716
|
+
begin
|
717
|
+
result.success = @handler.get_all_databases()
|
718
|
+
rescue MetaException => o1
|
719
|
+
result.o1 = o1
|
720
|
+
end
|
721
|
+
write_result(result, oprot, 'get_all_databases', seqid)
|
722
|
+
end
|
723
|
+
|
437
724
|
def process_get_type(seqid, iprot, oprot)
|
438
725
|
args = read_args(iprot, Get_type_args)
|
439
726
|
result = Get_type_result.new()
|
440
727
|
begin
|
441
728
|
result.success = @handler.get_type(args.name)
|
442
|
-
rescue MetaException =>
|
729
|
+
rescue MetaException => o1
|
730
|
+
result.o1 = o1
|
731
|
+
rescue NoSuchObjectException => o2
|
443
732
|
result.o2 = o2
|
444
733
|
end
|
445
734
|
write_result(result, oprot, 'get_type', seqid)
|
@@ -465,7 +754,9 @@ module ThriftHiveMetastore
|
|
465
754
|
result = Drop_type_result.new()
|
466
755
|
begin
|
467
756
|
result.success = @handler.drop_type(args.type)
|
468
|
-
rescue MetaException =>
|
757
|
+
rescue MetaException => o1
|
758
|
+
result.o1 = o1
|
759
|
+
rescue NoSuchObjectException => o2
|
469
760
|
result.o2 = o2
|
470
761
|
end
|
471
762
|
write_result(result, oprot, 'drop_type', seqid)
|
@@ -553,6 +844,17 @@ module ThriftHiveMetastore
|
|
553
844
|
write_result(result, oprot, 'get_tables', seqid)
|
554
845
|
end
|
555
846
|
|
847
|
+
def process_get_all_tables(seqid, iprot, oprot)
|
848
|
+
args = read_args(iprot, Get_all_tables_args)
|
849
|
+
result = Get_all_tables_result.new()
|
850
|
+
begin
|
851
|
+
result.success = @handler.get_all_tables(args.db_name)
|
852
|
+
rescue MetaException => o1
|
853
|
+
result.o1 = o1
|
854
|
+
end
|
855
|
+
write_result(result, oprot, 'get_all_tables', seqid)
|
856
|
+
end
|
857
|
+
|
556
858
|
def process_get_table(seqid, iprot, oprot)
|
557
859
|
args = read_args(iprot, Get_table_args)
|
558
860
|
result = Get_table_result.new()
|
@@ -609,6 +911,21 @@ module ThriftHiveMetastore
|
|
609
911
|
write_result(result, oprot, 'append_partition', seqid)
|
610
912
|
end
|
611
913
|
|
914
|
+
def process_append_partition_by_name(seqid, iprot, oprot)
|
915
|
+
args = read_args(iprot, Append_partition_by_name_args)
|
916
|
+
result = Append_partition_by_name_result.new()
|
917
|
+
begin
|
918
|
+
result.success = @handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
|
919
|
+
rescue InvalidObjectException => o1
|
920
|
+
result.o1 = o1
|
921
|
+
rescue AlreadyExistsException => o2
|
922
|
+
result.o2 = o2
|
923
|
+
rescue MetaException => o3
|
924
|
+
result.o3 = o3
|
925
|
+
end
|
926
|
+
write_result(result, oprot, 'append_partition_by_name', seqid)
|
927
|
+
end
|
928
|
+
|
612
929
|
def process_drop_partition(seqid, iprot, oprot)
|
613
930
|
args = read_args(iprot, Drop_partition_args)
|
614
931
|
result = Drop_partition_result.new()
|
@@ -622,6 +939,19 @@ module ThriftHiveMetastore
|
|
622
939
|
write_result(result, oprot, 'drop_partition', seqid)
|
623
940
|
end
|
624
941
|
|
942
|
+
def process_drop_partition_by_name(seqid, iprot, oprot)
|
943
|
+
args = read_args(iprot, Drop_partition_by_name_args)
|
944
|
+
result = Drop_partition_by_name_result.new()
|
945
|
+
begin
|
946
|
+
result.success = @handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
|
947
|
+
rescue NoSuchObjectException => o1
|
948
|
+
result.o1 = o1
|
949
|
+
rescue MetaException => o2
|
950
|
+
result.o2 = o2
|
951
|
+
end
|
952
|
+
write_result(result, oprot, 'drop_partition_by_name', seqid)
|
953
|
+
end
|
954
|
+
|
625
955
|
def process_get_partition(seqid, iprot, oprot)
|
626
956
|
args = read_args(iprot, Get_partition_args)
|
627
957
|
result = Get_partition_result.new()
|
@@ -629,10 +959,25 @@ module ThriftHiveMetastore
|
|
629
959
|
result.success = @handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
|
630
960
|
rescue MetaException => o1
|
631
961
|
result.o1 = o1
|
962
|
+
rescue NoSuchObjectException => o2
|
963
|
+
result.o2 = o2
|
632
964
|
end
|
633
965
|
write_result(result, oprot, 'get_partition', seqid)
|
634
966
|
end
|
635
967
|
|
968
|
+
def process_get_partition_by_name(seqid, iprot, oprot)
|
969
|
+
args = read_args(iprot, Get_partition_by_name_args)
|
970
|
+
result = Get_partition_by_name_result.new()
|
971
|
+
begin
|
972
|
+
result.success = @handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
|
973
|
+
rescue MetaException => o1
|
974
|
+
result.o1 = o1
|
975
|
+
rescue NoSuchObjectException => o2
|
976
|
+
result.o2 = o2
|
977
|
+
end
|
978
|
+
write_result(result, oprot, 'get_partition_by_name', seqid)
|
979
|
+
end
|
980
|
+
|
636
981
|
def process_get_partitions(seqid, iprot, oprot)
|
637
982
|
args = read_args(iprot, Get_partitions_args)
|
638
983
|
result = Get_partitions_result.new()
|
@@ -657,6 +1002,41 @@ module ThriftHiveMetastore
|
|
657
1002
|
write_result(result, oprot, 'get_partition_names', seqid)
|
658
1003
|
end
|
659
1004
|
|
1005
|
+
def process_get_partitions_ps(seqid, iprot, oprot)
|
1006
|
+
args = read_args(iprot, Get_partitions_ps_args)
|
1007
|
+
result = Get_partitions_ps_result.new()
|
1008
|
+
begin
|
1009
|
+
result.success = @handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
|
1010
|
+
rescue MetaException => o1
|
1011
|
+
result.o1 = o1
|
1012
|
+
end
|
1013
|
+
write_result(result, oprot, 'get_partitions_ps', seqid)
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
def process_get_partition_names_ps(seqid, iprot, oprot)
|
1017
|
+
args = read_args(iprot, Get_partition_names_ps_args)
|
1018
|
+
result = Get_partition_names_ps_result.new()
|
1019
|
+
begin
|
1020
|
+
result.success = @handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
|
1021
|
+
rescue MetaException => o1
|
1022
|
+
result.o1 = o1
|
1023
|
+
end
|
1024
|
+
write_result(result, oprot, 'get_partition_names_ps', seqid)
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
def process_get_partitions_by_filter(seqid, iprot, oprot)
|
1028
|
+
args = read_args(iprot, Get_partitions_by_filter_args)
|
1029
|
+
result = Get_partitions_by_filter_result.new()
|
1030
|
+
begin
|
1031
|
+
result.success = @handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
|
1032
|
+
rescue MetaException => o1
|
1033
|
+
result.o1 = o1
|
1034
|
+
rescue NoSuchObjectException => o2
|
1035
|
+
result.o2 = o2
|
1036
|
+
end
|
1037
|
+
write_result(result, oprot, 'get_partitions_by_filter', seqid)
|
1038
|
+
end
|
1039
|
+
|
660
1040
|
def process_alter_partition(seqid, iprot, oprot)
|
661
1041
|
args = read_args(iprot, Alter_partition_args)
|
662
1042
|
result = Alter_partition_result.new()
|
@@ -670,39 +1050,134 @@ module ThriftHiveMetastore
|
|
670
1050
|
write_result(result, oprot, 'alter_partition', seqid)
|
671
1051
|
end
|
672
1052
|
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
FIELDS = {
|
684
|
-
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
685
|
-
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description'}
|
686
|
-
}
|
687
|
-
|
688
|
-
def struct_fields; FIELDS; end
|
1053
|
+
def process_get_config_value(seqid, iprot, oprot)
|
1054
|
+
args = read_args(iprot, Get_config_value_args)
|
1055
|
+
result = Get_config_value_result.new()
|
1056
|
+
begin
|
1057
|
+
result.success = @handler.get_config_value(args.name, args.defaultValue)
|
1058
|
+
rescue ConfigValSecurityException => o1
|
1059
|
+
result.o1 = o1
|
1060
|
+
end
|
1061
|
+
write_result(result, oprot, 'get_config_value', seqid)
|
1062
|
+
end
|
689
1063
|
|
690
|
-
def
|
1064
|
+
def process_partition_name_to_vals(seqid, iprot, oprot)
|
1065
|
+
args = read_args(iprot, Partition_name_to_vals_args)
|
1066
|
+
result = Partition_name_to_vals_result.new()
|
1067
|
+
begin
|
1068
|
+
result.success = @handler.partition_name_to_vals(args.part_name)
|
1069
|
+
rescue MetaException => o1
|
1070
|
+
result.o1 = o1
|
1071
|
+
end
|
1072
|
+
write_result(result, oprot, 'partition_name_to_vals', seqid)
|
691
1073
|
end
|
692
1074
|
|
693
|
-
|
1075
|
+
def process_partition_name_to_spec(seqid, iprot, oprot)
|
1076
|
+
args = read_args(iprot, Partition_name_to_spec_args)
|
1077
|
+
result = Partition_name_to_spec_result.new()
|
1078
|
+
begin
|
1079
|
+
result.success = @handler.partition_name_to_spec(args.part_name)
|
1080
|
+
rescue MetaException => o1
|
1081
|
+
result.o1 = o1
|
1082
|
+
end
|
1083
|
+
write_result(result, oprot, 'partition_name_to_spec', seqid)
|
1084
|
+
end
|
694
1085
|
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
1086
|
+
def process_add_index(seqid, iprot, oprot)
|
1087
|
+
args = read_args(iprot, Add_index_args)
|
1088
|
+
result = Add_index_result.new()
|
1089
|
+
begin
|
1090
|
+
result.success = @handler.add_index(args.new_index, args.index_table)
|
1091
|
+
rescue InvalidObjectException => o1
|
1092
|
+
result.o1 = o1
|
1093
|
+
rescue AlreadyExistsException => o2
|
1094
|
+
result.o2 = o2
|
1095
|
+
rescue MetaException => o3
|
1096
|
+
result.o3 = o3
|
1097
|
+
end
|
1098
|
+
write_result(result, oprot, 'add_index', seqid)
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
def process_drop_index_by_name(seqid, iprot, oprot)
|
1102
|
+
args = read_args(iprot, Drop_index_by_name_args)
|
1103
|
+
result = Drop_index_by_name_result.new()
|
1104
|
+
begin
|
1105
|
+
result.success = @handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
|
1106
|
+
rescue NoSuchObjectException => o1
|
1107
|
+
result.o1 = o1
|
1108
|
+
rescue MetaException => o2
|
1109
|
+
result.o2 = o2
|
1110
|
+
end
|
1111
|
+
write_result(result, oprot, 'drop_index_by_name', seqid)
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
def process_get_index_by_name(seqid, iprot, oprot)
|
1115
|
+
args = read_args(iprot, Get_index_by_name_args)
|
1116
|
+
result = Get_index_by_name_result.new()
|
1117
|
+
begin
|
1118
|
+
result.success = @handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
|
1119
|
+
rescue MetaException => o1
|
1120
|
+
result.o1 = o1
|
1121
|
+
rescue NoSuchObjectException => o2
|
1122
|
+
result.o2 = o2
|
1123
|
+
end
|
1124
|
+
write_result(result, oprot, 'get_index_by_name', seqid)
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
def process_get_indexes(seqid, iprot, oprot)
|
1128
|
+
args = read_args(iprot, Get_indexes_args)
|
1129
|
+
result = Get_indexes_result.new()
|
1130
|
+
begin
|
1131
|
+
result.success = @handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
|
1132
|
+
rescue NoSuchObjectException => o1
|
1133
|
+
result.o1 = o1
|
1134
|
+
rescue MetaException => o2
|
1135
|
+
result.o2 = o2
|
1136
|
+
end
|
1137
|
+
write_result(result, oprot, 'get_indexes', seqid)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
def process_get_index_names(seqid, iprot, oprot)
|
1141
|
+
args = read_args(iprot, Get_index_names_args)
|
1142
|
+
result = Get_index_names_result.new()
|
1143
|
+
begin
|
1144
|
+
result.success = @handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
|
1145
|
+
rescue MetaException => o2
|
1146
|
+
result.o2 = o2
|
1147
|
+
end
|
1148
|
+
write_result(result, oprot, 'get_index_names', seqid)
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
1154
|
+
|
1155
|
+
class Create_database_args
|
1156
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1157
|
+
DATABASE = 1
|
1158
|
+
|
1159
|
+
FIELDS = {
|
1160
|
+
DATABASE => {:type => ::Thrift::Types::STRUCT, :name => 'database', :class => Database}
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
def struct_fields; FIELDS; end
|
1164
|
+
|
1165
|
+
def validate
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
::Thrift::Struct.generate_accessors self
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
class Create_database_result
|
1172
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1173
|
+
O1 = 1
|
1174
|
+
O2 = 2
|
1175
|
+
O3 = 3
|
700
1176
|
|
701
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2
|
702
1177
|
FIELDS = {
|
703
|
-
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
704
1178
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => AlreadyExistsException},
|
705
|
-
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class =>
|
1179
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => InvalidObjectException},
|
1180
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
|
706
1181
|
}
|
707
1182
|
|
708
1183
|
def struct_fields; FIELDS; end
|
@@ -710,13 +1185,13 @@ module ThriftHiveMetastore
|
|
710
1185
|
def validate
|
711
1186
|
end
|
712
1187
|
|
1188
|
+
::Thrift::Struct.generate_accessors self
|
713
1189
|
end
|
714
1190
|
|
715
1191
|
class Get_database_args
|
716
|
-
include ::Thrift::Struct
|
1192
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
717
1193
|
NAME = 1
|
718
1194
|
|
719
|
-
::Thrift::Struct.field_accessor self, :name
|
720
1195
|
FIELDS = {
|
721
1196
|
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
722
1197
|
}
|
@@ -726,15 +1201,15 @@ module ThriftHiveMetastore
|
|
726
1201
|
def validate
|
727
1202
|
end
|
728
1203
|
|
1204
|
+
::Thrift::Struct.generate_accessors self
|
729
1205
|
end
|
730
1206
|
|
731
1207
|
class Get_database_result
|
732
|
-
include ::Thrift::Struct
|
1208
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
733
1209
|
SUCCESS = 0
|
734
1210
|
O1 = 1
|
735
1211
|
O2 = 2
|
736
1212
|
|
737
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2
|
738
1213
|
FIELDS = {
|
739
1214
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Database},
|
740
1215
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
@@ -746,15 +1221,17 @@ module ThriftHiveMetastore
|
|
746
1221
|
def validate
|
747
1222
|
end
|
748
1223
|
|
1224
|
+
::Thrift::Struct.generate_accessors self
|
749
1225
|
end
|
750
1226
|
|
751
1227
|
class Drop_database_args
|
752
|
-
include ::Thrift::Struct
|
1228
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
753
1229
|
NAME = 1
|
1230
|
+
DELETEDATA = 2
|
754
1231
|
|
755
|
-
::Thrift::Struct.field_accessor self, :name
|
756
1232
|
FIELDS = {
|
757
|
-
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
1233
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1234
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
758
1235
|
}
|
759
1236
|
|
760
1237
|
def struct_fields; FIELDS; end
|
@@ -762,17 +1239,19 @@ module ThriftHiveMetastore
|
|
762
1239
|
def validate
|
763
1240
|
end
|
764
1241
|
|
1242
|
+
::Thrift::Struct.generate_accessors self
|
765
1243
|
end
|
766
1244
|
|
767
1245
|
class Drop_database_result
|
768
|
-
include ::Thrift::Struct
|
769
|
-
|
1246
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1247
|
+
O1 = 1
|
770
1248
|
O2 = 2
|
1249
|
+
O3 = 3
|
771
1250
|
|
772
|
-
::Thrift::Struct.field_accessor self, :success, :o2
|
773
1251
|
FIELDS = {
|
774
|
-
|
775
|
-
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class =>
|
1252
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
1253
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => InvalidOperationException},
|
1254
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
|
776
1255
|
}
|
777
1256
|
|
778
1257
|
def struct_fields; FIELDS; end
|
@@ -780,13 +1259,15 @@ module ThriftHiveMetastore
|
|
780
1259
|
def validate
|
781
1260
|
end
|
782
1261
|
|
1262
|
+
::Thrift::Struct.generate_accessors self
|
783
1263
|
end
|
784
1264
|
|
785
1265
|
class Get_databases_args
|
786
|
-
include ::Thrift::Struct
|
1266
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1267
|
+
PATTERN = 1
|
787
1268
|
|
788
1269
|
FIELDS = {
|
789
|
-
|
1270
|
+
PATTERN => {:type => ::Thrift::Types::STRING, :name => 'pattern'}
|
790
1271
|
}
|
791
1272
|
|
792
1273
|
def struct_fields; FIELDS; end
|
@@ -794,14 +1275,47 @@ module ThriftHiveMetastore
|
|
794
1275
|
def validate
|
795
1276
|
end
|
796
1277
|
|
1278
|
+
::Thrift::Struct.generate_accessors self
|
797
1279
|
end
|
798
1280
|
|
799
1281
|
class Get_databases_result
|
800
|
-
include ::Thrift::Struct
|
1282
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1283
|
+
SUCCESS = 0
|
1284
|
+
O1 = 1
|
1285
|
+
|
1286
|
+
FIELDS = {
|
1287
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1288
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
1289
|
+
}
|
1290
|
+
|
1291
|
+
def struct_fields; FIELDS; end
|
1292
|
+
|
1293
|
+
def validate
|
1294
|
+
end
|
1295
|
+
|
1296
|
+
::Thrift::Struct.generate_accessors self
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
class Get_all_databases_args
|
1300
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1301
|
+
|
1302
|
+
FIELDS = {
|
1303
|
+
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
def struct_fields; FIELDS; end
|
1307
|
+
|
1308
|
+
def validate
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
::Thrift::Struct.generate_accessors self
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
class Get_all_databases_result
|
1315
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
801
1316
|
SUCCESS = 0
|
802
1317
|
O1 = 1
|
803
1318
|
|
804
|
-
::Thrift::Struct.field_accessor self, :success, :o1
|
805
1319
|
FIELDS = {
|
806
1320
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
807
1321
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
@@ -812,13 +1326,13 @@ module ThriftHiveMetastore
|
|
812
1326
|
def validate
|
813
1327
|
end
|
814
1328
|
|
1329
|
+
::Thrift::Struct.generate_accessors self
|
815
1330
|
end
|
816
1331
|
|
817
1332
|
class Get_type_args
|
818
|
-
include ::Thrift::Struct
|
1333
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
819
1334
|
NAME = 1
|
820
1335
|
|
821
|
-
::Thrift::Struct.field_accessor self, :name
|
822
1336
|
FIELDS = {
|
823
1337
|
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
824
1338
|
}
|
@@ -828,17 +1342,19 @@ module ThriftHiveMetastore
|
|
828
1342
|
def validate
|
829
1343
|
end
|
830
1344
|
|
1345
|
+
::Thrift::Struct.generate_accessors self
|
831
1346
|
end
|
832
1347
|
|
833
1348
|
class Get_type_result
|
834
|
-
include ::Thrift::Struct
|
1349
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
835
1350
|
SUCCESS = 0
|
836
|
-
|
1351
|
+
O1 = 1
|
1352
|
+
O2 = 2
|
837
1353
|
|
838
|
-
::Thrift::Struct.field_accessor self, :success, :o2
|
839
1354
|
FIELDS = {
|
840
1355
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Type},
|
841
|
-
|
1356
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
1357
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
|
842
1358
|
}
|
843
1359
|
|
844
1360
|
def struct_fields; FIELDS; end
|
@@ -846,13 +1362,13 @@ module ThriftHiveMetastore
|
|
846
1362
|
def validate
|
847
1363
|
end
|
848
1364
|
|
1365
|
+
::Thrift::Struct.generate_accessors self
|
849
1366
|
end
|
850
1367
|
|
851
1368
|
class Create_type_args
|
852
|
-
include ::Thrift::Struct
|
1369
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
853
1370
|
TYPE = 1
|
854
1371
|
|
855
|
-
::Thrift::Struct.field_accessor self, :type
|
856
1372
|
FIELDS = {
|
857
1373
|
TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => Type}
|
858
1374
|
}
|
@@ -862,16 +1378,16 @@ module ThriftHiveMetastore
|
|
862
1378
|
def validate
|
863
1379
|
end
|
864
1380
|
|
1381
|
+
::Thrift::Struct.generate_accessors self
|
865
1382
|
end
|
866
1383
|
|
867
1384
|
class Create_type_result
|
868
|
-
include ::Thrift::Struct
|
1385
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
869
1386
|
SUCCESS = 0
|
870
1387
|
O1 = 1
|
871
1388
|
O2 = 2
|
872
1389
|
O3 = 3
|
873
1390
|
|
874
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2, :o3
|
875
1391
|
FIELDS = {
|
876
1392
|
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
877
1393
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => AlreadyExistsException},
|
@@ -884,13 +1400,13 @@ module ThriftHiveMetastore
|
|
884
1400
|
def validate
|
885
1401
|
end
|
886
1402
|
|
1403
|
+
::Thrift::Struct.generate_accessors self
|
887
1404
|
end
|
888
1405
|
|
889
1406
|
class Drop_type_args
|
890
|
-
include ::Thrift::Struct
|
1407
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
891
1408
|
TYPE = 1
|
892
1409
|
|
893
|
-
::Thrift::Struct.field_accessor self, :type
|
894
1410
|
FIELDS = {
|
895
1411
|
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'}
|
896
1412
|
}
|
@@ -900,17 +1416,19 @@ module ThriftHiveMetastore
|
|
900
1416
|
def validate
|
901
1417
|
end
|
902
1418
|
|
1419
|
+
::Thrift::Struct.generate_accessors self
|
903
1420
|
end
|
904
1421
|
|
905
1422
|
class Drop_type_result
|
906
|
-
include ::Thrift::Struct
|
1423
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
907
1424
|
SUCCESS = 0
|
908
|
-
|
1425
|
+
O1 = 1
|
1426
|
+
O2 = 2
|
909
1427
|
|
910
|
-
::Thrift::Struct.field_accessor self, :success, :o2
|
911
1428
|
FIELDS = {
|
912
1429
|
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
913
|
-
|
1430
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
1431
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
|
914
1432
|
}
|
915
1433
|
|
916
1434
|
def struct_fields; FIELDS; end
|
@@ -918,13 +1436,13 @@ module ThriftHiveMetastore
|
|
918
1436
|
def validate
|
919
1437
|
end
|
920
1438
|
|
1439
|
+
::Thrift::Struct.generate_accessors self
|
921
1440
|
end
|
922
1441
|
|
923
1442
|
class Get_type_all_args
|
924
|
-
include ::Thrift::Struct
|
1443
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
925
1444
|
NAME = 1
|
926
1445
|
|
927
|
-
::Thrift::Struct.field_accessor self, :name
|
928
1446
|
FIELDS = {
|
929
1447
|
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
930
1448
|
}
|
@@ -934,14 +1452,14 @@ module ThriftHiveMetastore
|
|
934
1452
|
def validate
|
935
1453
|
end
|
936
1454
|
|
1455
|
+
::Thrift::Struct.generate_accessors self
|
937
1456
|
end
|
938
1457
|
|
939
1458
|
class Get_type_all_result
|
940
|
-
include ::Thrift::Struct
|
1459
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
941
1460
|
SUCCESS = 0
|
942
1461
|
O2 = 1
|
943
1462
|
|
944
|
-
::Thrift::Struct.field_accessor self, :success, :o2
|
945
1463
|
FIELDS = {
|
946
1464
|
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => Type}},
|
947
1465
|
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
@@ -952,14 +1470,14 @@ module ThriftHiveMetastore
|
|
952
1470
|
def validate
|
953
1471
|
end
|
954
1472
|
|
1473
|
+
::Thrift::Struct.generate_accessors self
|
955
1474
|
end
|
956
1475
|
|
957
1476
|
class Get_fields_args
|
958
|
-
include ::Thrift::Struct
|
1477
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
959
1478
|
DB_NAME = 1
|
960
1479
|
TABLE_NAME = 2
|
961
1480
|
|
962
|
-
::Thrift::Struct.field_accessor self, :db_name, :table_name
|
963
1481
|
FIELDS = {
|
964
1482
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
965
1483
|
TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
|
@@ -970,16 +1488,16 @@ module ThriftHiveMetastore
|
|
970
1488
|
def validate
|
971
1489
|
end
|
972
1490
|
|
1491
|
+
::Thrift::Struct.generate_accessors self
|
973
1492
|
end
|
974
1493
|
|
975
1494
|
class Get_fields_result
|
976
|
-
include ::Thrift::Struct
|
1495
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
977
1496
|
SUCCESS = 0
|
978
1497
|
O1 = 1
|
979
1498
|
O2 = 2
|
980
1499
|
O3 = 3
|
981
1500
|
|
982
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2, :o3
|
983
1501
|
FIELDS = {
|
984
1502
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => FieldSchema}},
|
985
1503
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
@@ -992,14 +1510,14 @@ module ThriftHiveMetastore
|
|
992
1510
|
def validate
|
993
1511
|
end
|
994
1512
|
|
1513
|
+
::Thrift::Struct.generate_accessors self
|
995
1514
|
end
|
996
1515
|
|
997
1516
|
class Get_schema_args
|
998
|
-
include ::Thrift::Struct
|
1517
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
999
1518
|
DB_NAME = 1
|
1000
1519
|
TABLE_NAME = 2
|
1001
1520
|
|
1002
|
-
::Thrift::Struct.field_accessor self, :db_name, :table_name
|
1003
1521
|
FIELDS = {
|
1004
1522
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1005
1523
|
TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
|
@@ -1010,16 +1528,16 @@ module ThriftHiveMetastore
|
|
1010
1528
|
def validate
|
1011
1529
|
end
|
1012
1530
|
|
1531
|
+
::Thrift::Struct.generate_accessors self
|
1013
1532
|
end
|
1014
1533
|
|
1015
1534
|
class Get_schema_result
|
1016
|
-
include ::Thrift::Struct
|
1535
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1017
1536
|
SUCCESS = 0
|
1018
1537
|
O1 = 1
|
1019
1538
|
O2 = 2
|
1020
1539
|
O3 = 3
|
1021
1540
|
|
1022
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2, :o3
|
1023
1541
|
FIELDS = {
|
1024
1542
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => FieldSchema}},
|
1025
1543
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
@@ -1032,13 +1550,13 @@ module ThriftHiveMetastore
|
|
1032
1550
|
def validate
|
1033
1551
|
end
|
1034
1552
|
|
1553
|
+
::Thrift::Struct.generate_accessors self
|
1035
1554
|
end
|
1036
1555
|
|
1037
1556
|
class Create_table_args
|
1038
|
-
include ::Thrift::Struct
|
1557
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1039
1558
|
TBL = 1
|
1040
1559
|
|
1041
|
-
::Thrift::Struct.field_accessor self, :tbl
|
1042
1560
|
FIELDS = {
|
1043
1561
|
TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => Table}
|
1044
1562
|
}
|
@@ -1048,16 +1566,16 @@ module ThriftHiveMetastore
|
|
1048
1566
|
def validate
|
1049
1567
|
end
|
1050
1568
|
|
1569
|
+
::Thrift::Struct.generate_accessors self
|
1051
1570
|
end
|
1052
1571
|
|
1053
1572
|
class Create_table_result
|
1054
|
-
include ::Thrift::Struct
|
1573
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1055
1574
|
O1 = 1
|
1056
1575
|
O2 = 2
|
1057
1576
|
O3 = 3
|
1058
1577
|
O4 = 4
|
1059
1578
|
|
1060
|
-
::Thrift::Struct.field_accessor self, :o1, :o2, :o3, :o4
|
1061
1579
|
FIELDS = {
|
1062
1580
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => AlreadyExistsException},
|
1063
1581
|
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => InvalidObjectException},
|
@@ -1070,15 +1588,15 @@ module ThriftHiveMetastore
|
|
1070
1588
|
def validate
|
1071
1589
|
end
|
1072
1590
|
|
1591
|
+
::Thrift::Struct.generate_accessors self
|
1073
1592
|
end
|
1074
1593
|
|
1075
1594
|
class Drop_table_args
|
1076
|
-
include ::Thrift::Struct
|
1595
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1077
1596
|
DBNAME = 1
|
1078
1597
|
NAME = 2
|
1079
1598
|
DELETEDATA = 3
|
1080
1599
|
|
1081
|
-
::Thrift::Struct.field_accessor self, :dbname, :name, :deleteData
|
1082
1600
|
FIELDS = {
|
1083
1601
|
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
1084
1602
|
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
@@ -1090,14 +1608,14 @@ module ThriftHiveMetastore
|
|
1090
1608
|
def validate
|
1091
1609
|
end
|
1092
1610
|
|
1611
|
+
::Thrift::Struct.generate_accessors self
|
1093
1612
|
end
|
1094
1613
|
|
1095
1614
|
class Drop_table_result
|
1096
|
-
include ::Thrift::Struct
|
1615
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1097
1616
|
O1 = 1
|
1098
1617
|
O3 = 2
|
1099
1618
|
|
1100
|
-
::Thrift::Struct.field_accessor self, :o1, :o3
|
1101
1619
|
FIELDS = {
|
1102
1620
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
1103
1621
|
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
|
@@ -1108,14 +1626,14 @@ module ThriftHiveMetastore
|
|
1108
1626
|
def validate
|
1109
1627
|
end
|
1110
1628
|
|
1629
|
+
::Thrift::Struct.generate_accessors self
|
1111
1630
|
end
|
1112
1631
|
|
1113
1632
|
class Get_tables_args
|
1114
|
-
include ::Thrift::Struct
|
1633
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1115
1634
|
DB_NAME = 1
|
1116
1635
|
PATTERN = 2
|
1117
1636
|
|
1118
|
-
::Thrift::Struct.field_accessor self, :db_name, :pattern
|
1119
1637
|
FIELDS = {
|
1120
1638
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1121
1639
|
PATTERN => {:type => ::Thrift::Types::STRING, :name => 'pattern'}
|
@@ -1126,14 +1644,48 @@ module ThriftHiveMetastore
|
|
1126
1644
|
def validate
|
1127
1645
|
end
|
1128
1646
|
|
1647
|
+
::Thrift::Struct.generate_accessors self
|
1129
1648
|
end
|
1130
1649
|
|
1131
1650
|
class Get_tables_result
|
1132
|
-
include ::Thrift::Struct
|
1651
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1652
|
+
SUCCESS = 0
|
1653
|
+
O1 = 1
|
1654
|
+
|
1655
|
+
FIELDS = {
|
1656
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1657
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
1658
|
+
}
|
1659
|
+
|
1660
|
+
def struct_fields; FIELDS; end
|
1661
|
+
|
1662
|
+
def validate
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
::Thrift::Struct.generate_accessors self
|
1666
|
+
end
|
1667
|
+
|
1668
|
+
class Get_all_tables_args
|
1669
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1670
|
+
DB_NAME = 1
|
1671
|
+
|
1672
|
+
FIELDS = {
|
1673
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}
|
1674
|
+
}
|
1675
|
+
|
1676
|
+
def struct_fields; FIELDS; end
|
1677
|
+
|
1678
|
+
def validate
|
1679
|
+
end
|
1680
|
+
|
1681
|
+
::Thrift::Struct.generate_accessors self
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
class Get_all_tables_result
|
1685
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1133
1686
|
SUCCESS = 0
|
1134
1687
|
O1 = 1
|
1135
1688
|
|
1136
|
-
::Thrift::Struct.field_accessor self, :success, :o1
|
1137
1689
|
FIELDS = {
|
1138
1690
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1139
1691
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
@@ -1144,14 +1696,14 @@ module ThriftHiveMetastore
|
|
1144
1696
|
def validate
|
1145
1697
|
end
|
1146
1698
|
|
1699
|
+
::Thrift::Struct.generate_accessors self
|
1147
1700
|
end
|
1148
1701
|
|
1149
1702
|
class Get_table_args
|
1150
|
-
include ::Thrift::Struct
|
1703
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1151
1704
|
DBNAME = 1
|
1152
1705
|
TBL_NAME = 2
|
1153
1706
|
|
1154
|
-
::Thrift::Struct.field_accessor self, :dbname, :tbl_name
|
1155
1707
|
FIELDS = {
|
1156
1708
|
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
1157
1709
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'}
|
@@ -1162,15 +1714,15 @@ module ThriftHiveMetastore
|
|
1162
1714
|
def validate
|
1163
1715
|
end
|
1164
1716
|
|
1717
|
+
::Thrift::Struct.generate_accessors self
|
1165
1718
|
end
|
1166
1719
|
|
1167
1720
|
class Get_table_result
|
1168
|
-
include ::Thrift::Struct
|
1721
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1169
1722
|
SUCCESS = 0
|
1170
1723
|
O1 = 1
|
1171
1724
|
O2 = 2
|
1172
1725
|
|
1173
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2
|
1174
1726
|
FIELDS = {
|
1175
1727
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Table},
|
1176
1728
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
@@ -1182,15 +1734,15 @@ module ThriftHiveMetastore
|
|
1182
1734
|
def validate
|
1183
1735
|
end
|
1184
1736
|
|
1737
|
+
::Thrift::Struct.generate_accessors self
|
1185
1738
|
end
|
1186
1739
|
|
1187
1740
|
class Alter_table_args
|
1188
|
-
include ::Thrift::Struct
|
1741
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1189
1742
|
DBNAME = 1
|
1190
1743
|
TBL_NAME = 2
|
1191
1744
|
NEW_TBL = 3
|
1192
1745
|
|
1193
|
-
::Thrift::Struct.field_accessor self, :dbname, :tbl_name, :new_tbl
|
1194
1746
|
FIELDS = {
|
1195
1747
|
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
1196
1748
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
@@ -1202,14 +1754,14 @@ module ThriftHiveMetastore
|
|
1202
1754
|
def validate
|
1203
1755
|
end
|
1204
1756
|
|
1757
|
+
::Thrift::Struct.generate_accessors self
|
1205
1758
|
end
|
1206
1759
|
|
1207
1760
|
class Alter_table_result
|
1208
|
-
include ::Thrift::Struct
|
1761
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1209
1762
|
O1 = 1
|
1210
1763
|
O2 = 2
|
1211
1764
|
|
1212
|
-
::Thrift::Struct.field_accessor self, :o1, :o2
|
1213
1765
|
FIELDS = {
|
1214
1766
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidOperationException},
|
1215
1767
|
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
@@ -1220,13 +1772,13 @@ module ThriftHiveMetastore
|
|
1220
1772
|
def validate
|
1221
1773
|
end
|
1222
1774
|
|
1775
|
+
::Thrift::Struct.generate_accessors self
|
1223
1776
|
end
|
1224
1777
|
|
1225
1778
|
class Add_partition_args
|
1226
|
-
include ::Thrift::Struct
|
1779
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1227
1780
|
NEW_PART = 1
|
1228
1781
|
|
1229
|
-
::Thrift::Struct.field_accessor self, :new_part
|
1230
1782
|
FIELDS = {
|
1231
1783
|
NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => Partition}
|
1232
1784
|
}
|
@@ -1236,16 +1788,16 @@ module ThriftHiveMetastore
|
|
1236
1788
|
def validate
|
1237
1789
|
end
|
1238
1790
|
|
1791
|
+
::Thrift::Struct.generate_accessors self
|
1239
1792
|
end
|
1240
1793
|
|
1241
1794
|
class Add_partition_result
|
1242
|
-
include ::Thrift::Struct
|
1795
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1243
1796
|
SUCCESS = 0
|
1244
1797
|
O1 = 1
|
1245
1798
|
O2 = 2
|
1246
1799
|
O3 = 3
|
1247
1800
|
|
1248
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2, :o3
|
1249
1801
|
FIELDS = {
|
1250
1802
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
|
1251
1803
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
|
@@ -1258,15 +1810,15 @@ module ThriftHiveMetastore
|
|
1258
1810
|
def validate
|
1259
1811
|
end
|
1260
1812
|
|
1813
|
+
::Thrift::Struct.generate_accessors self
|
1261
1814
|
end
|
1262
1815
|
|
1263
1816
|
class Append_partition_args
|
1264
|
-
include ::Thrift::Struct
|
1817
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1265
1818
|
DB_NAME = 1
|
1266
1819
|
TBL_NAME = 2
|
1267
1820
|
PART_VALS = 3
|
1268
1821
|
|
1269
|
-
::Thrift::Struct.field_accessor self, :db_name, :tbl_name, :part_vals
|
1270
1822
|
FIELDS = {
|
1271
1823
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1272
1824
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
@@ -1278,16 +1830,58 @@ module ThriftHiveMetastore
|
|
1278
1830
|
def validate
|
1279
1831
|
end
|
1280
1832
|
|
1833
|
+
::Thrift::Struct.generate_accessors self
|
1281
1834
|
end
|
1282
1835
|
|
1283
1836
|
class Append_partition_result
|
1284
|
-
include ::Thrift::Struct
|
1837
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1838
|
+
SUCCESS = 0
|
1839
|
+
O1 = 1
|
1840
|
+
O2 = 2
|
1841
|
+
O3 = 3
|
1842
|
+
|
1843
|
+
FIELDS = {
|
1844
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
|
1845
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
|
1846
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => AlreadyExistsException},
|
1847
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
|
1848
|
+
}
|
1849
|
+
|
1850
|
+
def struct_fields; FIELDS; end
|
1851
|
+
|
1852
|
+
def validate
|
1853
|
+
end
|
1854
|
+
|
1855
|
+
::Thrift::Struct.generate_accessors self
|
1856
|
+
end
|
1857
|
+
|
1858
|
+
class Append_partition_by_name_args
|
1859
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1860
|
+
DB_NAME = 1
|
1861
|
+
TBL_NAME = 2
|
1862
|
+
PART_NAME = 3
|
1863
|
+
|
1864
|
+
FIELDS = {
|
1865
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1866
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
1867
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
1868
|
+
}
|
1869
|
+
|
1870
|
+
def struct_fields; FIELDS; end
|
1871
|
+
|
1872
|
+
def validate
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
::Thrift::Struct.generate_accessors self
|
1876
|
+
end
|
1877
|
+
|
1878
|
+
class Append_partition_by_name_result
|
1879
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1285
1880
|
SUCCESS = 0
|
1286
1881
|
O1 = 1
|
1287
1882
|
O2 = 2
|
1288
1883
|
O3 = 3
|
1289
1884
|
|
1290
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2, :o3
|
1291
1885
|
FIELDS = {
|
1292
1886
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
|
1293
1887
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
|
@@ -1300,16 +1894,16 @@ module ThriftHiveMetastore
|
|
1300
1894
|
def validate
|
1301
1895
|
end
|
1302
1896
|
|
1897
|
+
::Thrift::Struct.generate_accessors self
|
1303
1898
|
end
|
1304
1899
|
|
1305
1900
|
class Drop_partition_args
|
1306
|
-
include ::Thrift::Struct
|
1901
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1307
1902
|
DB_NAME = 1
|
1308
1903
|
TBL_NAME = 2
|
1309
1904
|
PART_VALS = 3
|
1310
1905
|
DELETEDATA = 4
|
1311
1906
|
|
1312
|
-
::Thrift::Struct.field_accessor self, :db_name, :tbl_name, :part_vals, :deleteData
|
1313
1907
|
FIELDS = {
|
1314
1908
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1315
1909
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
@@ -1322,15 +1916,57 @@ module ThriftHiveMetastore
|
|
1322
1916
|
def validate
|
1323
1917
|
end
|
1324
1918
|
|
1919
|
+
::Thrift::Struct.generate_accessors self
|
1325
1920
|
end
|
1326
1921
|
|
1327
1922
|
class Drop_partition_result
|
1328
|
-
include ::Thrift::Struct
|
1923
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1924
|
+
SUCCESS = 0
|
1925
|
+
O1 = 1
|
1926
|
+
O2 = 2
|
1927
|
+
|
1928
|
+
FIELDS = {
|
1929
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
1930
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
1931
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
1932
|
+
}
|
1933
|
+
|
1934
|
+
def struct_fields; FIELDS; end
|
1935
|
+
|
1936
|
+
def validate
|
1937
|
+
end
|
1938
|
+
|
1939
|
+
::Thrift::Struct.generate_accessors self
|
1940
|
+
end
|
1941
|
+
|
1942
|
+
class Drop_partition_by_name_args
|
1943
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1944
|
+
DB_NAME = 1
|
1945
|
+
TBL_NAME = 2
|
1946
|
+
PART_NAME = 3
|
1947
|
+
DELETEDATA = 4
|
1948
|
+
|
1949
|
+
FIELDS = {
|
1950
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1951
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
1952
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'},
|
1953
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
1954
|
+
}
|
1955
|
+
|
1956
|
+
def struct_fields; FIELDS; end
|
1957
|
+
|
1958
|
+
def validate
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
::Thrift::Struct.generate_accessors self
|
1962
|
+
end
|
1963
|
+
|
1964
|
+
class Drop_partition_by_name_result
|
1965
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1329
1966
|
SUCCESS = 0
|
1330
1967
|
O1 = 1
|
1331
1968
|
O2 = 2
|
1332
1969
|
|
1333
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2
|
1334
1970
|
FIELDS = {
|
1335
1971
|
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
1336
1972
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
@@ -1342,15 +1978,15 @@ module ThriftHiveMetastore
|
|
1342
1978
|
def validate
|
1343
1979
|
end
|
1344
1980
|
|
1981
|
+
::Thrift::Struct.generate_accessors self
|
1345
1982
|
end
|
1346
1983
|
|
1347
1984
|
class Get_partition_args
|
1348
|
-
include ::Thrift::Struct
|
1985
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1349
1986
|
DB_NAME = 1
|
1350
1987
|
TBL_NAME = 2
|
1351
1988
|
PART_VALS = 3
|
1352
1989
|
|
1353
|
-
::Thrift::Struct.field_accessor self, :db_name, :tbl_name, :part_vals
|
1354
1990
|
FIELDS = {
|
1355
1991
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1356
1992
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
@@ -1362,17 +1998,59 @@ module ThriftHiveMetastore
|
|
1362
1998
|
def validate
|
1363
1999
|
end
|
1364
2000
|
|
2001
|
+
::Thrift::Struct.generate_accessors self
|
1365
2002
|
end
|
1366
2003
|
|
1367
2004
|
class Get_partition_result
|
1368
|
-
include ::Thrift::Struct
|
2005
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1369
2006
|
SUCCESS = 0
|
1370
2007
|
O1 = 1
|
2008
|
+
O2 = 2
|
1371
2009
|
|
1372
|
-
::Thrift::Struct.field_accessor self, :success, :o1
|
1373
2010
|
FIELDS = {
|
1374
2011
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
|
1375
|
-
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
2012
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
2013
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
|
2014
|
+
}
|
2015
|
+
|
2016
|
+
def struct_fields; FIELDS; end
|
2017
|
+
|
2018
|
+
def validate
|
2019
|
+
end
|
2020
|
+
|
2021
|
+
::Thrift::Struct.generate_accessors self
|
2022
|
+
end
|
2023
|
+
|
2024
|
+
class Get_partition_by_name_args
|
2025
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2026
|
+
DB_NAME = 1
|
2027
|
+
TBL_NAME = 2
|
2028
|
+
PART_NAME = 3
|
2029
|
+
|
2030
|
+
FIELDS = {
|
2031
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2032
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2033
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
2034
|
+
}
|
2035
|
+
|
2036
|
+
def struct_fields; FIELDS; end
|
2037
|
+
|
2038
|
+
def validate
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
::Thrift::Struct.generate_accessors self
|
2042
|
+
end
|
2043
|
+
|
2044
|
+
class Get_partition_by_name_result
|
2045
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2046
|
+
SUCCESS = 0
|
2047
|
+
O1 = 1
|
2048
|
+
O2 = 2
|
2049
|
+
|
2050
|
+
FIELDS = {
|
2051
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
|
2052
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
2053
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
|
1376
2054
|
}
|
1377
2055
|
|
1378
2056
|
def struct_fields; FIELDS; end
|
@@ -1380,15 +2058,15 @@ module ThriftHiveMetastore
|
|
1380
2058
|
def validate
|
1381
2059
|
end
|
1382
2060
|
|
2061
|
+
::Thrift::Struct.generate_accessors self
|
1383
2062
|
end
|
1384
2063
|
|
1385
2064
|
class Get_partitions_args
|
1386
|
-
include ::Thrift::Struct
|
2065
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1387
2066
|
DB_NAME = 1
|
1388
2067
|
TBL_NAME = 2
|
1389
2068
|
MAX_PARTS = 3
|
1390
2069
|
|
1391
|
-
::Thrift::Struct.field_accessor self, :db_name, :tbl_name, :max_parts
|
1392
2070
|
FIELDS = {
|
1393
2071
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1394
2072
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
@@ -1400,15 +2078,15 @@ module ThriftHiveMetastore
|
|
1400
2078
|
def validate
|
1401
2079
|
end
|
1402
2080
|
|
2081
|
+
::Thrift::Struct.generate_accessors self
|
1403
2082
|
end
|
1404
2083
|
|
1405
2084
|
class Get_partitions_result
|
1406
|
-
include ::Thrift::Struct
|
2085
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1407
2086
|
SUCCESS = 0
|
1408
2087
|
O1 = 1
|
1409
2088
|
O2 = 2
|
1410
2089
|
|
1411
|
-
::Thrift::Struct.field_accessor self, :success, :o1, :o2
|
1412
2090
|
FIELDS = {
|
1413
2091
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Partition}},
|
1414
2092
|
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
@@ -1420,15 +2098,15 @@ module ThriftHiveMetastore
|
|
1420
2098
|
def validate
|
1421
2099
|
end
|
1422
2100
|
|
2101
|
+
::Thrift::Struct.generate_accessors self
|
1423
2102
|
end
|
1424
2103
|
|
1425
2104
|
class Get_partition_names_args
|
1426
|
-
include ::Thrift::Struct
|
2105
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1427
2106
|
DB_NAME = 1
|
1428
2107
|
TBL_NAME = 2
|
1429
2108
|
MAX_PARTS = 3
|
1430
2109
|
|
1431
|
-
::Thrift::Struct.field_accessor self, :db_name, :tbl_name, :max_parts
|
1432
2110
|
FIELDS = {
|
1433
2111
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1434
2112
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
@@ -1440,14 +2118,14 @@ module ThriftHiveMetastore
|
|
1440
2118
|
def validate
|
1441
2119
|
end
|
1442
2120
|
|
2121
|
+
::Thrift::Struct.generate_accessors self
|
1443
2122
|
end
|
1444
2123
|
|
1445
2124
|
class Get_partition_names_result
|
1446
|
-
include ::Thrift::Struct
|
2125
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1447
2126
|
SUCCESS = 0
|
1448
2127
|
O2 = 1
|
1449
2128
|
|
1450
|
-
::Thrift::Struct.field_accessor self, :success, :o2
|
1451
2129
|
FIELDS = {
|
1452
2130
|
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1453
2131
|
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
@@ -1458,19 +2136,21 @@ module ThriftHiveMetastore
|
|
1458
2136
|
def validate
|
1459
2137
|
end
|
1460
2138
|
|
2139
|
+
::Thrift::Struct.generate_accessors self
|
1461
2140
|
end
|
1462
2141
|
|
1463
|
-
class
|
1464
|
-
include ::Thrift::Struct
|
2142
|
+
class Get_partitions_ps_args
|
2143
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1465
2144
|
DB_NAME = 1
|
1466
2145
|
TBL_NAME = 2
|
1467
|
-
|
2146
|
+
PART_VALS = 3
|
2147
|
+
MAX_PARTS = 4
|
1468
2148
|
|
1469
|
-
::Thrift::Struct.field_accessor self, :db_name, :tbl_name, :new_part
|
1470
2149
|
FIELDS = {
|
1471
2150
|
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
1472
2151
|
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
1473
|
-
|
2152
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
|
2153
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
1474
2154
|
}
|
1475
2155
|
|
1476
2156
|
def struct_fields; FIELDS; end
|
@@ -1478,16 +2158,440 @@ module ThriftHiveMetastore
|
|
1478
2158
|
def validate
|
1479
2159
|
end
|
1480
2160
|
|
2161
|
+
::Thrift::Struct.generate_accessors self
|
1481
2162
|
end
|
1482
2163
|
|
1483
|
-
class
|
1484
|
-
include ::Thrift::Struct
|
2164
|
+
class Get_partitions_ps_result
|
2165
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2166
|
+
SUCCESS = 0
|
1485
2167
|
O1 = 1
|
1486
|
-
O2 = 2
|
1487
2168
|
|
1488
|
-
::Thrift::Struct.field_accessor self, :o1, :o2
|
1489
2169
|
FIELDS = {
|
1490
|
-
|
2170
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Partition}},
|
2171
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
2172
|
+
}
|
2173
|
+
|
2174
|
+
def struct_fields; FIELDS; end
|
2175
|
+
|
2176
|
+
def validate
|
2177
|
+
end
|
2178
|
+
|
2179
|
+
::Thrift::Struct.generate_accessors self
|
2180
|
+
end
|
2181
|
+
|
2182
|
+
class Get_partition_names_ps_args
|
2183
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2184
|
+
DB_NAME = 1
|
2185
|
+
TBL_NAME = 2
|
2186
|
+
PART_VALS = 3
|
2187
|
+
MAX_PARTS = 4
|
2188
|
+
|
2189
|
+
FIELDS = {
|
2190
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2191
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2192
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
|
2193
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
2194
|
+
}
|
2195
|
+
|
2196
|
+
def struct_fields; FIELDS; end
|
2197
|
+
|
2198
|
+
def validate
|
2199
|
+
end
|
2200
|
+
|
2201
|
+
::Thrift::Struct.generate_accessors self
|
2202
|
+
end
|
2203
|
+
|
2204
|
+
class Get_partition_names_ps_result
|
2205
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2206
|
+
SUCCESS = 0
|
2207
|
+
O1 = 1
|
2208
|
+
|
2209
|
+
FIELDS = {
|
2210
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2211
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
2212
|
+
}
|
2213
|
+
|
2214
|
+
def struct_fields; FIELDS; end
|
2215
|
+
|
2216
|
+
def validate
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
::Thrift::Struct.generate_accessors self
|
2220
|
+
end
|
2221
|
+
|
2222
|
+
class Get_partitions_by_filter_args
|
2223
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2224
|
+
DB_NAME = 1
|
2225
|
+
TBL_NAME = 2
|
2226
|
+
FILTER = 3
|
2227
|
+
MAX_PARTS = 4
|
2228
|
+
|
2229
|
+
FIELDS = {
|
2230
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2231
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2232
|
+
FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter'},
|
2233
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
2234
|
+
}
|
2235
|
+
|
2236
|
+
def struct_fields; FIELDS; end
|
2237
|
+
|
2238
|
+
def validate
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
::Thrift::Struct.generate_accessors self
|
2242
|
+
end
|
2243
|
+
|
2244
|
+
class Get_partitions_by_filter_result
|
2245
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2246
|
+
SUCCESS = 0
|
2247
|
+
O1 = 1
|
2248
|
+
O2 = 2
|
2249
|
+
|
2250
|
+
FIELDS = {
|
2251
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Partition}},
|
2252
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
2253
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
|
2254
|
+
}
|
2255
|
+
|
2256
|
+
def struct_fields; FIELDS; end
|
2257
|
+
|
2258
|
+
def validate
|
2259
|
+
end
|
2260
|
+
|
2261
|
+
::Thrift::Struct.generate_accessors self
|
2262
|
+
end
|
2263
|
+
|
2264
|
+
class Alter_partition_args
|
2265
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2266
|
+
DB_NAME = 1
|
2267
|
+
TBL_NAME = 2
|
2268
|
+
NEW_PART = 3
|
2269
|
+
|
2270
|
+
FIELDS = {
|
2271
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2272
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2273
|
+
NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => Partition}
|
2274
|
+
}
|
2275
|
+
|
2276
|
+
def struct_fields; FIELDS; end
|
2277
|
+
|
2278
|
+
def validate
|
2279
|
+
end
|
2280
|
+
|
2281
|
+
::Thrift::Struct.generate_accessors self
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
class Alter_partition_result
|
2285
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2286
|
+
O1 = 1
|
2287
|
+
O2 = 2
|
2288
|
+
|
2289
|
+
FIELDS = {
|
2290
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidOperationException},
|
2291
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
2292
|
+
}
|
2293
|
+
|
2294
|
+
def struct_fields; FIELDS; end
|
2295
|
+
|
2296
|
+
def validate
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
::Thrift::Struct.generate_accessors self
|
2300
|
+
end
|
2301
|
+
|
2302
|
+
class Get_config_value_args
|
2303
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2304
|
+
NAME = 1
|
2305
|
+
DEFAULTVALUE = 2
|
2306
|
+
|
2307
|
+
FIELDS = {
|
2308
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
2309
|
+
DEFAULTVALUE => {:type => ::Thrift::Types::STRING, :name => 'defaultValue'}
|
2310
|
+
}
|
2311
|
+
|
2312
|
+
def struct_fields; FIELDS; end
|
2313
|
+
|
2314
|
+
def validate
|
2315
|
+
end
|
2316
|
+
|
2317
|
+
::Thrift::Struct.generate_accessors self
|
2318
|
+
end
|
2319
|
+
|
2320
|
+
class Get_config_value_result
|
2321
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2322
|
+
SUCCESS = 0
|
2323
|
+
O1 = 1
|
2324
|
+
|
2325
|
+
FIELDS = {
|
2326
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2327
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ConfigValSecurityException}
|
2328
|
+
}
|
2329
|
+
|
2330
|
+
def struct_fields; FIELDS; end
|
2331
|
+
|
2332
|
+
def validate
|
2333
|
+
end
|
2334
|
+
|
2335
|
+
::Thrift::Struct.generate_accessors self
|
2336
|
+
end
|
2337
|
+
|
2338
|
+
class Partition_name_to_vals_args
|
2339
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2340
|
+
PART_NAME = 1
|
2341
|
+
|
2342
|
+
FIELDS = {
|
2343
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
2344
|
+
}
|
2345
|
+
|
2346
|
+
def struct_fields; FIELDS; end
|
2347
|
+
|
2348
|
+
def validate
|
2349
|
+
end
|
2350
|
+
|
2351
|
+
::Thrift::Struct.generate_accessors self
|
2352
|
+
end
|
2353
|
+
|
2354
|
+
class Partition_name_to_vals_result
|
2355
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2356
|
+
SUCCESS = 0
|
2357
|
+
O1 = 1
|
2358
|
+
|
2359
|
+
FIELDS = {
|
2360
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2361
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
2362
|
+
}
|
2363
|
+
|
2364
|
+
def struct_fields; FIELDS; end
|
2365
|
+
|
2366
|
+
def validate
|
2367
|
+
end
|
2368
|
+
|
2369
|
+
::Thrift::Struct.generate_accessors self
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
class Partition_name_to_spec_args
|
2373
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2374
|
+
PART_NAME = 1
|
2375
|
+
|
2376
|
+
FIELDS = {
|
2377
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
2378
|
+
}
|
2379
|
+
|
2380
|
+
def struct_fields; FIELDS; end
|
2381
|
+
|
2382
|
+
def validate
|
2383
|
+
end
|
2384
|
+
|
2385
|
+
::Thrift::Struct.generate_accessors self
|
2386
|
+
end
|
2387
|
+
|
2388
|
+
class Partition_name_to_spec_result
|
2389
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2390
|
+
SUCCESS = 0
|
2391
|
+
O1 = 1
|
2392
|
+
|
2393
|
+
FIELDS = {
|
2394
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
2395
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
|
2396
|
+
}
|
2397
|
+
|
2398
|
+
def struct_fields; FIELDS; end
|
2399
|
+
|
2400
|
+
def validate
|
2401
|
+
end
|
2402
|
+
|
2403
|
+
::Thrift::Struct.generate_accessors self
|
2404
|
+
end
|
2405
|
+
|
2406
|
+
class Add_index_args
|
2407
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2408
|
+
NEW_INDEX = 1
|
2409
|
+
INDEX_TABLE = 2
|
2410
|
+
|
2411
|
+
FIELDS = {
|
2412
|
+
NEW_INDEX => {:type => ::Thrift::Types::STRUCT, :name => 'new_index', :class => Index},
|
2413
|
+
INDEX_TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'index_table', :class => Table}
|
2414
|
+
}
|
2415
|
+
|
2416
|
+
def struct_fields; FIELDS; end
|
2417
|
+
|
2418
|
+
def validate
|
2419
|
+
end
|
2420
|
+
|
2421
|
+
::Thrift::Struct.generate_accessors self
|
2422
|
+
end
|
2423
|
+
|
2424
|
+
class Add_index_result
|
2425
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2426
|
+
SUCCESS = 0
|
2427
|
+
O1 = 1
|
2428
|
+
O2 = 2
|
2429
|
+
O3 = 3
|
2430
|
+
|
2431
|
+
FIELDS = {
|
2432
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Index},
|
2433
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
|
2434
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => AlreadyExistsException},
|
2435
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
|
2436
|
+
}
|
2437
|
+
|
2438
|
+
def struct_fields; FIELDS; end
|
2439
|
+
|
2440
|
+
def validate
|
2441
|
+
end
|
2442
|
+
|
2443
|
+
::Thrift::Struct.generate_accessors self
|
2444
|
+
end
|
2445
|
+
|
2446
|
+
class Drop_index_by_name_args
|
2447
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2448
|
+
DB_NAME = 1
|
2449
|
+
TBL_NAME = 2
|
2450
|
+
INDEX_NAME = 3
|
2451
|
+
DELETEDATA = 4
|
2452
|
+
|
2453
|
+
FIELDS = {
|
2454
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2455
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2456
|
+
INDEX_NAME => {:type => ::Thrift::Types::STRING, :name => 'index_name'},
|
2457
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
2458
|
+
}
|
2459
|
+
|
2460
|
+
def struct_fields; FIELDS; end
|
2461
|
+
|
2462
|
+
def validate
|
2463
|
+
end
|
2464
|
+
|
2465
|
+
::Thrift::Struct.generate_accessors self
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
class Drop_index_by_name_result
|
2469
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2470
|
+
SUCCESS = 0
|
2471
|
+
O1 = 1
|
2472
|
+
O2 = 2
|
2473
|
+
|
2474
|
+
FIELDS = {
|
2475
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
2476
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
2477
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
2478
|
+
}
|
2479
|
+
|
2480
|
+
def struct_fields; FIELDS; end
|
2481
|
+
|
2482
|
+
def validate
|
2483
|
+
end
|
2484
|
+
|
2485
|
+
::Thrift::Struct.generate_accessors self
|
2486
|
+
end
|
2487
|
+
|
2488
|
+
class Get_index_by_name_args
|
2489
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2490
|
+
DB_NAME = 1
|
2491
|
+
TBL_NAME = 2
|
2492
|
+
INDEX_NAME = 3
|
2493
|
+
|
2494
|
+
FIELDS = {
|
2495
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2496
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2497
|
+
INDEX_NAME => {:type => ::Thrift::Types::STRING, :name => 'index_name'}
|
2498
|
+
}
|
2499
|
+
|
2500
|
+
def struct_fields; FIELDS; end
|
2501
|
+
|
2502
|
+
def validate
|
2503
|
+
end
|
2504
|
+
|
2505
|
+
::Thrift::Struct.generate_accessors self
|
2506
|
+
end
|
2507
|
+
|
2508
|
+
class Get_index_by_name_result
|
2509
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2510
|
+
SUCCESS = 0
|
2511
|
+
O1 = 1
|
2512
|
+
O2 = 2
|
2513
|
+
|
2514
|
+
FIELDS = {
|
2515
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Index},
|
2516
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
|
2517
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
|
2518
|
+
}
|
2519
|
+
|
2520
|
+
def struct_fields; FIELDS; end
|
2521
|
+
|
2522
|
+
def validate
|
2523
|
+
end
|
2524
|
+
|
2525
|
+
::Thrift::Struct.generate_accessors self
|
2526
|
+
end
|
2527
|
+
|
2528
|
+
class Get_indexes_args
|
2529
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2530
|
+
DB_NAME = 1
|
2531
|
+
TBL_NAME = 2
|
2532
|
+
MAX_INDEXES = 3
|
2533
|
+
|
2534
|
+
FIELDS = {
|
2535
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2536
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2537
|
+
MAX_INDEXES => {:type => ::Thrift::Types::I16, :name => 'max_indexes', :default => -1}
|
2538
|
+
}
|
2539
|
+
|
2540
|
+
def struct_fields; FIELDS; end
|
2541
|
+
|
2542
|
+
def validate
|
2543
|
+
end
|
2544
|
+
|
2545
|
+
::Thrift::Struct.generate_accessors self
|
2546
|
+
end
|
2547
|
+
|
2548
|
+
class Get_indexes_result
|
2549
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2550
|
+
SUCCESS = 0
|
2551
|
+
O1 = 1
|
2552
|
+
O2 = 2
|
2553
|
+
|
2554
|
+
FIELDS = {
|
2555
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Index}},
|
2556
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
|
2557
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
2558
|
+
}
|
2559
|
+
|
2560
|
+
def struct_fields; FIELDS; end
|
2561
|
+
|
2562
|
+
def validate
|
2563
|
+
end
|
2564
|
+
|
2565
|
+
::Thrift::Struct.generate_accessors self
|
2566
|
+
end
|
2567
|
+
|
2568
|
+
class Get_index_names_args
|
2569
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2570
|
+
DB_NAME = 1
|
2571
|
+
TBL_NAME = 2
|
2572
|
+
MAX_INDEXES = 3
|
2573
|
+
|
2574
|
+
FIELDS = {
|
2575
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2576
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2577
|
+
MAX_INDEXES => {:type => ::Thrift::Types::I16, :name => 'max_indexes', :default => -1}
|
2578
|
+
}
|
2579
|
+
|
2580
|
+
def struct_fields; FIELDS; end
|
2581
|
+
|
2582
|
+
def validate
|
2583
|
+
end
|
2584
|
+
|
2585
|
+
::Thrift::Struct.generate_accessors self
|
2586
|
+
end
|
2587
|
+
|
2588
|
+
class Get_index_names_result
|
2589
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2590
|
+
SUCCESS = 0
|
2591
|
+
O2 = 1
|
2592
|
+
|
2593
|
+
FIELDS = {
|
2594
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1491
2595
|
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
|
1492
2596
|
}
|
1493
2597
|
|
@@ -1496,6 +2600,7 @@ module ThriftHiveMetastore
|
|
1496
2600
|
def validate
|
1497
2601
|
end
|
1498
2602
|
|
2603
|
+
::Thrift::Struct.generate_accessors self
|
1499
2604
|
end
|
1500
2605
|
|
1501
2606
|
end
|