diff --git common/src/java/org/apache/hadoop/hive/conf/HiveConf.java common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
index 211f474..a373bb1 100644
--- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
+++ common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
@@ -548,6 +548,9 @@ public class HiveConf extends Configuration {
HIVE_STATS_RELIABLE("hive.stats.reliable", false),
// Collect table access keys information for operators that can benefit from bucketing
HIVE_STATS_COLLECT_TABLEKEYS("hive.stats.collect.tablekeys", false),
+ // standard error allowed for ndv estimates. A lower value indicates higher accuracy and a
+ // higher compute cost.
+ HIVE_STATS_NDV_ERROR("hive.stats.ndv.error", (float)20.0),
// Concurrency
HIVE_SUPPORT_CONCURRENCY("hive.support.concurrency", false),
diff --git conf/hive-default.xml.template conf/hive-default.xml.template
index 93a86ec..abfff34 100644
--- conf/hive-default.xml.template
+++ conf/hive-default.xml.template
@@ -1041,6 +1041,13 @@
+ hive.stats.ndv.error
+ 20.0
+ Standard error expressed in percentage. Provides a tradeoff between accuracy and compute cost.A lower value for error indicates higher accuracy and a higher compute cost.
+
+
+
+
hive.support.concurrency
false
Whether hive supports concurrency or not. A zookeeper instance must be up and running for the default hive lock manager to support read-write locks.
diff --git data/files/UserVisits.dat data/files/UserVisits.dat
new file mode 100644
index 0000000..f56c5a1
--- /dev/null
+++ data/files/UserVisits.dat
@@ -0,0 +1,55 @@
+170.131.22.2|13rdgckzlcblruc.html|1984-8-7|336.869186722|NuSearch Spider|HUN|HUN-NL|remnants|3
+162.114.4.2|6xpirzjeytxdjsmwtmyeugkesratmpvamliekrijlgmvyyrslqwgw.html|1978-1-9|331.791153595|Superdownloads Spiderma|AUT|AUT-ZR|MHD|8
+177.110.45.18|11zvmoamsyaameokoeylbkivgquksibqbalnpmailbiyfxitbhfdroyxesixbjndkyqzl.html|1986-9-25|411.968497603|Mozilla/4.0|FLK|FLK-GB|apj@as.arizona.edu.|7
+157.111.12.37|44mvdnls.html|2002-7-3|486.660926201|PHP/4.0.|FIN|FIN-CZ|diffuse|3
+161.100.45.22|14ceyigx.html|1978-10-26|399.80234522|NP/0.1|BEN|BEN-CA|region|8
+164.118.48.16|28axfinfqwdcwoorukpwqvqoxxeuivbniclnkytavwdslrj.html|1996-12-8|298.335411612|MSNBOT_Mobile MSMOBOT Mozilla/2.0|USA|USA-IO|medium|1
+153.104.13.11|19aysprojntmnwymfdkaznbqxprxxaissjqkzhzivsvipuvuxfuxsvnqlfnigvby.html|1976-10-6|146.309480768|WebSearch.COM.AU/3.0.1|MCO|MCO-YD|state|5
+150.112.45.27|12hcaewxiswjeezfnlulkenwubaqsitpuarufosogoxls.html|1995-6-19|173.469334335|WinkBot/0.06|PHL|PHL-NN|important|2
+152.108.39.16|36umg.html|1974-3-28|269.969215988|GSiteCrawler/v1.xx rev. xxx|MNG|MNG-HI|...)|6
+174.119.41.16|60yxoboskwpyfin.html|2002-7-17|436.113482675|Infoseek SideWinder/2.0B|NIC|NIC-JP|data|1
+165.116.21.12|70difiadhmrvragggmoaufnuwwbakbjntnwzvxcdjtybufiarwbmcphzmizwkikewh.html|1984-2-6|13.099044572|WWWeasel Robot v1.00|THA|THA-FO|bubbles|6
+155.128.42.14|21brkepinqiwvtmfmebjckkhwevhxaesogkykzgyqpuligrul.html|1986-7-29|347.800952938|Mozilla/4.0 compatible ZyBorg/1.0|IRN|IRN-YS|conduction|1
+156.131.31.12|14nbaaoablhxrlvbfgrwcxktvshtkoqzddbdepegbmesxztdglzjjkc.html|2002-7-30|85.7691140217|Java1.1.xx.|BRA|BRA-BL|circumstellar|9
+159.122.42.18|4xfydvopxveeduudfzodxkbczvdlzou.html|1989-9-20|332.572440865|Metaeuro Web Crawler/0.2|LUX|LUX-SD|kinematics|7
+151.104.39.45|65psclahgvasawczpyicyxkuqzwpbowghmzkxzsdvtwwpzvfydiwbsqrrmhtbezjqyuo.html|2002-1-13|190.528735328|JobSpider_BA/1.|UGA|UGA-PY|pulsars:|7
+159.132.24.22|18vhcbzhhblfbayejcybyibwqsgzlkmswizyjzgrbrw.html|1978-1-2|182.368755789|Piffany_Web_Scraper_v0.|ITA|ITA-NJ|nonthermal|1
+170.101.17.16|40prmxavsjoizdzkgsncesndxebatfwvrmmejnacxol.html|1989-9-1|41.4163486896|Mozilla/4.01 [en]|ZAF|ZAF-AK|Scuti|6
+171.124.38.2|29nripzogexadckoiaoafxvtkrxksdqgveydtxsabpbfsltbmibrfwlqojagmr.html|1979-6-12|192.085693167|IconSurf/2.0 favicon monitor|SVN|SVN-DY|systems|5
+178.128.29.41|24tmrndfialwvkwybuspjyexlkiamebwtvilimqqncnimkgofzepximj.html|2000-7-8|276.89796127|obidos-bot|SLB|SLB-RL|(...|4
+175.101.24.43|70dcfbcotdzhfhuhquyosbcviglrkrakddmifpxzswg.html|1978-3-16|131.775726872|Mozilla/4.0|BMU|BMU-BR|spiral|6
+155.102.37.30|99cyllzbnsowifxdxsdmiseiceeriaaoucmgnlhaewxmbvqynulwmpepujhckhqfjdmxpuyt.html|1975-5-4|311.052004479|WebSearch.COM.AU/3.0.1|NLD|NLD-GX|Herbig-Haro|6
+156.105.11.18|1nczmzpivhbgn.html|1992-9-19|36.9747263531|Search/1.0|GLP|GLP-DJ|observations|3
+164.115.38.23|79bvcojctkaugbcterbzfykwvesklokgilbkalntvoocqqvuixunvekqjcburlbzxckxnyrjm.html|1991-4-20|267.047961774|Journster.com RSS/Atom aggregator 0.5|HKG|HKG-PK|radio|2
+179.133.2.36|12azizhsdhdgdpidjgmdeyzmfhdwsbezbeyjegcioforvxvfehjigiulqyhizmhargkwmmeartsnrosvvbdbkynawvi.html|1999-12-9|481.463770712|LeechGet 200x|SCG|SCG-XF|instruments|8
+178.107.45.18|45mbziaowxegkhzcmbsyrextgqjbyezodmqduqrqnwxydwaqytopxmidcsfbwfparfemvwdjtaiwxjnvcclaotdrmjs.html|1983-4-13|51.6686671965|IlTrovatore/1.2|HND|HND-AN|dynamics|2
+162.117.17.14|17tkabzxynnqswezhqmkvrlfycpmxqowlhgligihuwxmscmasylopwuozjawaotlwaxfggmack.html|2001-12-24|161.048060104|Mozilla/4.5 [en]C-CCK-MCD {TLC;RETAIL}|RWA|RWA-QE|rays|9
+178.119.40.7|48amqtmqxsjgrmjkszztfpegqzapidysnze.html|1987-4-3|492.988714137|Mozilla/4.0|AUT|AUT-ZR|cosmology:|8
+160.119.18.18|15yufqaoxpuqwb.html|1979-7-22|394.694548614|scooter-venus-3.0.vn|MCO|MCO-YD|outflows|1
+162.112.21.25|21boum.html|1991-2-6|165.368136543|LinkProver 2.|TCA|TCA-IS|spots|8
+176.112.31.17|20gblxgjcvpu.html|1991-8-5|78.2740990152|Mozilla/4.0|BMU|BMU-BR|masses|2
+166.130.12.13|9izokfebomgsiifyzrsepbbemutvj.html|2003-12-5|188.600736756|WWW-Mechanize/1.1|TGO|TGO-WB|bursts|5
+171.100.18.39|97sxfsgahjujwzlszmxkahyslcobrrlx.html|1985-11-21|143.277058506|Overture-WebCrawler/3.8/Fresh|SAU|SAU-KL|interferometric|5
+152.122.43.35|85zdszgzonsxkqbrkthtceiuzjsedwvghvkzvqzj.html|1989-12-1|315.628996565|moget/x.x|UMI|UMI-VU|Galaxy:|2
+157.133.36.37|15xnilzhtqjsxhhbzazrflznupllyhvdbsqjeqqyharfiyhhyhzdszrnpcyoktslljvqam.html|1990-3-20|426.498017786|PrivacyFinder/1.|UZB|UZB-ZJ|nebulae|7
+161.134.11.11|96kvrofepctfbesrphjiznjktygntkkubupsjvxyxrdzvwrkeasdobohauvueg.html|1984-6-6|280.039128409|Waypath development crawler - info at waypath dot co|IDN|IDN-BH|supergiants|6
+163.123.23.13|19rkrtwumqwmnnzisxyeesqacwolpypyxhipaejnvfzitzrlwqqbigblcqxrpnqmuybudkiyqhhjgzvdpleysg.html|1977-10-11|86.3390049695|Opera/5.0|LSO|LSO-PW|testing|7
+166.126.40.21|52ejufqiidwioozorbnsjxezfwaucndbihldnblvehdtwchoeuhoslnyioslbwmkdynrzymegpy.html|1990-10-20|125.582281932|Mozilla/4.0|BTN|BTN-HP|catalogs|9
+158.133.10.19|87nzdhsnzhkylakazmkvctgaaxtrafpxscxvjqijxthitrj.html|1982-10-5|481.583542862|larbin|GAB|GAB-CS|angular|8
+173.104.45.8|49sdptdphxjlbiwrbbrsebwqquadx.html|1981-5-2|41.3182727245|LECodeChecker/3.0 libgetdoc/1.|AUS|AUS-AV|bands|6
+160.101.31.43|6lrepnctlanokfhla.html|1973-9-7|133.29867101|sogou develop spide|SWE|SWE-TM|time|5
+150.127.33.8|22oeawpxhqahkvtaecwp.html|1999-3-16|398.882494477|W3C-WebCon/5.x.x libwww/5.x.|ISR|ISR-DY|history|1
+154.114.47.36|2mzzsgievabpkaoqegadbbjxwkutdisnvrmox.html|1981-7-24|332.760102125|mammoth/1.0|AUT|AUT-ZR|FUNCTION|3
+155.108.15.24|22beewtbnpw.html|1996-6-7|393.470347637|Scrubby/3.0|ABW|ABW-NB|horizontal-branch|4
+177.120.40.39|48itvyjulckeddslsuayoguojzhvqvmfgvyctiwflhj.html|1977-8-12|239.601807636|webmeasurement-bot, http://rvs.informatik.uni-leipzig.d|WSM|WSM-UF|are|3
+179.123.41.31|46eppnympstjuhivvpritvotqmivgsfmdkbtxafns.html|2001-11-26|258.55616439|Mozilla/2.0|SYR|SYR-XP|photometric|1
+175.100.9.4|32fjrnrlabonc.html|1988-10-22|344.394849153|Snapbot/1.|GUF|GUF-KP|acceleration|2
+155.126.7.17|72wufwnsdsqncftnvdcunnknzqnaiyflmcgsytkbmbpogicblew.html|1981-12-5|398.334494319|UKWizz/Nutch-0.8.1|NIC|NIC-JP|Kuiper|4
+150.118.20.31|1mbyargbxtnjtivflxzzredcfbtehxbxjcwkucmrwaaqiwvutuulzxnezhi.html|1982-8-27|168.936669894|Mozilla/4.0|IRL|IRL-NN|cataclysmic|5
+177.116.39.36|84maivbmcqggefkjtsde.html|1982-6-11|88.121669797|Mozilla/4.0|ARE|ARE-MX|instruments|1
+168.119.19.26|73vhjursdvxateuvrxsspwwfdbsoqfegeannuegyadzuitparisgfomiqfxhkcnocacxfivfmuzuopvfynmdcyl.html|1991-11-17|397.829289621|webbandit/4.xx.|NIC|NIC-JP|dust|2
+154.100.36.32|57rylepuglpfqvjwkxgrtftvqkjzjwsznjyzontuzizqdimofsfzxzuojeot.html|1999-1-5|334.714055649|RRC|GTM|GTM-VH|blue|7
+153.112.2.11|6pkwxtlgkkxoqtxpgrullqxjauquvmlkcwhzpsgzdeotymieddqpu.html|1975-8-6|348.218411093|Wotbox/alpha0.6|MNP|MNP-UD|supernovae:|6
+150.107.15.22|53gohsgrvrjgfptttlpfipgsnijsrhxsyeggwnysfhykxrdqdsvlicdwkmpcumut.html|1978-8-2|355.771603423|Mozilla/3.0|DEU|DEU-PU|stars|4
+150.126.27.44|0rgxbnwiqebsmszpkvfpxvhkleebngzxxgvzt.html|1989-5-18|467.800755054|Mozilla/3.01|ZWE|ZWE-TS|system|3
+151.101.32.3|34btbqii.html|1998-8-1|131.055972797|Orca Browser|THA|THA-FO|late-type|5
diff --git data/files/binary.txt data/files/binary.txt
new file mode 100644
index 0000000..c6fbdee
--- /dev/null
+++ data/files/binary.txt
@@ -0,0 +1,10 @@
+the quick brown fox jumped over the lazy little dog
+today is nice outside
+the quick brown fox jumped over the lazy little dog
+
+wikipedia is a great source of information
+the quick brown fox jumped over the lazy little dog
+
+estimating the number of distinct values is a hard problem
+
+the quick brown fox jumped over the lazy little dog
diff --git data/files/bool.txt data/files/bool.txt
new file mode 100644
index 0000000..065359b
--- /dev/null
+++ data/files/bool.txt
@@ -0,0 +1,33 @@
+true
+false
+true
+true
+true
+false
+false
+false
+false
+true
+true
+true
+true
+false
+
+false
+true
+true
+false
+false
+false
+false
+false
+false
+false
+false
+true
+false
+false
+false
+true
+true
+false
diff --git data/files/double.txt data/files/double.txt
new file mode 100644
index 0000000..66c030b
--- /dev/null
+++ data/files/double.txt
@@ -0,0 +1,16 @@
+55.33
+44.2
+435.33
+324.33
+324.33
+44.2
+55.3
+55.3
+0.0
+
+66.4
+23.22
+-87.2
+
+33.44
+55.3
diff --git data/files/employee.dat data/files/employee.dat
new file mode 100644
index 0000000..c9d0197
--- /dev/null
+++ data/files/employee.dat
@@ -0,0 +1,13 @@
+16|john
+17|robert
+18|andrew
+19|katty
+21|tom
+22|tim
+23|james
+24|paul
+27|edward
+29|alan
+31|kerry
+34|terri
+
diff --git data/files/employee2.dat data/files/employee2.dat
new file mode 100644
index 0000000..97fd05a
--- /dev/null
+++ data/files/employee2.dat
@@ -0,0 +1,7 @@
+16|john
+17|robert
+18|andrew
+19|katty
+27|edward
+29|alan
+31|kerry
\ No newline at end of file
diff --git data/files/int.txt data/files/int.txt
new file mode 100644
index 0000000..9553ed2
--- /dev/null
+++ data/files/int.txt
@@ -0,0 +1,12 @@
+4
+252
+233
+
+343
+43
+45
+344
+22
+54
+8
+13
diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift
index d4fad72..7230107 100755
--- metastore/if/hive_metastore.thrift
+++ metastore/if/hive_metastore.thrift
@@ -194,6 +194,67 @@ struct Index {
10: bool deferredRebuild
}
+// column statistics
+struct BooleanColumnStatsData {
+1: required i64 numTrues,
+2: required i64 numFalses,
+3: required i64 numNulls
+}
+
+struct DoubleColumnStatsData {
+1: required double lowValue,
+2: required double highValue,
+3: required i64 numNulls,
+4: required i64 numDVs
+}
+
+struct LongColumnStatsData {
+1: required i64 lowValue,
+2: required i64 highValue,
+3: required i64 numNulls,
+4: required i64 numDVs
+}
+
+struct StringColumnStatsData {
+1: required i64 maxColLen,
+2: required double avgColLen,
+3: required i64 numNulls,
+4: required i64 numDVs
+}
+
+struct BinaryColumnStatsData {
+1: required i64 maxColLen,
+2: required double avgColLen,
+3: required i64 numNulls
+}
+
+union ColumnStatisticsData {
+1: BooleanColumnStatsData booleanStats,
+2: LongColumnStatsData longStats,
+3: DoubleColumnStatsData doubleStats,
+4: StringColumnStatsData stringStats,
+5: BinaryColumnStatsData binaryStats
+}
+
+struct ColumnStatisticsObj {
+1: required string colName,
+2: required string colType,
+3: required ColumnStatisticsData statsData
+}
+
+struct ColumnStatisticsDesc {
+1: required bool isTblLevel,
+2: required string dbName,
+3: required string tableName,
+4: optional string partName,
+5: optional i64 lastAnalyzed
+}
+
+struct ColumnStatistics {
+1: required ColumnStatisticsDesc statsDesc,
+2: required list statsObj;
+}
+
// schema of the table/query results etc.
struct Schema {
// column names, types, comments
@@ -253,6 +314,10 @@ exception ConfigValSecurityException {
1: string message
}
+exception InvalidInputException {
+ 1: string message
+}
+
/**
* This interface is live.
*/
@@ -472,6 +537,37 @@ service ThriftHiveMetastore extends fb303.FacebookService
list get_index_names(1:string db_name, 2:string tbl_name, 3:i16 max_indexes=-1)
throws(1:MetaException o2)
+ // column statistics interfaces
+
+ // update APIs persist the column statistics object(s) that are passed in. If statistics already
+ // exists for one or more columns, the existing statistics will be overwritten. The update APIs
+ // validate that the dbName, tableName, partName, colName[] passed in as part of the ColumnStatistics
+ // struct are valid, throws InvalidInputException/NoSuchObjectException if found to be invalid
+ bool update_table_column_statistics(1:ColumnStatistics stats_obj) throws (1:NoSuchObjectException o1,
+ 2:InvalidObjectException o2, 3:MetaException o3, 4:InvalidInputException o4)
+ bool update_partition_column_statistics(1:ColumnStatistics stats_obj) throws (1:NoSuchObjectException o1,
+ 2:InvalidObjectException o2, 3:MetaException o3, 4:InvalidInputException o4)
+
+ // get APIs return the column statistics corresponding to db_name, tbl_name, [part_name], col_name if
+ // such statistics exists. If the required statistics doesn't exist, get APIs throw NoSuchObjectException
+ // For instance, if get_table_column_statistics is called on a partitioned table for which only
+ // partition level column stats exist, get_table_column_statistics will throw NoSuchObjectException
+ ColumnStatistics get_table_column_statistics(1:string db_name, 2:string tbl_name, 3:string col_name) throws
+ (1:NoSuchObjectException o1, 2:MetaException o2, 3:InvalidInputException o3, 4:InvalidObjectException o4)
+ ColumnStatistics get_partition_column_statistics(1:string db_name, 2:string tbl_name, 3:string part_name,
+ 4:string col_name) throws (1:NoSuchObjectException o1, 2:MetaException o2,
+ 3:InvalidInputException o3, 4:InvalidObjectException o4)
+
+ // delete APIs attempt to delete column statistics, if found, associated with a given db_name, tbl_name, [part_name]
+ // and col_name. If the delete API doesn't find the statistics record in the metastore, throws NoSuchObjectException
+ // Delete API validates the input and if the input is invalid throws InvalidInputException/InvalidObjectException.
+ bool delete_partition_column_statistics(1:string db_name, 2:string tbl_name, 3:string part_name, 4:string col_name) throws
+ (1:NoSuchObjectException o1, 2:MetaException o2, 3:InvalidObjectException o3,
+ 4:InvalidInputException o4)
+ bool delete_table_column_statistics(1:string db_name, 2:string tbl_name, 3:string col_name) throws
+ (1:NoSuchObjectException o1, 2:MetaException o2, 3:InvalidObjectException o3,
+ 4:InvalidInputException o4)
+
//authorization privileges
bool create_role(1:Role role) throws(1:MetaException o1)
diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
index 5efad1b..b8e3ce9 100644
--- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
+++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
@@ -715,14 +715,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size195;
- ::apache::thrift::protocol::TType _etype198;
- iprot->readListBegin(_etype198, _size195);
- this->success.resize(_size195);
- uint32_t _i199;
- for (_i199 = 0; _i199 < _size195; ++_i199)
+ uint32_t _size201;
+ ::apache::thrift::protocol::TType _etype204;
+ iprot->readListBegin(_etype204, _size201);
+ this->success.resize(_size201);
+ uint32_t _i205;
+ for (_i205 = 0; _i205 < _size201; ++_i205)
{
- xfer += iprot->readString(this->success[_i199]);
+ xfer += iprot->readString(this->success[_i205]);
}
iprot->readListEnd();
}
@@ -761,10 +761,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter200;
- for (_iter200 = this->success.begin(); _iter200 != this->success.end(); ++_iter200)
+ std::vector ::const_iterator _iter206;
+ for (_iter206 = this->success.begin(); _iter206 != this->success.end(); ++_iter206)
{
- xfer += oprot->writeString((*_iter200));
+ xfer += oprot->writeString((*_iter206));
}
xfer += oprot->writeListEnd();
}
@@ -803,14 +803,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size201;
- ::apache::thrift::protocol::TType _etype204;
- iprot->readListBegin(_etype204, _size201);
- (*(this->success)).resize(_size201);
- uint32_t _i205;
- for (_i205 = 0; _i205 < _size201; ++_i205)
+ uint32_t _size207;
+ ::apache::thrift::protocol::TType _etype210;
+ iprot->readListBegin(_etype210, _size207);
+ (*(this->success)).resize(_size207);
+ uint32_t _i211;
+ for (_i211 = 0; _i211 < _size207; ++_i211)
{
- xfer += iprot->readString((*(this->success))[_i205]);
+ xfer += iprot->readString((*(this->success))[_i211]);
}
iprot->readListEnd();
}
@@ -911,14 +911,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size206;
- ::apache::thrift::protocol::TType _etype209;
- iprot->readListBegin(_etype209, _size206);
- this->success.resize(_size206);
- uint32_t _i210;
- for (_i210 = 0; _i210 < _size206; ++_i210)
+ uint32_t _size212;
+ ::apache::thrift::protocol::TType _etype215;
+ iprot->readListBegin(_etype215, _size212);
+ this->success.resize(_size212);
+ uint32_t _i216;
+ for (_i216 = 0; _i216 < _size212; ++_i216)
{
- xfer += iprot->readString(this->success[_i210]);
+ xfer += iprot->readString(this->success[_i216]);
}
iprot->readListEnd();
}
@@ -957,10 +957,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter211;
- for (_iter211 = this->success.begin(); _iter211 != this->success.end(); ++_iter211)
+ std::vector ::const_iterator _iter217;
+ for (_iter217 = this->success.begin(); _iter217 != this->success.end(); ++_iter217)
{
- xfer += oprot->writeString((*_iter211));
+ xfer += oprot->writeString((*_iter217));
}
xfer += oprot->writeListEnd();
}
@@ -999,14 +999,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size212;
- ::apache::thrift::protocol::TType _etype215;
- iprot->readListBegin(_etype215, _size212);
- (*(this->success)).resize(_size212);
- uint32_t _i216;
- for (_i216 = 0; _i216 < _size212; ++_i216)
+ uint32_t _size218;
+ ::apache::thrift::protocol::TType _etype221;
+ iprot->readListBegin(_etype221, _size218);
+ (*(this->success)).resize(_size218);
+ uint32_t _i222;
+ for (_i222 = 0; _i222 < _size218; ++_i222)
{
- xfer += iprot->readString((*(this->success))[_i216]);
+ xfer += iprot->readString((*(this->success))[_i222]);
}
iprot->readListEnd();
}
@@ -1927,17 +1927,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->success.clear();
- uint32_t _size217;
- ::apache::thrift::protocol::TType _ktype218;
- ::apache::thrift::protocol::TType _vtype219;
- iprot->readMapBegin(_ktype218, _vtype219, _size217);
- uint32_t _i221;
- for (_i221 = 0; _i221 < _size217; ++_i221)
+ uint32_t _size223;
+ ::apache::thrift::protocol::TType _ktype224;
+ ::apache::thrift::protocol::TType _vtype225;
+ iprot->readMapBegin(_ktype224, _vtype225, _size223);
+ uint32_t _i227;
+ for (_i227 = 0; _i227 < _size223; ++_i227)
{
- std::string _key222;
- xfer += iprot->readString(_key222);
- Type& _val223 = this->success[_key222];
- xfer += _val223.read(iprot);
+ std::string _key228;
+ xfer += iprot->readString(_key228);
+ Type& _val229 = this->success[_key228];
+ xfer += _val229.read(iprot);
}
iprot->readMapEnd();
}
@@ -1976,11 +1976,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::map ::const_iterator _iter224;
- for (_iter224 = this->success.begin(); _iter224 != this->success.end(); ++_iter224)
+ std::map ::const_iterator _iter230;
+ for (_iter230 = this->success.begin(); _iter230 != this->success.end(); ++_iter230)
{
- xfer += oprot->writeString(_iter224->first);
- xfer += _iter224->second.write(oprot);
+ xfer += oprot->writeString(_iter230->first);
+ xfer += _iter230->second.write(oprot);
}
xfer += oprot->writeMapEnd();
}
@@ -2019,17 +2019,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
(*(this->success)).clear();
- uint32_t _size225;
- ::apache::thrift::protocol::TType _ktype226;
- ::apache::thrift::protocol::TType _vtype227;
- iprot->readMapBegin(_ktype226, _vtype227, _size225);
- uint32_t _i229;
- for (_i229 = 0; _i229 < _size225; ++_i229)
+ uint32_t _size231;
+ ::apache::thrift::protocol::TType _ktype232;
+ ::apache::thrift::protocol::TType _vtype233;
+ iprot->readMapBegin(_ktype232, _vtype233, _size231);
+ uint32_t _i235;
+ for (_i235 = 0; _i235 < _size231; ++_i235)
{
- std::string _key230;
- xfer += iprot->readString(_key230);
- Type& _val231 = (*(this->success))[_key230];
- xfer += _val231.read(iprot);
+ std::string _key236;
+ xfer += iprot->readString(_key236);
+ Type& _val237 = (*(this->success))[_key236];
+ xfer += _val237.read(iprot);
}
iprot->readMapEnd();
}
@@ -2158,14 +2158,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size232;
- ::apache::thrift::protocol::TType _etype235;
- iprot->readListBegin(_etype235, _size232);
- this->success.resize(_size232);
- uint32_t _i236;
- for (_i236 = 0; _i236 < _size232; ++_i236)
+ uint32_t _size238;
+ ::apache::thrift::protocol::TType _etype241;
+ iprot->readListBegin(_etype241, _size238);
+ this->success.resize(_size238);
+ uint32_t _i242;
+ for (_i242 = 0; _i242 < _size238; ++_i242)
{
- xfer += this->success[_i236].read(iprot);
+ xfer += this->success[_i242].read(iprot);
}
iprot->readListEnd();
}
@@ -2220,10 +2220,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter237;
- for (_iter237 = this->success.begin(); _iter237 != this->success.end(); ++_iter237)
+ std::vector ::const_iterator _iter243;
+ for (_iter243 = this->success.begin(); _iter243 != this->success.end(); ++_iter243)
{
- xfer += (*_iter237).write(oprot);
+ xfer += (*_iter243).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -2270,14 +2270,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size238;
- ::apache::thrift::protocol::TType _etype241;
- iprot->readListBegin(_etype241, _size238);
- (*(this->success)).resize(_size238);
- uint32_t _i242;
- for (_i242 = 0; _i242 < _size238; ++_i242)
+ uint32_t _size244;
+ ::apache::thrift::protocol::TType _etype247;
+ iprot->readListBegin(_etype247, _size244);
+ (*(this->success)).resize(_size244);
+ uint32_t _i248;
+ for (_i248 = 0; _i248 < _size244; ++_i248)
{
- xfer += (*(this->success))[_i242].read(iprot);
+ xfer += (*(this->success))[_i248].read(iprot);
}
iprot->readListEnd();
}
@@ -2422,14 +2422,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size243;
- ::apache::thrift::protocol::TType _etype246;
- iprot->readListBegin(_etype246, _size243);
- this->success.resize(_size243);
- uint32_t _i247;
- for (_i247 = 0; _i247 < _size243; ++_i247)
+ uint32_t _size249;
+ ::apache::thrift::protocol::TType _etype252;
+ iprot->readListBegin(_etype252, _size249);
+ this->success.resize(_size249);
+ uint32_t _i253;
+ for (_i253 = 0; _i253 < _size249; ++_i253)
{
- xfer += this->success[_i247].read(iprot);
+ xfer += this->success[_i253].read(iprot);
}
iprot->readListEnd();
}
@@ -2484,10 +2484,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter248;
- for (_iter248 = this->success.begin(); _iter248 != this->success.end(); ++_iter248)
+ std::vector ::const_iterator _iter254;
+ for (_iter254 = this->success.begin(); _iter254 != this->success.end(); ++_iter254)
{
- xfer += (*_iter248).write(oprot);
+ xfer += (*_iter254).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -2534,14 +2534,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size249;
- ::apache::thrift::protocol::TType _etype252;
- iprot->readListBegin(_etype252, _size249);
- (*(this->success)).resize(_size249);
- uint32_t _i253;
- for (_i253 = 0; _i253 < _size249; ++_i253)
+ uint32_t _size255;
+ ::apache::thrift::protocol::TType _etype258;
+ iprot->readListBegin(_etype258, _size255);
+ (*(this->success)).resize(_size255);
+ uint32_t _i259;
+ for (_i259 = 0; _i259 < _size255; ++_i259)
{
- xfer += (*(this->success))[_i253].read(iprot);
+ xfer += (*(this->success))[_i259].read(iprot);
}
iprot->readListEnd();
}
@@ -3342,14 +3342,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size254;
- ::apache::thrift::protocol::TType _etype257;
- iprot->readListBegin(_etype257, _size254);
- this->success.resize(_size254);
- uint32_t _i258;
- for (_i258 = 0; _i258 < _size254; ++_i258)
+ uint32_t _size260;
+ ::apache::thrift::protocol::TType _etype263;
+ iprot->readListBegin(_etype263, _size260);
+ this->success.resize(_size260);
+ uint32_t _i264;
+ for (_i264 = 0; _i264 < _size260; ++_i264)
{
- xfer += iprot->readString(this->success[_i258]);
+ xfer += iprot->readString(this->success[_i264]);
}
iprot->readListEnd();
}
@@ -3388,10 +3388,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter259;
- for (_iter259 = this->success.begin(); _iter259 != this->success.end(); ++_iter259)
+ std::vector ::const_iterator _iter265;
+ for (_iter265 = this->success.begin(); _iter265 != this->success.end(); ++_iter265)
{
- xfer += oprot->writeString((*_iter259));
+ xfer += oprot->writeString((*_iter265));
}
xfer += oprot->writeListEnd();
}
@@ -3430,14 +3430,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size260;
- ::apache::thrift::protocol::TType _etype263;
- iprot->readListBegin(_etype263, _size260);
- (*(this->success)).resize(_size260);
- uint32_t _i264;
- for (_i264 = 0; _i264 < _size260; ++_i264)
+ uint32_t _size266;
+ ::apache::thrift::protocol::TType _etype269;
+ iprot->readListBegin(_etype269, _size266);
+ (*(this->success)).resize(_size266);
+ uint32_t _i270;
+ for (_i270 = 0; _i270 < _size266; ++_i270)
{
- xfer += iprot->readString((*(this->success))[_i264]);
+ xfer += iprot->readString((*(this->success))[_i270]);
}
iprot->readListEnd();
}
@@ -3552,14 +3552,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size265;
- ::apache::thrift::protocol::TType _etype268;
- iprot->readListBegin(_etype268, _size265);
- this->success.resize(_size265);
- uint32_t _i269;
- for (_i269 = 0; _i269 < _size265; ++_i269)
+ uint32_t _size271;
+ ::apache::thrift::protocol::TType _etype274;
+ iprot->readListBegin(_etype274, _size271);
+ this->success.resize(_size271);
+ uint32_t _i275;
+ for (_i275 = 0; _i275 < _size271; ++_i275)
{
- xfer += iprot->readString(this->success[_i269]);
+ xfer += iprot->readString(this->success[_i275]);
}
iprot->readListEnd();
}
@@ -3598,10 +3598,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter270;
- for (_iter270 = this->success.begin(); _iter270 != this->success.end(); ++_iter270)
+ std::vector ::const_iterator _iter276;
+ for (_iter276 = this->success.begin(); _iter276 != this->success.end(); ++_iter276)
{
- xfer += oprot->writeString((*_iter270));
+ xfer += oprot->writeString((*_iter276));
}
xfer += oprot->writeListEnd();
}
@@ -3640,14 +3640,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size271;
- ::apache::thrift::protocol::TType _etype274;
- iprot->readListBegin(_etype274, _size271);
- (*(this->success)).resize(_size271);
- uint32_t _i275;
- for (_i275 = 0; _i275 < _size271; ++_i275)
+ uint32_t _size277;
+ ::apache::thrift::protocol::TType _etype280;
+ iprot->readListBegin(_etype280, _size277);
+ (*(this->success)).resize(_size277);
+ uint32_t _i281;
+ for (_i281 = 0; _i281 < _size277; ++_i281)
{
- xfer += iprot->readString((*(this->success))[_i275]);
+ xfer += iprot->readString((*(this->success))[_i281]);
}
iprot->readListEnd();
}
@@ -3920,14 +3920,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->tbl_names.clear();
- uint32_t _size276;
- ::apache::thrift::protocol::TType _etype279;
- iprot->readListBegin(_etype279, _size276);
- this->tbl_names.resize(_size276);
- uint32_t _i280;
- for (_i280 = 0; _i280 < _size276; ++_i280)
+ uint32_t _size282;
+ ::apache::thrift::protocol::TType _etype285;
+ iprot->readListBegin(_etype285, _size282);
+ this->tbl_names.resize(_size282);
+ uint32_t _i286;
+ for (_i286 = 0; _i286 < _size282; ++_i286)
{
- xfer += iprot->readString(this->tbl_names[_i280]);
+ xfer += iprot->readString(this->tbl_names[_i286]);
}
iprot->readListEnd();
}
@@ -3957,10 +3957,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size()));
- std::vector ::const_iterator _iter281;
- for (_iter281 = this->tbl_names.begin(); _iter281 != this->tbl_names.end(); ++_iter281)
+ std::vector ::const_iterator _iter287;
+ for (_iter287 = this->tbl_names.begin(); _iter287 != this->tbl_names.end(); ++_iter287)
{
- xfer += oprot->writeString((*_iter281));
+ xfer += oprot->writeString((*_iter287));
}
xfer += oprot->writeListEnd();
}
@@ -3979,10 +3979,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size()));
- std::vector ::const_iterator _iter282;
- for (_iter282 = (*(this->tbl_names)).begin(); _iter282 != (*(this->tbl_names)).end(); ++_iter282)
+ std::vector ::const_iterator _iter288;
+ for (_iter288 = (*(this->tbl_names)).begin(); _iter288 != (*(this->tbl_names)).end(); ++_iter288)
{
- xfer += oprot->writeString((*_iter282));
+ xfer += oprot->writeString((*_iter288));
}
xfer += oprot->writeListEnd();
}
@@ -4016,14 +4016,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size283;
- ::apache::thrift::protocol::TType _etype286;
- iprot->readListBegin(_etype286, _size283);
- this->success.resize(_size283);
- uint32_t _i287;
- for (_i287 = 0; _i287 < _size283; ++_i287)
+ uint32_t _size289;
+ ::apache::thrift::protocol::TType _etype292;
+ iprot->readListBegin(_etype292, _size289);
+ this->success.resize(_size289);
+ uint32_t _i293;
+ for (_i293 = 0; _i293 < _size289; ++_i293)
{
- xfer += this->success[_i287].read(iprot);
+ xfer += this->success[_i293].read(iprot);
}
iprot->readListEnd();
}
@@ -4078,10 +4078,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter288;
- for (_iter288 = this->success.begin(); _iter288 != this->success.end(); ++_iter288)
+ std::vector ::const_iterator _iter294;
+ for (_iter294 = this->success.begin(); _iter294 != this->success.end(); ++_iter294)
{
- xfer += (*_iter288).write(oprot);
+ xfer += (*_iter294).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4128,14 +4128,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size289;
- ::apache::thrift::protocol::TType _etype292;
- iprot->readListBegin(_etype292, _size289);
- (*(this->success)).resize(_size289);
- uint32_t _i293;
- for (_i293 = 0; _i293 < _size289; ++_i293)
+ uint32_t _size295;
+ ::apache::thrift::protocol::TType _etype298;
+ iprot->readListBegin(_etype298, _size295);
+ (*(this->success)).resize(_size295);
+ uint32_t _i299;
+ for (_i299 = 0; _i299 < _size295; ++_i299)
{
- xfer += (*(this->success))[_i293].read(iprot);
+ xfer += (*(this->success))[_i299].read(iprot);
}
iprot->readListEnd();
}
@@ -4294,14 +4294,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size294;
- ::apache::thrift::protocol::TType _etype297;
- iprot->readListBegin(_etype297, _size294);
- this->success.resize(_size294);
- uint32_t _i298;
- for (_i298 = 0; _i298 < _size294; ++_i298)
+ uint32_t _size300;
+ ::apache::thrift::protocol::TType _etype303;
+ iprot->readListBegin(_etype303, _size300);
+ this->success.resize(_size300);
+ uint32_t _i304;
+ for (_i304 = 0; _i304 < _size300; ++_i304)
{
- xfer += iprot->readString(this->success[_i298]);
+ xfer += iprot->readString(this->success[_i304]);
}
iprot->readListEnd();
}
@@ -4356,10 +4356,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter299;
- for (_iter299 = this->success.begin(); _iter299 != this->success.end(); ++_iter299)
+ std::vector ::const_iterator _iter305;
+ for (_iter305 = this->success.begin(); _iter305 != this->success.end(); ++_iter305)
{
- xfer += oprot->writeString((*_iter299));
+ xfer += oprot->writeString((*_iter305));
}
xfer += oprot->writeListEnd();
}
@@ -4406,14 +4406,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size300;
- ::apache::thrift::protocol::TType _etype303;
- iprot->readListBegin(_etype303, _size300);
- (*(this->success)).resize(_size300);
- uint32_t _i304;
- for (_i304 = 0; _i304 < _size300; ++_i304)
+ uint32_t _size306;
+ ::apache::thrift::protocol::TType _etype309;
+ iprot->readListBegin(_etype309, _size306);
+ (*(this->success)).resize(_size306);
+ uint32_t _i310;
+ for (_i310 = 0; _i310 < _size306; ++_i310)
{
- xfer += iprot->readString((*(this->success))[_i304]);
+ xfer += iprot->readString((*(this->success))[_i310]);
}
iprot->readListEnd();
}
@@ -5358,14 +5358,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->new_parts.clear();
- uint32_t _size305;
- ::apache::thrift::protocol::TType _etype308;
- iprot->readListBegin(_etype308, _size305);
- this->new_parts.resize(_size305);
- uint32_t _i309;
- for (_i309 = 0; _i309 < _size305; ++_i309)
+ uint32_t _size311;
+ ::apache::thrift::protocol::TType _etype314;
+ iprot->readListBegin(_etype314, _size311);
+ this->new_parts.resize(_size311);
+ uint32_t _i315;
+ for (_i315 = 0; _i315 < _size311; ++_i315)
{
- xfer += this->new_parts[_i309].read(iprot);
+ xfer += this->new_parts[_i315].read(iprot);
}
iprot->readListEnd();
}
@@ -5392,10 +5392,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size()));
- std::vector ::const_iterator _iter310;
- for (_iter310 = this->new_parts.begin(); _iter310 != this->new_parts.end(); ++_iter310)
+ std::vector ::const_iterator _iter316;
+ for (_iter316 = this->new_parts.begin(); _iter316 != this->new_parts.end(); ++_iter316)
{
- xfer += (*_iter310).write(oprot);
+ xfer += (*_iter316).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5411,10 +5411,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size()));
- std::vector ::const_iterator _iter311;
- for (_iter311 = (*(this->new_parts)).begin(); _iter311 != (*(this->new_parts)).end(); ++_iter311)
+ std::vector ::const_iterator _iter317;
+ for (_iter317 = (*(this->new_parts)).begin(); _iter317 != (*(this->new_parts)).end(); ++_iter317)
{
- xfer += (*_iter311).write(oprot);
+ xfer += (*_iter317).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5620,14 +5620,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size312;
- ::apache::thrift::protocol::TType _etype315;
- iprot->readListBegin(_etype315, _size312);
- this->part_vals.resize(_size312);
- uint32_t _i316;
- for (_i316 = 0; _i316 < _size312; ++_i316)
+ uint32_t _size318;
+ ::apache::thrift::protocol::TType _etype321;
+ iprot->readListBegin(_etype321, _size318);
+ this->part_vals.resize(_size318);
+ uint32_t _i322;
+ for (_i322 = 0; _i322 < _size318; ++_i322)
{
- xfer += iprot->readString(this->part_vals[_i316]);
+ xfer += iprot->readString(this->part_vals[_i322]);
}
iprot->readListEnd();
}
@@ -5660,10 +5660,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter317;
- for (_iter317 = this->part_vals.begin(); _iter317 != this->part_vals.end(); ++_iter317)
+ std::vector ::const_iterator _iter323;
+ for (_iter323 = this->part_vals.begin(); _iter323 != this->part_vals.end(); ++_iter323)
{
- xfer += oprot->writeString((*_iter317));
+ xfer += oprot->writeString((*_iter323));
}
xfer += oprot->writeListEnd();
}
@@ -5685,10 +5685,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter318;
- for (_iter318 = (*(this->part_vals)).begin(); _iter318 != (*(this->part_vals)).end(); ++_iter318)
+ std::vector ::const_iterator _iter324;
+ for (_iter324 = (*(this->part_vals)).begin(); _iter324 != (*(this->part_vals)).end(); ++_iter324)
{
- xfer += oprot->writeString((*_iter318));
+ xfer += oprot->writeString((*_iter324));
}
xfer += oprot->writeListEnd();
}
@@ -6140,14 +6140,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size319;
- ::apache::thrift::protocol::TType _etype322;
- iprot->readListBegin(_etype322, _size319);
- this->part_vals.resize(_size319);
- uint32_t _i323;
- for (_i323 = 0; _i323 < _size319; ++_i323)
+ uint32_t _size325;
+ ::apache::thrift::protocol::TType _etype328;
+ iprot->readListBegin(_etype328, _size325);
+ this->part_vals.resize(_size325);
+ uint32_t _i329;
+ for (_i329 = 0; _i329 < _size325; ++_i329)
{
- xfer += iprot->readString(this->part_vals[_i323]);
+ xfer += iprot->readString(this->part_vals[_i329]);
}
iprot->readListEnd();
}
@@ -6188,10 +6188,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter324;
- for (_iter324 = this->part_vals.begin(); _iter324 != this->part_vals.end(); ++_iter324)
+ std::vector ::const_iterator _iter330;
+ for (_iter330 = this->part_vals.begin(); _iter330 != this->part_vals.end(); ++_iter330)
{
- xfer += oprot->writeString((*_iter324));
+ xfer += oprot->writeString((*_iter330));
}
xfer += oprot->writeListEnd();
}
@@ -6216,10 +6216,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter325;
- for (_iter325 = (*(this->part_vals)).begin(); _iter325 != (*(this->part_vals)).end(); ++_iter325)
+ std::vector ::const_iterator _iter331;
+ for (_iter331 = (*(this->part_vals)).begin(); _iter331 != (*(this->part_vals)).end(); ++_iter331)
{
- xfer += oprot->writeString((*_iter325));
+ xfer += oprot->writeString((*_iter331));
}
xfer += oprot->writeListEnd();
}
@@ -6648,14 +6648,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size326;
- ::apache::thrift::protocol::TType _etype329;
- iprot->readListBegin(_etype329, _size326);
- this->part_vals.resize(_size326);
- uint32_t _i330;
- for (_i330 = 0; _i330 < _size326; ++_i330)
+ uint32_t _size332;
+ ::apache::thrift::protocol::TType _etype335;
+ iprot->readListBegin(_etype335, _size332);
+ this->part_vals.resize(_size332);
+ uint32_t _i336;
+ for (_i336 = 0; _i336 < _size332; ++_i336)
{
- xfer += iprot->readString(this->part_vals[_i330]);
+ xfer += iprot->readString(this->part_vals[_i336]);
}
iprot->readListEnd();
}
@@ -6688,10 +6688,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter331;
- for (_iter331 = this->part_vals.begin(); _iter331 != this->part_vals.end(); ++_iter331)
+ std::vector ::const_iterator _iter337;
+ for (_iter337 = this->part_vals.begin(); _iter337 != this->part_vals.end(); ++_iter337)
{
- xfer += oprot->writeString((*_iter331));
+ xfer += oprot->writeString((*_iter337));
}
xfer += oprot->writeListEnd();
}
@@ -6713,10 +6713,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter332;
- for (_iter332 = (*(this->part_vals)).begin(); _iter332 != (*(this->part_vals)).end(); ++_iter332)
+ std::vector ::const_iterator _iter338;
+ for (_iter338 = (*(this->part_vals)).begin(); _iter338 != (*(this->part_vals)).end(); ++_iter338)
{
- xfer += oprot->writeString((*_iter332));
+ xfer += oprot->writeString((*_iter338));
}
xfer += oprot->writeListEnd();
}
@@ -6902,14 +6902,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size333;
- ::apache::thrift::protocol::TType _etype336;
- iprot->readListBegin(_etype336, _size333);
- this->part_vals.resize(_size333);
- uint32_t _i337;
- for (_i337 = 0; _i337 < _size333; ++_i337)
+ uint32_t _size339;
+ ::apache::thrift::protocol::TType _etype342;
+ iprot->readListBegin(_etype342, _size339);
+ this->part_vals.resize(_size339);
+ uint32_t _i343;
+ for (_i343 = 0; _i343 < _size339; ++_i343)
{
- xfer += iprot->readString(this->part_vals[_i337]);
+ xfer += iprot->readString(this->part_vals[_i343]);
}
iprot->readListEnd();
}
@@ -6930,14 +6930,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->group_names.clear();
- uint32_t _size338;
- ::apache::thrift::protocol::TType _etype341;
- iprot->readListBegin(_etype341, _size338);
- this->group_names.resize(_size338);
- uint32_t _i342;
- for (_i342 = 0; _i342 < _size338; ++_i342)
+ uint32_t _size344;
+ ::apache::thrift::protocol::TType _etype347;
+ iprot->readListBegin(_etype347, _size344);
+ this->group_names.resize(_size344);
+ uint32_t _i348;
+ for (_i348 = 0; _i348 < _size344; ++_i348)
{
- xfer += iprot->readString(this->group_names[_i342]);
+ xfer += iprot->readString(this->group_names[_i348]);
}
iprot->readListEnd();
}
@@ -6970,10 +6970,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter343;
- for (_iter343 = this->part_vals.begin(); _iter343 != this->part_vals.end(); ++_iter343)
+ std::vector ::const_iterator _iter349;
+ for (_iter349 = this->part_vals.begin(); _iter349 != this->part_vals.end(); ++_iter349)
{
- xfer += oprot->writeString((*_iter343));
+ xfer += oprot->writeString((*_iter349));
}
xfer += oprot->writeListEnd();
}
@@ -6984,10 +6984,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size()));
- std::vector ::const_iterator _iter344;
- for (_iter344 = this->group_names.begin(); _iter344 != this->group_names.end(); ++_iter344)
+ std::vector ::const_iterator _iter350;
+ for (_iter350 = this->group_names.begin(); _iter350 != this->group_names.end(); ++_iter350)
{
- xfer += oprot->writeString((*_iter344));
+ xfer += oprot->writeString((*_iter350));
}
xfer += oprot->writeListEnd();
}
@@ -7009,10 +7009,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter345;
- for (_iter345 = (*(this->part_vals)).begin(); _iter345 != (*(this->part_vals)).end(); ++_iter345)
+ std::vector ::const_iterator _iter351;
+ for (_iter351 = (*(this->part_vals)).begin(); _iter351 != (*(this->part_vals)).end(); ++_iter351)
{
- xfer += oprot->writeString((*_iter345));
+ xfer += oprot->writeString((*_iter351));
}
xfer += oprot->writeListEnd();
}
@@ -7023,10 +7023,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size()));
- std::vector ::const_iterator _iter346;
- for (_iter346 = (*(this->group_names)).begin(); _iter346 != (*(this->group_names)).end(); ++_iter346)
+ std::vector ::const_iterator _iter352;
+ for (_iter352 = (*(this->group_names)).begin(); _iter352 != (*(this->group_names)).end(); ++_iter352)
{
- xfer += oprot->writeString((*_iter346));
+ xfer += oprot->writeString((*_iter352));
}
xfer += oprot->writeListEnd();
}
@@ -7512,14 +7512,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size347;
- ::apache::thrift::protocol::TType _etype350;
- iprot->readListBegin(_etype350, _size347);
- this->success.resize(_size347);
- uint32_t _i351;
- for (_i351 = 0; _i351 < _size347; ++_i351)
+ uint32_t _size353;
+ ::apache::thrift::protocol::TType _etype356;
+ iprot->readListBegin(_etype356, _size353);
+ this->success.resize(_size353);
+ uint32_t _i357;
+ for (_i357 = 0; _i357 < _size353; ++_i357)
{
- xfer += this->success[_i351].read(iprot);
+ xfer += this->success[_i357].read(iprot);
}
iprot->readListEnd();
}
@@ -7566,10 +7566,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter352;
- for (_iter352 = this->success.begin(); _iter352 != this->success.end(); ++_iter352)
+ std::vector ::const_iterator _iter358;
+ for (_iter358 = this->success.begin(); _iter358 != this->success.end(); ++_iter358)
{
- xfer += (*_iter352).write(oprot);
+ xfer += (*_iter358).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -7612,14 +7612,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size353;
- ::apache::thrift::protocol::TType _etype356;
- iprot->readListBegin(_etype356, _size353);
- (*(this->success)).resize(_size353);
- uint32_t _i357;
- for (_i357 = 0; _i357 < _size353; ++_i357)
+ uint32_t _size359;
+ ::apache::thrift::protocol::TType _etype362;
+ iprot->readListBegin(_etype362, _size359);
+ (*(this->success)).resize(_size359);
+ uint32_t _i363;
+ for (_i363 = 0; _i363 < _size359; ++_i363)
{
- xfer += (*(this->success))[_i357].read(iprot);
+ xfer += (*(this->success))[_i363].read(iprot);
}
iprot->readListEnd();
}
@@ -7712,14 +7712,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->group_names.clear();
- uint32_t _size358;
- ::apache::thrift::protocol::TType _etype361;
- iprot->readListBegin(_etype361, _size358);
- this->group_names.resize(_size358);
- uint32_t _i362;
- for (_i362 = 0; _i362 < _size358; ++_i362)
+ uint32_t _size364;
+ ::apache::thrift::protocol::TType _etype367;
+ iprot->readListBegin(_etype367, _size364);
+ this->group_names.resize(_size364);
+ uint32_t _i368;
+ for (_i368 = 0; _i368 < _size364; ++_i368)
{
- xfer += iprot->readString(this->group_names[_i362]);
+ xfer += iprot->readString(this->group_names[_i368]);
}
iprot->readListEnd();
}
@@ -7758,10 +7758,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size()));
- std::vector ::const_iterator _iter363;
- for (_iter363 = this->group_names.begin(); _iter363 != this->group_names.end(); ++_iter363)
+ std::vector ::const_iterator _iter369;
+ for (_iter369 = this->group_names.begin(); _iter369 != this->group_names.end(); ++_iter369)
{
- xfer += oprot->writeString((*_iter363));
+ xfer += oprot->writeString((*_iter369));
}
xfer += oprot->writeListEnd();
}
@@ -7789,10 +7789,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size()));
- std::vector ::const_iterator _iter364;
- for (_iter364 = (*(this->group_names)).begin(); _iter364 != (*(this->group_names)).end(); ++_iter364)
+ std::vector ::const_iterator _iter370;
+ for (_iter370 = (*(this->group_names)).begin(); _iter370 != (*(this->group_names)).end(); ++_iter370)
{
- xfer += oprot->writeString((*_iter364));
+ xfer += oprot->writeString((*_iter370));
}
xfer += oprot->writeListEnd();
}
@@ -7826,14 +7826,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size365;
- ::apache::thrift::protocol::TType _etype368;
- iprot->readListBegin(_etype368, _size365);
- this->success.resize(_size365);
- uint32_t _i369;
- for (_i369 = 0; _i369 < _size365; ++_i369)
+ uint32_t _size371;
+ ::apache::thrift::protocol::TType _etype374;
+ iprot->readListBegin(_etype374, _size371);
+ this->success.resize(_size371);
+ uint32_t _i375;
+ for (_i375 = 0; _i375 < _size371; ++_i375)
{
- xfer += this->success[_i369].read(iprot);
+ xfer += this->success[_i375].read(iprot);
}
iprot->readListEnd();
}
@@ -7880,10 +7880,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter370;
- for (_iter370 = this->success.begin(); _iter370 != this->success.end(); ++_iter370)
+ std::vector ::const_iterator _iter376;
+ for (_iter376 = this->success.begin(); _iter376 != this->success.end(); ++_iter376)
{
- xfer += (*_iter370).write(oprot);
+ xfer += (*_iter376).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -7926,14 +7926,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size371;
- ::apache::thrift::protocol::TType _etype374;
- iprot->readListBegin(_etype374, _size371);
- (*(this->success)).resize(_size371);
- uint32_t _i375;
- for (_i375 = 0; _i375 < _size371; ++_i375)
+ uint32_t _size377;
+ ::apache::thrift::protocol::TType _etype380;
+ iprot->readListBegin(_etype380, _size377);
+ (*(this->success)).resize(_size377);
+ uint32_t _i381;
+ for (_i381 = 0; _i381 < _size377; ++_i381)
{
- xfer += (*(this->success))[_i375].read(iprot);
+ xfer += (*(this->success))[_i381].read(iprot);
}
iprot->readListEnd();
}
@@ -8084,14 +8084,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size376;
- ::apache::thrift::protocol::TType _etype379;
- iprot->readListBegin(_etype379, _size376);
- this->success.resize(_size376);
- uint32_t _i380;
- for (_i380 = 0; _i380 < _size376; ++_i380)
+ uint32_t _size382;
+ ::apache::thrift::protocol::TType _etype385;
+ iprot->readListBegin(_etype385, _size382);
+ this->success.resize(_size382);
+ uint32_t _i386;
+ for (_i386 = 0; _i386 < _size382; ++_i386)
{
- xfer += iprot->readString(this->success[_i380]);
+ xfer += iprot->readString(this->success[_i386]);
}
iprot->readListEnd();
}
@@ -8130,10 +8130,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift:
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter381;
- for (_iter381 = this->success.begin(); _iter381 != this->success.end(); ++_iter381)
+ std::vector ::const_iterator _iter387;
+ for (_iter387 = this->success.begin(); _iter387 != this->success.end(); ++_iter387)
{
- xfer += oprot->writeString((*_iter381));
+ xfer += oprot->writeString((*_iter387));
}
xfer += oprot->writeListEnd();
}
@@ -8172,14 +8172,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size382;
- ::apache::thrift::protocol::TType _etype385;
- iprot->readListBegin(_etype385, _size382);
- (*(this->success)).resize(_size382);
- uint32_t _i386;
- for (_i386 = 0; _i386 < _size382; ++_i386)
+ uint32_t _size388;
+ ::apache::thrift::protocol::TType _etype391;
+ iprot->readListBegin(_etype391, _size388);
+ (*(this->success)).resize(_size388);
+ uint32_t _i392;
+ for (_i392 = 0; _i392 < _size388; ++_i392)
{
- xfer += iprot->readString((*(this->success))[_i386]);
+ xfer += iprot->readString((*(this->success))[_i392]);
}
iprot->readListEnd();
}
@@ -8248,14 +8248,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size387;
- ::apache::thrift::protocol::TType _etype390;
- iprot->readListBegin(_etype390, _size387);
- this->part_vals.resize(_size387);
- uint32_t _i391;
- for (_i391 = 0; _i391 < _size387; ++_i391)
+ uint32_t _size393;
+ ::apache::thrift::protocol::TType _etype396;
+ iprot->readListBegin(_etype396, _size393);
+ this->part_vals.resize(_size393);
+ uint32_t _i397;
+ for (_i397 = 0; _i397 < _size393; ++_i397)
{
- xfer += iprot->readString(this->part_vals[_i391]);
+ xfer += iprot->readString(this->part_vals[_i397]);
}
iprot->readListEnd();
}
@@ -8296,10 +8296,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter392;
- for (_iter392 = this->part_vals.begin(); _iter392 != this->part_vals.end(); ++_iter392)
+ std::vector ::const_iterator _iter398;
+ for (_iter398 = this->part_vals.begin(); _iter398 != this->part_vals.end(); ++_iter398)
{
- xfer += oprot->writeString((*_iter392));
+ xfer += oprot->writeString((*_iter398));
}
xfer += oprot->writeListEnd();
}
@@ -8324,10 +8324,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter393;
- for (_iter393 = (*(this->part_vals)).begin(); _iter393 != (*(this->part_vals)).end(); ++_iter393)
+ std::vector ::const_iterator _iter399;
+ for (_iter399 = (*(this->part_vals)).begin(); _iter399 != (*(this->part_vals)).end(); ++_iter399)
{
- xfer += oprot->writeString((*_iter393));
+ xfer += oprot->writeString((*_iter399));
}
xfer += oprot->writeListEnd();
}
@@ -8364,14 +8364,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size394;
- ::apache::thrift::protocol::TType _etype397;
- iprot->readListBegin(_etype397, _size394);
- this->success.resize(_size394);
- uint32_t _i398;
- for (_i398 = 0; _i398 < _size394; ++_i398)
+ uint32_t _size400;
+ ::apache::thrift::protocol::TType _etype403;
+ iprot->readListBegin(_etype403, _size400);
+ this->success.resize(_size400);
+ uint32_t _i404;
+ for (_i404 = 0; _i404 < _size400; ++_i404)
{
- xfer += this->success[_i398].read(iprot);
+ xfer += this->success[_i404].read(iprot);
}
iprot->readListEnd();
}
@@ -8418,10 +8418,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter399;
- for (_iter399 = this->success.begin(); _iter399 != this->success.end(); ++_iter399)
+ std::vector ::const_iterator _iter405;
+ for (_iter405 = this->success.begin(); _iter405 != this->success.end(); ++_iter405)
{
- xfer += (*_iter399).write(oprot);
+ xfer += (*_iter405).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -8464,14 +8464,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size400;
- ::apache::thrift::protocol::TType _etype403;
- iprot->readListBegin(_etype403, _size400);
- (*(this->success)).resize(_size400);
- uint32_t _i404;
- for (_i404 = 0; _i404 < _size400; ++_i404)
+ uint32_t _size406;
+ ::apache::thrift::protocol::TType _etype409;
+ iprot->readListBegin(_etype409, _size406);
+ (*(this->success)).resize(_size406);
+ uint32_t _i410;
+ for (_i410 = 0; _i410 < _size406; ++_i410)
{
- xfer += (*(this->success))[_i404].read(iprot);
+ xfer += (*(this->success))[_i410].read(iprot);
}
iprot->readListEnd();
}
@@ -8548,14 +8548,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size405;
- ::apache::thrift::protocol::TType _etype408;
- iprot->readListBegin(_etype408, _size405);
- this->part_vals.resize(_size405);
- uint32_t _i409;
- for (_i409 = 0; _i409 < _size405; ++_i409)
+ uint32_t _size411;
+ ::apache::thrift::protocol::TType _etype414;
+ iprot->readListBegin(_etype414, _size411);
+ this->part_vals.resize(_size411);
+ uint32_t _i415;
+ for (_i415 = 0; _i415 < _size411; ++_i415)
{
- xfer += iprot->readString(this->part_vals[_i409]);
+ xfer += iprot->readString(this->part_vals[_i415]);
}
iprot->readListEnd();
}
@@ -8584,14 +8584,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->group_names.clear();
- uint32_t _size410;
- ::apache::thrift::protocol::TType _etype413;
- iprot->readListBegin(_etype413, _size410);
- this->group_names.resize(_size410);
- uint32_t _i414;
- for (_i414 = 0; _i414 < _size410; ++_i414)
+ uint32_t _size416;
+ ::apache::thrift::protocol::TType _etype419;
+ iprot->readListBegin(_etype419, _size416);
+ this->group_names.resize(_size416);
+ uint32_t _i420;
+ for (_i420 = 0; _i420 < _size416; ++_i420)
{
- xfer += iprot->readString(this->group_names[_i414]);
+ xfer += iprot->readString(this->group_names[_i420]);
}
iprot->readListEnd();
}
@@ -8624,10 +8624,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter415;
- for (_iter415 = this->part_vals.begin(); _iter415 != this->part_vals.end(); ++_iter415)
+ std::vector ::const_iterator _iter421;
+ for (_iter421 = this->part_vals.begin(); _iter421 != this->part_vals.end(); ++_iter421)
{
- xfer += oprot->writeString((*_iter415));
+ xfer += oprot->writeString((*_iter421));
}
xfer += oprot->writeListEnd();
}
@@ -8641,10 +8641,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size()));
- std::vector ::const_iterator _iter416;
- for (_iter416 = this->group_names.begin(); _iter416 != this->group_names.end(); ++_iter416)
+ std::vector ::const_iterator _iter422;
+ for (_iter422 = this->group_names.begin(); _iter422 != this->group_names.end(); ++_iter422)
{
- xfer += oprot->writeString((*_iter416));
+ xfer += oprot->writeString((*_iter422));
}
xfer += oprot->writeListEnd();
}
@@ -8666,10 +8666,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache::
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter417;
- for (_iter417 = (*(this->part_vals)).begin(); _iter417 != (*(this->part_vals)).end(); ++_iter417)
+ std::vector ::const_iterator _iter423;
+ for (_iter423 = (*(this->part_vals)).begin(); _iter423 != (*(this->part_vals)).end(); ++_iter423)
{
- xfer += oprot->writeString((*_iter417));
+ xfer += oprot->writeString((*_iter423));
}
xfer += oprot->writeListEnd();
}
@@ -8683,10 +8683,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache::
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size()));
- std::vector ::const_iterator _iter418;
- for (_iter418 = (*(this->group_names)).begin(); _iter418 != (*(this->group_names)).end(); ++_iter418)
+ std::vector ::const_iterator _iter424;
+ for (_iter424 = (*(this->group_names)).begin(); _iter424 != (*(this->group_names)).end(); ++_iter424)
{
- xfer += oprot->writeString((*_iter418));
+ xfer += oprot->writeString((*_iter424));
}
xfer += oprot->writeListEnd();
}
@@ -8720,14 +8720,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size419;
- ::apache::thrift::protocol::TType _etype422;
- iprot->readListBegin(_etype422, _size419);
- this->success.resize(_size419);
- uint32_t _i423;
- for (_i423 = 0; _i423 < _size419; ++_i423)
+ uint32_t _size425;
+ ::apache::thrift::protocol::TType _etype428;
+ iprot->readListBegin(_etype428, _size425);
+ this->success.resize(_size425);
+ uint32_t _i429;
+ for (_i429 = 0; _i429 < _size425; ++_i429)
{
- xfer += this->success[_i423].read(iprot);
+ xfer += this->success[_i429].read(iprot);
}
iprot->readListEnd();
}
@@ -8774,10 +8774,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache:
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter424;
- for (_iter424 = this->success.begin(); _iter424 != this->success.end(); ++_iter424)
+ std::vector ::const_iterator _iter430;
+ for (_iter430 = this->success.begin(); _iter430 != this->success.end(); ++_iter430)
{
- xfer += (*_iter424).write(oprot);
+ xfer += (*_iter430).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -8820,14 +8820,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size425;
- ::apache::thrift::protocol::TType _etype428;
- iprot->readListBegin(_etype428, _size425);
- (*(this->success)).resize(_size425);
- uint32_t _i429;
- for (_i429 = 0; _i429 < _size425; ++_i429)
+ uint32_t _size431;
+ ::apache::thrift::protocol::TType _etype434;
+ iprot->readListBegin(_etype434, _size431);
+ (*(this->success)).resize(_size431);
+ uint32_t _i435;
+ for (_i435 = 0; _i435 < _size431; ++_i435)
{
- xfer += (*(this->success))[_i429].read(iprot);
+ xfer += (*(this->success))[_i435].read(iprot);
}
iprot->readListEnd();
}
@@ -8904,14 +8904,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size430;
- ::apache::thrift::protocol::TType _etype433;
- iprot->readListBegin(_etype433, _size430);
- this->part_vals.resize(_size430);
- uint32_t _i434;
- for (_i434 = 0; _i434 < _size430; ++_i434)
+ uint32_t _size436;
+ ::apache::thrift::protocol::TType _etype439;
+ iprot->readListBegin(_etype439, _size436);
+ this->part_vals.resize(_size436);
+ uint32_t _i440;
+ for (_i440 = 0; _i440 < _size436; ++_i440)
{
- xfer += iprot->readString(this->part_vals[_i434]);
+ xfer += iprot->readString(this->part_vals[_i440]);
}
iprot->readListEnd();
}
@@ -8952,10 +8952,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter435;
- for (_iter435 = this->part_vals.begin(); _iter435 != this->part_vals.end(); ++_iter435)
+ std::vector ::const_iterator _iter441;
+ for (_iter441 = this->part_vals.begin(); _iter441 != this->part_vals.end(); ++_iter441)
{
- xfer += oprot->writeString((*_iter435));
+ xfer += oprot->writeString((*_iter441));
}
xfer += oprot->writeListEnd();
}
@@ -8980,10 +8980,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter436;
- for (_iter436 = (*(this->part_vals)).begin(); _iter436 != (*(this->part_vals)).end(); ++_iter436)
+ std::vector ::const_iterator _iter442;
+ for (_iter442 = (*(this->part_vals)).begin(); _iter442 != (*(this->part_vals)).end(); ++_iter442)
{
- xfer += oprot->writeString((*_iter436));
+ xfer += oprot->writeString((*_iter442));
}
xfer += oprot->writeListEnd();
}
@@ -9020,14 +9020,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size437;
- ::apache::thrift::protocol::TType _etype440;
- iprot->readListBegin(_etype440, _size437);
- this->success.resize(_size437);
- uint32_t _i441;
- for (_i441 = 0; _i441 < _size437; ++_i441)
+ uint32_t _size443;
+ ::apache::thrift::protocol::TType _etype446;
+ iprot->readListBegin(_etype446, _size443);
+ this->success.resize(_size443);
+ uint32_t _i447;
+ for (_i447 = 0; _i447 < _size443; ++_i447)
{
- xfer += iprot->readString(this->success[_i441]);
+ xfer += iprot->readString(this->success[_i447]);
}
iprot->readListEnd();
}
@@ -9074,10 +9074,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter442;
- for (_iter442 = this->success.begin(); _iter442 != this->success.end(); ++_iter442)
+ std::vector ::const_iterator _iter448;
+ for (_iter448 = this->success.begin(); _iter448 != this->success.end(); ++_iter448)
{
- xfer += oprot->writeString((*_iter442));
+ xfer += oprot->writeString((*_iter448));
}
xfer += oprot->writeListEnd();
}
@@ -9120,14 +9120,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size443;
- ::apache::thrift::protocol::TType _etype446;
- iprot->readListBegin(_etype446, _size443);
- (*(this->success)).resize(_size443);
- uint32_t _i447;
- for (_i447 = 0; _i447 < _size443; ++_i447)
+ uint32_t _size449;
+ ::apache::thrift::protocol::TType _etype452;
+ iprot->readListBegin(_etype452, _size449);
+ (*(this->success)).resize(_size449);
+ uint32_t _i453;
+ for (_i453 = 0; _i453 < _size449; ++_i453)
{
- xfer += iprot->readString((*(this->success))[_i447]);
+ xfer += iprot->readString((*(this->success))[_i453]);
}
iprot->readListEnd();
}
@@ -9292,14 +9292,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size448;
- ::apache::thrift::protocol::TType _etype451;
- iprot->readListBegin(_etype451, _size448);
- this->success.resize(_size448);
- uint32_t _i452;
- for (_i452 = 0; _i452 < _size448; ++_i452)
+ uint32_t _size454;
+ ::apache::thrift::protocol::TType _etype457;
+ iprot->readListBegin(_etype457, _size454);
+ this->success.resize(_size454);
+ uint32_t _i458;
+ for (_i458 = 0; _i458 < _size454; ++_i458)
{
- xfer += this->success[_i452].read(iprot);
+ xfer += this->success[_i458].read(iprot);
}
iprot->readListEnd();
}
@@ -9346,10 +9346,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter453;
- for (_iter453 = this->success.begin(); _iter453 != this->success.end(); ++_iter453)
+ std::vector ::const_iterator _iter459;
+ for (_iter459 = this->success.begin(); _iter459 != this->success.end(); ++_iter459)
{
- xfer += (*_iter453).write(oprot);
+ xfer += (*_iter459).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9392,14 +9392,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size454;
- ::apache::thrift::protocol::TType _etype457;
- iprot->readListBegin(_etype457, _size454);
- (*(this->success)).resize(_size454);
- uint32_t _i458;
- for (_i458 = 0; _i458 < _size454; ++_i458)
+ uint32_t _size460;
+ ::apache::thrift::protocol::TType _etype463;
+ iprot->readListBegin(_etype463, _size460);
+ (*(this->success)).resize(_size460);
+ uint32_t _i464;
+ for (_i464 = 0; _i464 < _size460; ++_i464)
{
- xfer += (*(this->success))[_i458].read(iprot);
+ xfer += (*(this->success))[_i464].read(iprot);
}
iprot->readListEnd();
}
@@ -9476,14 +9476,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->names.clear();
- uint32_t _size459;
- ::apache::thrift::protocol::TType _etype462;
- iprot->readListBegin(_etype462, _size459);
- this->names.resize(_size459);
- uint32_t _i463;
- for (_i463 = 0; _i463 < _size459; ++_i463)
+ uint32_t _size465;
+ ::apache::thrift::protocol::TType _etype468;
+ iprot->readListBegin(_etype468, _size465);
+ this->names.resize(_size465);
+ uint32_t _i469;
+ for (_i469 = 0; _i469 < _size465; ++_i469)
{
- xfer += iprot->readString(this->names[_i463]);
+ xfer += iprot->readString(this->names[_i469]);
}
iprot->readListEnd();
}
@@ -9516,10 +9516,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif
xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size()));
- std::vector ::const_iterator _iter464;
- for (_iter464 = this->names.begin(); _iter464 != this->names.end(); ++_iter464)
+ std::vector ::const_iterator _iter470;
+ for (_iter470 = this->names.begin(); _iter470 != this->names.end(); ++_iter470)
{
- xfer += oprot->writeString((*_iter464));
+ xfer += oprot->writeString((*_iter470));
}
xfer += oprot->writeListEnd();
}
@@ -9541,10 +9541,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri
xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size()));
- std::vector ::const_iterator _iter465;
- for (_iter465 = (*(this->names)).begin(); _iter465 != (*(this->names)).end(); ++_iter465)
+ std::vector ::const_iterator _iter471;
+ for (_iter471 = (*(this->names)).begin(); _iter471 != (*(this->names)).end(); ++_iter471)
{
- xfer += oprot->writeString((*_iter465));
+ xfer += oprot->writeString((*_iter471));
}
xfer += oprot->writeListEnd();
}
@@ -9578,14 +9578,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size466;
- ::apache::thrift::protocol::TType _etype469;
- iprot->readListBegin(_etype469, _size466);
- this->success.resize(_size466);
- uint32_t _i470;
- for (_i470 = 0; _i470 < _size466; ++_i470)
+ uint32_t _size472;
+ ::apache::thrift::protocol::TType _etype475;
+ iprot->readListBegin(_etype475, _size472);
+ this->success.resize(_size472);
+ uint32_t _i476;
+ for (_i476 = 0; _i476 < _size472; ++_i476)
{
- xfer += this->success[_i470].read(iprot);
+ xfer += this->success[_i476].read(iprot);
}
iprot->readListEnd();
}
@@ -9632,10 +9632,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter471;
- for (_iter471 = this->success.begin(); _iter471 != this->success.end(); ++_iter471)
+ std::vector ::const_iterator _iter477;
+ for (_iter477 = this->success.begin(); _iter477 != this->success.end(); ++_iter477)
{
- xfer += (*_iter471).write(oprot);
+ xfer += (*_iter477).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9678,14 +9678,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size472;
- ::apache::thrift::protocol::TType _etype475;
- iprot->readListBegin(_etype475, _size472);
- (*(this->success)).resize(_size472);
- uint32_t _i476;
- for (_i476 = 0; _i476 < _size472; ++_i476)
+ uint32_t _size478;
+ ::apache::thrift::protocol::TType _etype481;
+ iprot->readListBegin(_etype481, _size478);
+ (*(this->success)).resize(_size478);
+ uint32_t _i482;
+ for (_i482 = 0; _i482 < _size478; ++_i482)
{
- xfer += (*(this->success))[_i476].read(iprot);
+ xfer += (*(this->success))[_i482].read(iprot);
}
iprot->readListEnd();
}
@@ -9968,14 +9968,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->new_parts.clear();
- uint32_t _size477;
- ::apache::thrift::protocol::TType _etype480;
- iprot->readListBegin(_etype480, _size477);
- this->new_parts.resize(_size477);
- uint32_t _i481;
- for (_i481 = 0; _i481 < _size477; ++_i481)
+ uint32_t _size483;
+ ::apache::thrift::protocol::TType _etype486;
+ iprot->readListBegin(_etype486, _size483);
+ this->new_parts.resize(_size483);
+ uint32_t _i487;
+ for (_i487 = 0; _i487 < _size483; ++_i487)
{
- xfer += this->new_parts[_i481].read(iprot);
+ xfer += this->new_parts[_i487].read(iprot);
}
iprot->readListEnd();
}
@@ -10008,10 +10008,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size()));
- std::vector ::const_iterator _iter482;
- for (_iter482 = this->new_parts.begin(); _iter482 != this->new_parts.end(); ++_iter482)
+ std::vector ::const_iterator _iter488;
+ for (_iter488 = this->new_parts.begin(); _iter488 != this->new_parts.end(); ++_iter488)
{
- xfer += (*_iter482).write(oprot);
+ xfer += (*_iter488).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -10033,10 +10033,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size()));
- std::vector ::const_iterator _iter483;
- for (_iter483 = (*(this->new_parts)).begin(); _iter483 != (*(this->new_parts)).end(); ++_iter483)
+ std::vector ::const_iterator _iter489;
+ for (_iter489 = (*(this->new_parts)).begin(); _iter489 != (*(this->new_parts)).end(); ++_iter489)
{
- xfer += (*_iter483).write(oprot);
+ xfer += (*_iter489).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -10422,14 +10422,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size484;
- ::apache::thrift::protocol::TType _etype487;
- iprot->readListBegin(_etype487, _size484);
- this->part_vals.resize(_size484);
- uint32_t _i488;
- for (_i488 = 0; _i488 < _size484; ++_i488)
+ uint32_t _size490;
+ ::apache::thrift::protocol::TType _etype493;
+ iprot->readListBegin(_etype493, _size490);
+ this->part_vals.resize(_size490);
+ uint32_t _i494;
+ for (_i494 = 0; _i494 < _size490; ++_i494)
{
- xfer += iprot->readString(this->part_vals[_i488]);
+ xfer += iprot->readString(this->part_vals[_i494]);
}
iprot->readListEnd();
}
@@ -10470,10 +10470,10 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::vector ::const_iterator _iter489;
- for (_iter489 = this->part_vals.begin(); _iter489 != this->part_vals.end(); ++_iter489)
+ std::vector ::const_iterator _iter495;
+ for (_iter495 = this->part_vals.begin(); _iter495 != this->part_vals.end(); ++_iter495)
{
- xfer += oprot->writeString((*_iter489));
+ xfer += oprot->writeString((*_iter495));
}
xfer += oprot->writeListEnd();
}
@@ -10498,10 +10498,10 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::vector ::const_iterator _iter490;
- for (_iter490 = (*(this->part_vals)).begin(); _iter490 != (*(this->part_vals)).end(); ++_iter490)
+ std::vector ::const_iterator _iter496;
+ for (_iter496 = (*(this->part_vals)).begin(); _iter496 != (*(this->part_vals)).end(); ++_iter496)
{
- xfer += oprot->writeString((*_iter490));
+ xfer += oprot->writeString((*_iter496));
}
xfer += oprot->writeListEnd();
}
@@ -10908,14 +10908,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size491;
- ::apache::thrift::protocol::TType _etype494;
- iprot->readListBegin(_etype494, _size491);
- this->success.resize(_size491);
- uint32_t _i495;
- for (_i495 = 0; _i495 < _size491; ++_i495)
+ uint32_t _size497;
+ ::apache::thrift::protocol::TType _etype500;
+ iprot->readListBegin(_etype500, _size497);
+ this->success.resize(_size497);
+ uint32_t _i501;
+ for (_i501 = 0; _i501 < _size497; ++_i501)
{
- xfer += iprot->readString(this->success[_i495]);
+ xfer += iprot->readString(this->success[_i501]);
}
iprot->readListEnd();
}
@@ -10954,10 +10954,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter496;
- for (_iter496 = this->success.begin(); _iter496 != this->success.end(); ++_iter496)
+ std::vector ::const_iterator _iter502;
+ for (_iter502 = this->success.begin(); _iter502 != this->success.end(); ++_iter502)
{
- xfer += oprot->writeString((*_iter496));
+ xfer += oprot->writeString((*_iter502));
}
xfer += oprot->writeListEnd();
}
@@ -10996,14 +10996,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size497;
- ::apache::thrift::protocol::TType _etype500;
- iprot->readListBegin(_etype500, _size497);
- (*(this->success)).resize(_size497);
- uint32_t _i501;
- for (_i501 = 0; _i501 < _size497; ++_i501)
+ uint32_t _size503;
+ ::apache::thrift::protocol::TType _etype506;
+ iprot->readListBegin(_etype506, _size503);
+ (*(this->success)).resize(_size503);
+ uint32_t _i507;
+ for (_i507 = 0; _i507 < _size503; ++_i507)
{
- xfer += iprot->readString((*(this->success))[_i501]);
+ xfer += iprot->readString((*(this->success))[_i507]);
}
iprot->readListEnd();
}
@@ -11118,17 +11118,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->success.clear();
- uint32_t _size502;
- ::apache::thrift::protocol::TType _ktype503;
- ::apache::thrift::protocol::TType _vtype504;
- iprot->readMapBegin(_ktype503, _vtype504, _size502);
- uint32_t _i506;
- for (_i506 = 0; _i506 < _size502; ++_i506)
+ uint32_t _size508;
+ ::apache::thrift::protocol::TType _ktype509;
+ ::apache::thrift::protocol::TType _vtype510;
+ iprot->readMapBegin(_ktype509, _vtype510, _size508);
+ uint32_t _i512;
+ for (_i512 = 0; _i512 < _size508; ++_i512)
{
- std::string _key507;
- xfer += iprot->readString(_key507);
- std::string& _val508 = this->success[_key507];
- xfer += iprot->readString(_val508);
+ std::string _key513;
+ xfer += iprot->readString(_key513);
+ std::string& _val514 = this->success[_key513];
+ xfer += iprot->readString(_val514);
}
iprot->readMapEnd();
}
@@ -11167,11 +11167,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::map ::const_iterator _iter509;
- for (_iter509 = this->success.begin(); _iter509 != this->success.end(); ++_iter509)
+ std::map ::const_iterator _iter515;
+ for (_iter515 = this->success.begin(); _iter515 != this->success.end(); ++_iter515)
{
- xfer += oprot->writeString(_iter509->first);
- xfer += oprot->writeString(_iter509->second);
+ xfer += oprot->writeString(_iter515->first);
+ xfer += oprot->writeString(_iter515->second);
}
xfer += oprot->writeMapEnd();
}
@@ -11210,17 +11210,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
(*(this->success)).clear();
- uint32_t _size510;
- ::apache::thrift::protocol::TType _ktype511;
- ::apache::thrift::protocol::TType _vtype512;
- iprot->readMapBegin(_ktype511, _vtype512, _size510);
- uint32_t _i514;
- for (_i514 = 0; _i514 < _size510; ++_i514)
+ uint32_t _size516;
+ ::apache::thrift::protocol::TType _ktype517;
+ ::apache::thrift::protocol::TType _vtype518;
+ iprot->readMapBegin(_ktype517, _vtype518, _size516);
+ uint32_t _i520;
+ for (_i520 = 0; _i520 < _size516; ++_i520)
{
- std::string _key515;
- xfer += iprot->readString(_key515);
- std::string& _val516 = (*(this->success))[_key515];
- xfer += iprot->readString(_val516);
+ std::string _key521;
+ xfer += iprot->readString(_key521);
+ std::string& _val522 = (*(this->success))[_key521];
+ xfer += iprot->readString(_val522);
}
iprot->readMapEnd();
}
@@ -11289,17 +11289,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift::
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->part_vals.clear();
- uint32_t _size517;
- ::apache::thrift::protocol::TType _ktype518;
- ::apache::thrift::protocol::TType _vtype519;
- iprot->readMapBegin(_ktype518, _vtype519, _size517);
- uint32_t _i521;
- for (_i521 = 0; _i521 < _size517; ++_i521)
+ uint32_t _size523;
+ ::apache::thrift::protocol::TType _ktype524;
+ ::apache::thrift::protocol::TType _vtype525;
+ iprot->readMapBegin(_ktype524, _vtype525, _size523);
+ uint32_t _i527;
+ for (_i527 = 0; _i527 < _size523; ++_i527)
{
- std::string _key522;
- xfer += iprot->readString(_key522);
- std::string& _val523 = this->part_vals[_key522];
- xfer += iprot->readString(_val523);
+ std::string _key528;
+ xfer += iprot->readString(_key528);
+ std::string& _val529 = this->part_vals[_key528];
+ xfer += iprot->readString(_val529);
}
iprot->readMapEnd();
}
@@ -11310,9 +11310,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift::
break;
case 4:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast524;
- xfer += iprot->readI32(ecast524);
- this->eventType = (PartitionEventType::type)ecast524;
+ int32_t ecast530;
+ xfer += iprot->readI32(ecast530);
+ this->eventType = (PartitionEventType::type)ecast530;
this->__isset.eventType = true;
} else {
xfer += iprot->skip(ftype);
@@ -11342,11 +11342,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift:
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::map ::const_iterator _iter525;
- for (_iter525 = this->part_vals.begin(); _iter525 != this->part_vals.end(); ++_iter525)
+ std::map ::const_iterator _iter531;
+ for (_iter531 = this->part_vals.begin(); _iter531 != this->part_vals.end(); ++_iter531)
{
- xfer += oprot->writeString(_iter525->first);
- xfer += oprot->writeString(_iter525->second);
+ xfer += oprot->writeString(_iter531->first);
+ xfer += oprot->writeString(_iter531->second);
}
xfer += oprot->writeMapEnd();
}
@@ -11371,11 +11371,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::map ::const_iterator _iter526;
- for (_iter526 = (*(this->part_vals)).begin(); _iter526 != (*(this->part_vals)).end(); ++_iter526)
+ std::map ::const_iterator _iter532;
+ for (_iter532 = (*(this->part_vals)).begin(); _iter532 != (*(this->part_vals)).end(); ++_iter532)
{
- xfer += oprot->writeString(_iter526->first);
- xfer += oprot->writeString(_iter526->second);
+ xfer += oprot->writeString(_iter532->first);
+ xfer += oprot->writeString(_iter532->second);
}
xfer += oprot->writeMapEnd();
}
@@ -11624,17 +11624,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->part_vals.clear();
- uint32_t _size527;
- ::apache::thrift::protocol::TType _ktype528;
- ::apache::thrift::protocol::TType _vtype529;
- iprot->readMapBegin(_ktype528, _vtype529, _size527);
- uint32_t _i531;
- for (_i531 = 0; _i531 < _size527; ++_i531)
+ uint32_t _size533;
+ ::apache::thrift::protocol::TType _ktype534;
+ ::apache::thrift::protocol::TType _vtype535;
+ iprot->readMapBegin(_ktype534, _vtype535, _size533);
+ uint32_t _i537;
+ for (_i537 = 0; _i537 < _size533; ++_i537)
{
- std::string _key532;
- xfer += iprot->readString(_key532);
- std::string& _val533 = this->part_vals[_key532];
- xfer += iprot->readString(_val533);
+ std::string _key538;
+ xfer += iprot->readString(_key538);
+ std::string& _val539 = this->part_vals[_key538];
+ xfer += iprot->readString(_val539);
}
iprot->readMapEnd();
}
@@ -11645,9 +11645,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri
break;
case 4:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast534;
- xfer += iprot->readI32(ecast534);
- this->eventType = (PartitionEventType::type)ecast534;
+ int32_t ecast540;
+ xfer += iprot->readI32(ecast540);
+ this->eventType = (PartitionEventType::type)ecast540;
this->__isset.eventType = true;
} else {
xfer += iprot->skip(ftype);
@@ -11677,11 +11677,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size()));
- std::map ::const_iterator _iter535;
- for (_iter535 = this->part_vals.begin(); _iter535 != this->part_vals.end(); ++_iter535)
+ std::map ::const_iterator _iter541;
+ for (_iter541 = this->part_vals.begin(); _iter541 != this->part_vals.end(); ++_iter541)
{
- xfer += oprot->writeString(_iter535->first);
- xfer += oprot->writeString(_iter535->second);
+ xfer += oprot->writeString(_iter541->first);
+ xfer += oprot->writeString(_iter541->second);
}
xfer += oprot->writeMapEnd();
}
@@ -11706,11 +11706,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size()));
- std::map ::const_iterator _iter536;
- for (_iter536 = (*(this->part_vals)).begin(); _iter536 != (*(this->part_vals)).end(); ++_iter536)
+ std::map ::const_iterator _iter542;
+ for (_iter542 = (*(this->part_vals)).begin(); _iter542 != (*(this->part_vals)).end(); ++_iter542)
{
- xfer += oprot->writeString(_iter536->first);
- xfer += oprot->writeString(_iter536->second);
+ xfer += oprot->writeString(_iter542->first);
+ xfer += oprot->writeString(_iter542->second);
}
xfer += oprot->writeMapEnd();
}
@@ -12971,14 +12971,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size537;
- ::apache::thrift::protocol::TType _etype540;
- iprot->readListBegin(_etype540, _size537);
- this->success.resize(_size537);
- uint32_t _i541;
- for (_i541 = 0; _i541 < _size537; ++_i541)
+ uint32_t _size543;
+ ::apache::thrift::protocol::TType _etype546;
+ iprot->readListBegin(_etype546, _size543);
+ this->success.resize(_size543);
+ uint32_t _i547;
+ for (_i547 = 0; _i547 < _size543; ++_i547)
{
- xfer += this->success[_i541].read(iprot);
+ xfer += this->success[_i547].read(iprot);
}
iprot->readListEnd();
}
@@ -13025,10 +13025,10 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter542;
- for (_iter542 = this->success.begin(); _iter542 != this->success.end(); ++_iter542)
+ std::vector ::const_iterator _iter548;
+ for (_iter548 = this->success.begin(); _iter548 != this->success.end(); ++_iter548)
{
- xfer += (*_iter542).write(oprot);
+ xfer += (*_iter548).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -13071,14 +13071,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size543;
- ::apache::thrift::protocol::TType _etype546;
- iprot->readListBegin(_etype546, _size543);
- (*(this->success)).resize(_size543);
- uint32_t _i547;
- for (_i547 = 0; _i547 < _size543; ++_i547)
+ uint32_t _size549;
+ ::apache::thrift::protocol::TType _etype552;
+ iprot->readListBegin(_etype552, _size549);
+ (*(this->success)).resize(_size549);
+ uint32_t _i553;
+ for (_i553 = 0; _i553 < _size549; ++_i553)
{
- xfer += (*(this->success))[_i547].read(iprot);
+ xfer += (*(this->success))[_i553].read(iprot);
}
iprot->readListEnd();
}
@@ -13229,14 +13229,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size548;
- ::apache::thrift::protocol::TType _etype551;
- iprot->readListBegin(_etype551, _size548);
- this->success.resize(_size548);
- uint32_t _i552;
- for (_i552 = 0; _i552 < _size548; ++_i552)
+ uint32_t _size554;
+ ::apache::thrift::protocol::TType _etype557;
+ iprot->readListBegin(_etype557, _size554);
+ this->success.resize(_size554);
+ uint32_t _i558;
+ for (_i558 = 0; _i558 < _size554; ++_i558)
{
- xfer += iprot->readString(this->success[_i552]);
+ xfer += iprot->readString(this->success[_i558]);
}
iprot->readListEnd();
}
@@ -13275,10 +13275,10 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter553;
- for (_iter553 = this->success.begin(); _iter553 != this->success.end(); ++_iter553)
+ std::vector ::const_iterator _iter559;
+ for (_iter559 = this->success.begin(); _iter559 != this->success.end(); ++_iter559)
{
- xfer += oprot->writeString((*_iter553));
+ xfer += oprot->writeString((*_iter559));
}
xfer += oprot->writeListEnd();
}
@@ -13317,14 +13317,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size554;
- ::apache::thrift::protocol::TType _etype557;
- iprot->readListBegin(_etype557, _size554);
- (*(this->success)).resize(_size554);
- uint32_t _i558;
- for (_i558 = 0; _i558 < _size554; ++_i558)
+ uint32_t _size560;
+ ::apache::thrift::protocol::TType _etype563;
+ iprot->readListBegin(_etype563, _size560);
+ (*(this->success)).resize(_size560);
+ uint32_t _i564;
+ for (_i564 = 0; _i564 < _size560; ++_i564)
{
- xfer += iprot->readString((*(this->success))[_i558]);
+ xfer += iprot->readString((*(this->success))[_i564]);
}
iprot->readListEnd();
}
@@ -13353,7 +13353,7 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro
return xfer;
}
-uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13375,8 +13375,8 @@ uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->role.read(iprot);
- this->__isset.role = true;
+ xfer += this->stats_obj.read(iprot);
+ this->__isset.stats_obj = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -13393,29 +13393,29 @@ uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::
return xfer;
}
-uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_args");
- xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->role.write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_args");
+ xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->stats_obj.write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_pargs");
- xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->role)).write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_pargs");
+ xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->stats_obj)).write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13451,6 +13451,30 @@ uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -13463,11 +13487,11 @@ uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol
return xfer;
}
-uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
@@ -13477,13 +13501,25 @@ uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protoco
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o4) {
+ xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->o4.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13519,19 +13555,43 @@ uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protoco
xfer += iprot->skip(ftype);
}
break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
xfer += iprot->readStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13552,9 +13612,9 @@ uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TP
switch (fid)
{
case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->role_name);
- this->__isset.role_name = true;
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->stats_obj.read(iprot);
+ this->__isset.stats_obj = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -13571,29 +13631,29 @@ uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TP
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args");
- xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->role_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_args");
+ xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->stats_obj.write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs");
- xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->role_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_pargs");
+ xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->stats_obj)).write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13629,6 +13689,30 @@ uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol::
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -13641,11 +13725,11 @@ uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol::
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
@@ -13655,13 +13739,25 @@ uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol:
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o4) {
+ xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->o4.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13697,6 +13793,30 @@ uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol:
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -13709,7 +13829,7 @@ uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol:
return xfer;
}
-uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13729,6 +13849,30 @@ uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protoco
}
switch (fid)
{
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->col_name);
+ this->__isset.col_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -13741,23 +13885,41 @@ uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protoco
return xfer;
}
-uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->col_name);
+ xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_role_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->col_name)));
+ xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13778,20 +13940,8 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size559;
- ::apache::thrift::protocol::TType _etype562;
- iprot->readListBegin(_etype562, _size559);
- this->success.resize(_size559);
- uint32_t _i563;
- for (_i563 = 0; _i563 < _size559; ++_i563)
- {
- xfer += iprot->readString(this->success[_i563]);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->success.read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -13805,6 +13955,30 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -13817,35 +13991,39 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto
return xfer;
}
-uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter564;
- for (_iter564 = this->success.begin(); _iter564 != this->success.end(); ++_iter564)
- {
- xfer += oprot->writeString((*_iter564));
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o4) {
+ xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->o4.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13866,20 +14044,8 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size565;
- ::apache::thrift::protocol::TType _etype568;
- iprot->readListBegin(_etype568, _size565);
- (*(this->success)).resize(_size565);
- uint32_t _i569;
- for (_i569 = 0; _i569 < _size565; ++_i569)
- {
- xfer += iprot->readString((*(this->success))[_i569]);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += (*(this->success)).read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -13893,6 +14059,30 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -13905,7 +14095,7 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -13927,52 +14117,32 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->role_name);
- this->__isset.role_name = true;
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->principal_name);
- this->__isset.principal_name = true;
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast570;
- xfer += iprot->readI32(ecast570);
- this->principal_type = (PrincipalType::type)ecast570;
- this->__isset.principal_type = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->part_name);
+ this->__isset.part_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 4:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->grantor);
- this->__isset.grantor = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 5:
- if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast571;
- xfer += iprot->readI32(ecast571);
- this->grantorType = (PrincipalType::type)ecast571;
- this->__isset.grantorType = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 6:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->grant_option);
- this->__isset.grant_option = true;
+ xfer += iprot->readString(this->col_name);
+ this->__isset.col_name = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -13989,59 +14159,47 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_args");
- xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->role_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->principal_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
- xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 4);
- xfer += oprot->writeString(this->grantor);
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 5);
- xfer += oprot->writeI32((int32_t)this->grantorType);
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->part_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("grant_option", ::apache::thrift::protocol::T_BOOL, 6);
- xfer += oprot->writeBool(this->grant_option);
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->col_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_pargs");
- xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->role_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->principal_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
- xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 4);
- xfer += oprot->writeString((*(this->grantor)));
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 5);
- xfer += oprot->writeI32((int32_t)(*(this->grantorType)));
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->part_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("grant_option", ::apache::thrift::protocol::T_BOOL, 6);
- xfer += oprot->writeBool((*(this->grant_option)));
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString((*(this->col_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14062,8 +14220,8 @@ uint32_t ThriftHiveMetastore_grant_role_result::read(::apache::thrift::protocol:
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->success.read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -14077,6 +14235,30 @@ uint32_t ThriftHiveMetastore_grant_role_result::read(::apache::thrift::protocol:
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -14089,27 +14271,39 @@ uint32_t ThriftHiveMetastore_grant_role_result::read(::apache::thrift::protocol:
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o4) {
+ xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->o4.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14130,8 +14324,8 @@ uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += (*(this->success)).read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -14145,6 +14339,30 @@ uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -14157,7 +14375,7 @@ uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14179,26 +14397,32 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol::
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->role_name);
- this->__isset.role_name = true;
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->principal_name);
- this->__isset.principal_name = true;
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast572;
- xfer += iprot->readI32(ecast572);
- this->principal_type = (PrincipalType::type)ecast572;
- this->__isset.principal_type = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->part_name);
+ this->__isset.part_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->col_name);
+ this->__isset.col_name = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -14215,41 +14439,47 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol::
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_args");
- xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->role_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->principal_name);
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
- xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->part_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->col_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_pargs");
- xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->role_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
- xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->part_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString((*(this->col_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14285,6 +14515,30 @@ uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -14297,11 +14551,11 @@ uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
@@ -14311,13 +14565,25 @@ uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protoco
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o4) {
+ xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->o4.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14353,6 +14619,30 @@ uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protoco
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -14365,7 +14655,7 @@ uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protoco
return xfer;
}
-uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14387,18 +14677,24 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->principal_name);
- this->__isset.principal_name = true;
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
- if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast573;
- xfer += iprot->readI32(ecast573);
- this->principal_type = (PrincipalType::type)ecast573;
- this->__isset.principal_type = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->col_name);
+ this->__isset.col_name = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -14415,35 +14711,41 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T
return xfer;
}
-uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_args");
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->principal_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
- xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->col_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_pargs");
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
- xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->col_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14464,20 +14766,8 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol:
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size574;
- ::apache::thrift::protocol::TType _etype577;
- iprot->readListBegin(_etype577, _size574);
- this->success.resize(_size574);
- uint32_t _i578;
- for (_i578 = 0; _i578 < _size574; ++_i578)
- {
- xfer += this->success[_i578].read(iprot);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -14491,6 +14781,30 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol:
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -14503,35 +14817,39 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol:
return xfer;
}
-uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter579;
- for (_iter579 = this->success.begin(); _iter579 != this->success.end(); ++_iter579)
- {
- xfer += (*_iter579).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o4) {
+ xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->o4.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14552,20 +14870,8 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size580;
- ::apache::thrift::protocol::TType _etype583;
- iprot->readListBegin(_etype583, _size580);
- (*(this->success)).resize(_size580);
- uint32_t _i584;
- for (_i584 = 0; _i584 < _size580; ++_i584)
- {
- xfer += (*(this->success))[_i584].read(iprot);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -14579,6 +14885,30 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o4.read(iprot);
+ this->__isset.o4 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -14591,7 +14921,7 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol
return xfer;
}
-uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14613,36 +14943,8 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->hiveObject.read(iprot);
- this->__isset.hiveObject = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->user_name);
- this->__isset.user_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->group_names.clear();
- uint32_t _size585;
- ::apache::thrift::protocol::TType _etype588;
- iprot->readListBegin(_etype588, _size585);
- this->group_names.resize(_size585);
- uint32_t _i589;
- for (_i589 = 0; _i589 < _size585; ++_i589)
- {
- xfer += iprot->readString(this->group_names[_i589]);
- }
- iprot->readListEnd();
- }
- this->__isset.group_names = true;
+ xfer += this->role.read(iprot);
+ this->__isset.role = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -14659,57 +14961,29 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot
return xfer;
}
-uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_args");
- xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->hiveObject.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->user_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size()));
- std::vector ::const_iterator _iter590;
- for (_iter590 = this->group_names.begin(); _iter590 != this->group_names.end(); ++_iter590)
- {
- xfer += oprot->writeString((*_iter590));
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_args");
+ xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->role.write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_pargs");
- xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->hiveObject)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->user_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size()));
- std::vector ::const_iterator _iter591;
- for (_iter591 = (*(this->group_names)).begin(); _iter591 != (*(this->group_names)).end(); ++_iter591)
- {
- xfer += oprot->writeString((*_iter591));
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_pargs");
+ xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->role)).write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_privilege_set_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14730,8 +15004,8 @@ uint32_t ThriftHiveMetastore_get_privilege_set_result::read(::apache::thrift::pr
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -14757,15 +15031,15 @@ uint32_t ThriftHiveMetastore_get_privilege_set_result::read(::apache::thrift::pr
return xfer;
}
-uint32_t ThriftHiveMetastore_get_privilege_set_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -14777,7 +15051,7 @@ uint32_t ThriftHiveMetastore_get_privilege_set_result::write(::apache::thrift::p
return xfer;
}
-uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14798,8 +15072,8 @@ uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::p
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -14825,7 +15099,7 @@ uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::p
return xfer;
}
-uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14847,26 +15121,8 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->principal_name);
- this->__isset.principal_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast592;
- xfer += iprot->readI32(ecast592);
- this->principal_type = (PrincipalType::type)ecast592;
- this->__isset.principal_type = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->hiveObject.read(iprot);
- this->__isset.hiveObject = true;
+ xfer += iprot->readString(this->role_name);
+ this->__isset.role_name = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -14883,41 +15139,29 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc
return xfer;
}
-uint32_t ThriftHiveMetastore_list_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_args");
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->principal_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
- xfer += oprot->writeI32((int32_t)this->principal_type);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->hiveObject.write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->role_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_list_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_pargs");
- xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->principal_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
- xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 3);
- xfer += (*(this->hiveObject)).write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->role_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -14938,20 +15182,8 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size593;
- ::apache::thrift::protocol::TType _etype596;
- iprot->readListBegin(_etype596, _size593);
- this->success.resize(_size593);
- uint32_t _i597;
- for (_i597 = 0; _i597 < _size593; ++_i597)
- {
- xfer += this->success[_i597].read(iprot);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -14977,23 +15209,15 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot
return xfer;
}
-uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
- std::vector ::const_iterator _iter598;
- for (_iter598 = this->success.begin(); _iter598 != this->success.end(); ++_iter598)
- {
- xfer += (*_iter598).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -15005,7 +15229,7 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro
return xfer;
}
-uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15026,20 +15250,8 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size599;
- ::apache::thrift::protocol::TType _etype602;
- iprot->readListBegin(_etype602, _size599);
- (*(this->success)).resize(_size599);
- uint32_t _i603;
- for (_i603 = 0; _i603 < _size599; ++_i603)
- {
- xfer += (*(this->success))[_i603].read(iprot);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15065,7 +15277,7 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15085,14 +15297,6 @@ uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::proto
}
switch (fid)
{
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->privileges.read(iprot);
- this->__isset.privileges = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
default:
xfer += iprot->skip(ftype);
break;
@@ -15105,29 +15309,23 @@ uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::proto
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_args");
- xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->privileges.write(oprot);
- xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_args");
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_role_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_pargs");
- xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->privileges)).write(oprot);
- xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_pargs");
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15148,8 +15346,20 @@ uint32_t ThriftHiveMetastore_grant_privileges_result::read(::apache::thrift::pro
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size565;
+ ::apache::thrift::protocol::TType _etype568;
+ iprot->readListBegin(_etype568, _size565);
+ this->success.resize(_size565);
+ uint32_t _i569;
+ for (_i569 = 0; _i569 < _size565; ++_i569)
+ {
+ xfer += iprot->readString(this->success[_i569]);
+ }
+ iprot->readListEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15175,15 +15385,23 @@ uint32_t ThriftHiveMetastore_grant_privileges_result::read(::apache::thrift::pro
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
+ std::vector ::const_iterator _iter570;
+ for (_iter570 = this->success.begin(); _iter570 != this->success.end(); ++_iter570)
+ {
+ xfer += oprot->writeString((*_iter570));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -15195,7 +15413,7 @@ uint32_t ThriftHiveMetastore_grant_privileges_result::write(::apache::thrift::pr
return xfer;
}
-uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15216,8 +15434,20 @@ uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::pr
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size571;
+ ::apache::thrift::protocol::TType _etype574;
+ iprot->readListBegin(_etype574, _size571);
+ (*(this->success)).resize(_size571);
+ uint32_t _i575;
+ for (_i575 = 0; _i575 < _size571; ++_i575)
+ {
+ xfer += iprot->readString((*(this->success))[_i575]);
+ }
+ iprot->readListEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15243,7 +15473,7 @@ uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::pr
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15264,9 +15494,53 @@ uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::prot
switch (fid)
{
case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->privileges.read(iprot);
- this->__isset.privileges = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->role_name);
+ this->__isset.role_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast576;
+ xfer += iprot->readI32(ecast576);
+ this->principal_type = (PrincipalType::type)ecast576;
+ this->__isset.principal_type = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->grantor);
+ this->__isset.grantor = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast577;
+ xfer += iprot->readI32(ecast577);
+ this->grantorType = (PrincipalType::type)ecast577;
+ this->__isset.grantorType = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->grant_option);
+ this->__isset.grant_option = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -15283,29 +15557,59 @@ uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::prot
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_grant_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_args");
- xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->privileges.write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_args");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->role_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->principal_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->grantor);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 5);
+ xfer += oprot->writeI32((int32_t)this->grantorType);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grant_option", ::apache::thrift::protocol::T_BOOL, 6);
+ xfer += oprot->writeBool(this->grant_option);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_grant_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_pargs");
- xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->privileges)).write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_pargs");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->role_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString((*(this->grantor)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 5);
+ xfer += oprot->writeI32((int32_t)(*(this->grantorType)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grant_option", ::apache::thrift::protocol::T_BOOL, 6);
+ xfer += oprot->writeBool((*(this->grant_option)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_grant_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15353,11 +15657,11 @@ uint32_t ThriftHiveMetastore_revoke_privileges_result::read(::apache::thrift::pr
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_grant_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
@@ -15373,7 +15677,7 @@ uint32_t ThriftHiveMetastore_revoke_privileges_result::write(::apache::thrift::p
return xfer;
}
-uint32_t ThriftHiveMetastore_revoke_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15421,7 +15725,7 @@ uint32_t ThriftHiveMetastore_revoke_privileges_presult::read(::apache::thrift::p
return xfer;
}
-uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15443,28 +15747,26 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->user_name);
- this->__isset.user_name = true;
+ xfer += iprot->readString(this->role_name);
+ this->__isset.role_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->group_names.clear();
- uint32_t _size604;
- ::apache::thrift::protocol::TType _etype607;
- iprot->readListBegin(_etype607, _size604);
- this->group_names.resize(_size604);
- uint32_t _i608;
- for (_i608 = 0; _i608 < _size604; ++_i608)
- {
- xfer += iprot->readString(this->group_names[_i608]);
- }
- iprot->readListEnd();
- }
- this->__isset.group_names = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast578;
+ xfer += iprot->readI32(ecast578);
+ this->principal_type = (PrincipalType::type)ecast578;
+ this->__isset.principal_type = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -15481,51 +15783,41 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro
return xfer;
}
-uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_args");
- xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->user_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_args");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->role_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size()));
- std::vector ::const_iterator _iter609;
- for (_iter609 = this->group_names.begin(); _iter609 != this->group_names.end(); ++_iter609)
- {
- xfer += oprot->writeString((*_iter609));
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->principal_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_pargs");
- xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->user_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_pargs");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->role_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size()));
- std::vector ::const_iterator _iter610;
- for (_iter610 = (*(this->group_names)).begin(); _iter610 != (*(this->group_names)).end(); ++_iter610)
- {
- xfer += oprot->writeString((*_iter610));
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15546,20 +15838,8 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size611;
- ::apache::thrift::protocol::TType _etype614;
- iprot->readListBegin(_etype614, _size611);
- this->success.resize(_size611);
- uint32_t _i615;
- for (_i615 = 0; _i615 < _size611; ++_i615)
- {
- xfer += iprot->readString(this->success[_i615]);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15585,23 +15865,15 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP
return xfer;
}
-uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
- std::vector ::const_iterator _iter616;
- for (_iter616 = this->success.begin(); _iter616 != this->success.end(); ++_iter616)
- {
- xfer += oprot->writeString((*_iter616));
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -15613,7 +15885,7 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T
return xfer;
}
-uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15634,20 +15906,8 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size617;
- ::apache::thrift::protocol::TType _etype620;
- iprot->readListBegin(_etype620, _size617);
- (*(this->success)).resize(_size617);
- uint32_t _i621;
- for (_i621 = 0; _i621 < _size617; ++_i621)
- {
- xfer += iprot->readString((*(this->success))[_i621]);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15673,7 +15933,7 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T
return xfer;
}
-uint32_t ThriftHiveMetastore_get_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15695,16 +15955,18 @@ uint32_t ThriftHiveMetastore_get_delegation_token_args::read(::apache::thrift::p
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->token_owner);
- this->__isset.token_owner = true;
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->renewer_kerberos_principal_name);
- this->__isset.renewer_kerberos_principal_name = true;
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast579;
+ xfer += iprot->readI32(ecast579);
+ this->principal_type = (PrincipalType::type)ecast579;
+ this->__isset.principal_type = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -15721,35 +15983,35 @@ uint32_t ThriftHiveMetastore_get_delegation_token_args::read(::apache::thrift::p
return xfer;
}
-uint32_t ThriftHiveMetastore_get_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_args");
- xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->token_owner);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_args");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->principal_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("renewer_kerberos_principal_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->renewer_kerberos_principal_name);
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_pargs");
- xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->token_owner)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_pargs");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->principal_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("renewer_kerberos_principal_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->renewer_kerberos_principal_name)));
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15770,8 +16032,20 @@ uint32_t ThriftHiveMetastore_get_delegation_token_result::read(::apache::thrift:
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->success);
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size580;
+ ::apache::thrift::protocol::TType _etype583;
+ iprot->readListBegin(_etype583, _size580);
+ this->success.resize(_size580);
+ uint32_t _i584;
+ for (_i584 = 0; _i584 < _size580; ++_i584)
+ {
+ xfer += this->success[_i584].read(iprot);
+ }
+ iprot->readListEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15797,15 +16071,23 @@ uint32_t ThriftHiveMetastore_get_delegation_token_result::read(::apache::thrift:
return xfer;
}
-uint32_t ThriftHiveMetastore_get_delegation_token_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
- xfer += oprot->writeString(this->success);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
+ std::vector ::const_iterator _iter585;
+ for (_iter585 = this->success.begin(); _iter585 != this->success.end(); ++_iter585)
+ {
+ xfer += (*_iter585).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -15817,7 +16099,7 @@ uint32_t ThriftHiveMetastore_get_delegation_token_result::write(::apache::thrift
return xfer;
}
-uint32_t ThriftHiveMetastore_get_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15838,8 +16120,20 @@ uint32_t ThriftHiveMetastore_get_delegation_token_presult::read(::apache::thrift
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString((*(this->success)));
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size586;
+ ::apache::thrift::protocol::TType _etype589;
+ iprot->readListBegin(_etype589, _size586);
+ (*(this->success)).resize(_size586);
+ uint32_t _i590;
+ for (_i590 = 0; _i590 < _size586; ++_i590)
+ {
+ xfer += (*(this->success))[_i590].read(iprot);
+ }
+ iprot->readListEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15865,7 +16159,7 @@ uint32_t ThriftHiveMetastore_get_delegation_token_presult::read(::apache::thrift
return xfer;
}
-uint32_t ThriftHiveMetastore_renew_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15886,9 +16180,37 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_args::read(::apache::thrift:
switch (fid)
{
case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->hiveObject.read(iprot);
+ this->__isset.hiveObject = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->token_str_form);
- this->__isset.token_str_form = true;
+ xfer += iprot->readString(this->user_name);
+ this->__isset.user_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->group_names.clear();
+ uint32_t _size591;
+ ::apache::thrift::protocol::TType _etype594;
+ iprot->readListBegin(_etype594, _size591);
+ this->group_names.resize(_size591);
+ uint32_t _i595;
+ for (_i595 = 0; _i595 < _size591; ++_i595)
+ {
+ xfer += iprot->readString(this->group_names[_i595]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.group_names = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -15905,29 +16227,57 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_args::read(::apache::thrift:
return xfer;
}
-uint32_t ThriftHiveMetastore_renew_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_args");
- xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->token_str_form);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_args");
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->hiveObject.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->user_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size()));
+ std::vector ::const_iterator _iter596;
+ for (_iter596 = this->group_names.begin(); _iter596 != this->group_names.end(); ++_iter596)
+ {
+ xfer += oprot->writeString((*_iter596));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_renew_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_pargs");
- xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->token_str_form)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_pargs");
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->hiveObject)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->user_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size()));
+ std::vector ::const_iterator _iter597;
+ for (_iter597 = (*(this->group_names)).begin(); _iter597 != (*(this->group_names)).end(); ++_iter597)
+ {
+ xfer += oprot->writeString((*_iter597));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_renew_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_privilege_set_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -15948,8 +16298,8 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_result::read(::apache::thrif
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->success);
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->success.read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -15975,15 +16325,15 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_result::read(::apache::thrif
return xfer;
}
-uint32_t ThriftHiveMetastore_renew_delegation_token_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_privilege_set_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I64, 0);
- xfer += oprot->writeI64(this->success);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -15995,7 +16345,7 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_result::write(::apache::thri
return xfer;
}
-uint32_t ThriftHiveMetastore_renew_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -16016,8 +16366,8 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_presult::read(::apache::thri
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64((*(this->success)));
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += (*(this->success)).read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -16043,7 +16393,7 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_presult::read(::apache::thri
return xfer;
}
-uint32_t ThriftHiveMetastore_cancel_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -16065,8 +16415,26 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_args::read(::apache::thrift
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->token_str_form);
- this->__isset.token_str_form = true;
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast598;
+ xfer += iprot->readI32(ecast598);
+ this->principal_type = (PrincipalType::type)ecast598;
+ this->__isset.principal_type = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->hiveObject.read(iprot);
+ this->__isset.hiveObject = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -16083,29 +16451,41 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_args::read(::apache::thrift
return xfer;
}
-uint32_t ThriftHiveMetastore_cancel_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_list_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_args");
- xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->token_str_form);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_args");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->principal_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->hiveObject.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
}
-uint32_t ThriftHiveMetastore_cancel_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_list_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_pargs");
- xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->token_str_form)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_pargs");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += (*(this->hiveObject)).write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_cancel_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -16125,6 +16505,26 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_result::read(::apache::thri
}
switch (fid)
{
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size599;
+ ::apache::thrift::protocol::TType _etype602;
+ iprot->readListBegin(_etype602, _size599);
+ this->success.resize(_size599);
+ uint32_t _i603;
+ for (_i603 = 0; _i603 < _size599; ++_i603)
+ {
+ xfer += this->success[_i603].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o1.read(iprot);
@@ -16145,13 +16545,25 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_result::read(::apache::thri
return xfer;
}
-uint32_t ThriftHiveMetastore_cancel_delegation_token_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_result");
- if (this->__isset.o1) {
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size()));
+ std::vector ::const_iterator _iter604;
+ for (_iter604 = this->success.begin(); _iter604 != this->success.end(); ++_iter604)
+ {
+ xfer += (*_iter604).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
@@ -16161,7 +16573,7 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_result::write(::apache::thr
return xfer;
}
-uint32_t ThriftHiveMetastore_cancel_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -16181,6 +16593,26 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_presult::read(::apache::thr
}
switch (fid)
{
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size605;
+ ::apache::thrift::protocol::TType _etype608;
+ iprot->readListBegin(_etype608, _size605);
+ (*(this->success)).resize(_size605);
+ uint32_t _i609;
+ for (_i609 = 0; _i609 < _size605; ++_i609)
+ {
+ xfer += (*(this->success))[_i609].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o1.read(iprot);
@@ -16201,155 +16633,1665 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_presult::read(::apache::thr
return xfer;
}
-void ThriftHiveMetastoreClient::create_database(const Database& database)
-{
- send_create_database(database);
- recv_create_database();
-}
-
-void ThriftHiveMetastoreClient::send_create_database(const Database& database)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_database", ::apache::thrift::protocol::T_CALL, cseqid);
+uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
- ThriftHiveMetastore_create_database_pargs args;
- args.database = &database;
- args.write(oprot_);
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
+ xfer += iprot->readStructBegin(fname);
-void ThriftHiveMetastoreClient::recv_create_database()
-{
+ using ::apache::thrift::protocol::TProtocolException;
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("create_database") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->privileges.read(iprot);
+ this->__isset.privileges = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
}
- ThriftHiveMetastore_create_database_presult result;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- return;
-}
+ xfer += iprot->readStructEnd();
-void ThriftHiveMetastoreClient::get_database(Database& _return, const std::string& name)
-{
- send_get_database(name);
- recv_get_database(_return);
+ return xfer;
}
-void ThriftHiveMetastoreClient::send_get_database(const std::string& name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_database", ::apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_database_pargs args;
- args.name = &name;
- args.write(oprot_);
+uint32_t ThriftHiveMetastore_grant_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_args");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->privileges.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
+uint32_t ThriftHiveMetastore_grant_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_pargs");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->privileges)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
}
-void ThriftHiveMetastoreClient::recv_get_database(Database& _return)
-{
+uint32_t ThriftHiveMetastore_grant_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
- int32_t rseqid = 0;
+ uint32_t xfer = 0;
std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- if (fname.compare("get_database") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- }
- ThriftHiveMetastore_get_database_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result");
-}
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
-void ThriftHiveMetastoreClient::drop_database(const std::string& name, const bool deleteData, const bool cascade)
-{
- send_drop_database(name, deleteData, cascade);
- recv_drop_database();
-}
+ xfer += iprot->readStructBegin(fname);
-void ThriftHiveMetastoreClient::send_drop_database(const std::string& name, const bool deleteData, const bool cascade)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ using ::apache::thrift::protocol::TProtocolException;
- ThriftHiveMetastore_drop_database_pargs args;
- args.name = &name;
- args.deleteData = &deleteData;
- args.cascade = &cascade;
- args.write(oprot_);
- oprot_->writeMessageEnd();
- oprot_->getTransport()->writeEnd();
- oprot_->getTransport()->flush();
-}
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->privileges.read(iprot);
+ this->__isset.privileges = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_args");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->privileges.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_pargs");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->privileges)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->user_name);
+ this->__isset.user_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->group_names.clear();
+ uint32_t _size610;
+ ::apache::thrift::protocol::TType _etype613;
+ iprot->readListBegin(_etype613, _size610);
+ this->group_names.resize(_size610);
+ uint32_t _i614;
+ for (_i614 = 0; _i614 < _size610; ++_i614)
+ {
+ xfer += iprot->readString(this->group_names[_i614]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.group_names = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_args");
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->user_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size()));
+ std::vector ::const_iterator _iter615;
+ for (_iter615 = this->group_names.begin(); _iter615 != this->group_names.end(); ++_iter615)
+ {
+ xfer += oprot->writeString((*_iter615));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_pargs");
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->user_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size()));
+ std::vector ::const_iterator _iter616;
+ for (_iter616 = (*(this->group_names)).begin(); _iter616 != (*(this->group_names)).end(); ++_iter616)
+ {
+ xfer += oprot->writeString((*_iter616));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size617;
+ ::apache::thrift::protocol::TType _etype620;
+ iprot->readListBegin(_etype620, _size617);
+ this->success.resize(_size617);
+ uint32_t _i621;
+ for (_i621 = 0; _i621 < _size617; ++_i621)
+ {
+ xfer += iprot->readString(this->success[_i621]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size()));
+ std::vector ::const_iterator _iter622;
+ for (_iter622 = this->success.begin(); _iter622 != this->success.end(); ++_iter622)
+ {
+ xfer += oprot->writeString((*_iter622));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size623;
+ ::apache::thrift::protocol::TType _etype626;
+ iprot->readListBegin(_etype626, _size623);
+ (*(this->success)).resize(_size623);
+ uint32_t _i627;
+ for (_i627 = 0; _i627 < _size623; ++_i627)
+ {
+ xfer += iprot->readString((*(this->success))[_i627]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->token_owner);
+ this->__isset.token_owner = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->renewer_kerberos_principal_name);
+ this->__isset.renewer_kerberos_principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_args");
+ xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->token_owner);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("renewer_kerberos_principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->renewer_kerberos_principal_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_pargs");
+ xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->token_owner)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("renewer_kerberos_principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->renewer_kerberos_principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_delegation_token_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
+ xfer += oprot->writeString(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_renew_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->token_str_form);
+ this->__isset.token_str_form = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_renew_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_args");
+ xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->token_str_form);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_renew_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_pargs");
+ xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->token_str_form)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_renew_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_I64) {
+ xfer += iprot->readI64(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_renew_delegation_token_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I64, 0);
+ xfer += oprot->writeI64(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_renew_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_I64) {
+ xfer += iprot->readI64((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_cancel_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->token_str_form);
+ this->__isset.token_str_form = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_cancel_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_args");
+ xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->token_str_form);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_cancel_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_pargs");
+ xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->token_str_form)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_cancel_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_cancel_delegation_token_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_result");
+
+ if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_cancel_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+void ThriftHiveMetastoreClient::create_database(const Database& database)
+{
+ send_create_database(database);
+ recv_create_database();
+}
+
+void ThriftHiveMetastoreClient::send_create_database(const Database& database)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("create_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_create_database_pargs args;
+ args.database = &database;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void ThriftHiveMetastoreClient::recv_create_database()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("create_database") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ ThriftHiveMetastore_create_database_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ return;
+}
+
+void ThriftHiveMetastoreClient::get_database(Database& _return, const std::string& name)
+{
+ send_get_database(name);
+ recv_get_database(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_database(const std::string& name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_database_pargs args;
+ args.name = &name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void ThriftHiveMetastoreClient::recv_get_database(Database& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("get_database") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ ThriftHiveMetastore_get_database_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::drop_database(const std::string& name, const bool deleteData, const bool cascade)
+{
+ send_drop_database(name, deleteData, cascade);
+ recv_drop_database();
+}
+
+void ThriftHiveMetastoreClient::send_drop_database(const std::string& name, const bool deleteData, const bool cascade)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_drop_database_pargs args;
+ args.name = &name;
+ args.deleteData = &deleteData;
+ args.cascade = &cascade;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void ThriftHiveMetastoreClient::recv_drop_database()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("drop_database") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ ThriftHiveMetastore_drop_database_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ return;
+}
+
+void ThriftHiveMetastoreClient::get_databases(std::vector & _return, const std::string& pattern)
+{
+ send_get_databases(pattern);
+ recv_get_databases(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_databases_pargs args;
+ args.pattern = &pattern;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("get_databases") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ ThriftHiveMetastore_get_databases_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::get_all_databases(std::vector & _return)
+{
+ send_get_all_databases();
+ recv_get_all_databases(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_all_databases()
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_all_databases_pargs args;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("get_all_databases") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ ThriftHiveMetastore_get_all_databases_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::alter_database(const std::string& dbname, const Database& db)
+{
+ send_alter_database(dbname, db);
+ recv_alter_database();
+}
+
+void ThriftHiveMetastoreClient::send_alter_database(const std::string& dbname, const Database& db)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_alter_database_pargs args;
+ args.dbname = &dbname;
+ args.db = &db;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void ThriftHiveMetastoreClient::recv_alter_database()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("alter_database") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ ThriftHiveMetastore_alter_database_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ return;
+}
+
+void ThriftHiveMetastoreClient::get_type(Type& _return, const std::string& name)
+{
+ send_get_type(name);
+ recv_get_type(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_type(const std::string& name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_type_pargs args;
+ args.name = &name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void ThriftHiveMetastoreClient::recv_get_type(Type& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("get_type") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ ThriftHiveMetastore_get_type_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result");
+}
+
+bool ThriftHiveMetastoreClient::create_type(const Type& type)
+{
+ send_create_type(type);
+ return recv_create_type();
+}
+
+void ThriftHiveMetastoreClient::send_create_type(const Type& type)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_create_type_pargs args;
+ args.type = &type;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+bool ThriftHiveMetastoreClient::recv_create_type()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("create_type") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ bool _return;
+ ThriftHiveMetastore_create_type_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
-void ThriftHiveMetastoreClient::recv_drop_database()
+ if (result.__isset.success) {
+ return _return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result");
+}
+
+bool ThriftHiveMetastoreClient::drop_type(const std::string& type)
+{
+ send_drop_type(type);
+ return recv_drop_type();
+}
+
+void ThriftHiveMetastoreClient::send_drop_type(const std::string& type)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_drop_type_pargs args;
+ args.type = &type;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+bool ThriftHiveMetastoreClient::recv_drop_type()
{
int32_t rseqid = 0;
@@ -16369,41 +18311,43 @@ void ThriftHiveMetastoreClient::recv_drop_database()
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("drop_database") != 0) {
+ if (fname.compare("drop_type") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_drop_database_presult result;
+ bool _return;
+ ThriftHiveMetastore_drop_type_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ return _return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_databases(std::vector & _return, const std::string& pattern)
+void ThriftHiveMetastoreClient::get_type_all(std::map & _return, const std::string& name)
{
- send_get_databases(pattern);
- recv_get_databases(_return);
+ send_get_type_all(name);
+ recv_get_type_all(_return);
}
-void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern)
+void ThriftHiveMetastoreClient::send_get_type_all(const std::string& name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_databases_pargs args;
- args.pattern = &pattern;
+ ThriftHiveMetastore_get_type_all_pargs args;
+ args.name = &name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16411,7 +18355,7 @@ void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern)
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_type_all(std::map & _return)
{
int32_t rseqid = 0;
@@ -16431,12 +18375,12 @@ void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _r
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_databases") != 0) {
+ if (fname.compare("get_type_all") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_databases_presult result;
+ ThriftHiveMetastore_get_type_all_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -16446,24 +18390,26 @@ void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _r
// _return pointer has now been filled
return;
}
- if (result.__isset.o1) {
- throw result.o1;
+ if (result.__isset.o2) {
+ throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_all_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name)
{
- send_get_all_databases();
- recv_get_all_databases(_return);
+ send_get_fields(db_name, table_name);
+ recv_get_fields(_return);
}
-void ThriftHiveMetastoreClient::send_get_all_databases()
+void ThriftHiveMetastoreClient::send_get_fields(const std::string& db_name, const std::string& table_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_all_databases_pargs args;
+ ThriftHiveMetastore_get_fields_pargs args;
+ args.db_name = &db_name;
+ args.table_name = &table_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16471,7 +18417,7 @@ void ThriftHiveMetastoreClient::send_get_all_databases()
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _return)
{
int32_t rseqid = 0;
@@ -16491,12 +18437,12 @@ void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_all_databases") != 0) {
+ if (fname.compare("get_fields") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_all_databases_presult result;
+ ThriftHiveMetastore_get_fields_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -16509,23 +18455,29 @@ void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases failed: unknown result");
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result");
}
-void ThriftHiveMetastoreClient::alter_database(const std::string& dbname, const Database& db)
+void ThriftHiveMetastoreClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name)
{
- send_alter_database(dbname, db);
- recv_alter_database();
+ send_get_schema(db_name, table_name);
+ recv_get_schema(_return);
}
-void ThriftHiveMetastoreClient::send_alter_database(const std::string& dbname, const Database& db)
+void ThriftHiveMetastoreClient::send_get_schema(const std::string& db_name, const std::string& table_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_alter_database_pargs args;
- args.dbname = &dbname;
- args.db = &db;
+ ThriftHiveMetastore_get_schema_pargs args;
+ args.db_name = &db_name;
+ args.table_name = &table_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16533,7 +18485,7 @@ void ThriftHiveMetastoreClient::send_alter_database(const std::string& dbname, c
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_alter_database()
+void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _return)
{
int32_t rseqid = 0;
@@ -16553,38 +18505,46 @@ void ThriftHiveMetastoreClient::recv_alter_database()
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("alter_database") != 0) {
+ if (fname.compare("get_schema") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_alter_database_presult result;
+ ThriftHiveMetastore_get_schema_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
if (result.__isset.o2) {
throw result.o2;
}
- return;
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_type(Type& _return, const std::string& name)
+void ThriftHiveMetastoreClient::create_table(const Table& tbl)
{
- send_get_type(name);
- recv_get_type(_return);
+ send_create_table(tbl);
+ recv_create_table();
}
-void ThriftHiveMetastoreClient::send_get_type(const std::string& name)
+void ThriftHiveMetastoreClient::send_create_table(const Table& tbl)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_type_pargs args;
- args.name = &name;
+ ThriftHiveMetastore_create_table_pargs args;
+ args.tbl = &tbl;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16592,7 +18552,7 @@ void ThriftHiveMetastoreClient::send_get_type(const std::string& name)
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_type(Type& _return)
+void ThriftHiveMetastoreClient::recv_create_table()
{
int32_t rseqid = 0;
@@ -16612,43 +18572,45 @@ void ThriftHiveMetastoreClient::recv_get_type(Type& _return)
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_type") != 0) {
+ if (fname.compare("create_table") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_type_presult result;
- result.success = &_return;
+ ThriftHiveMetastore_create_table_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
if (result.__isset.o1) {
throw result.o1;
}
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result");
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ if (result.__isset.o4) {
+ throw result.o4;
+ }
+ return;
}
-bool ThriftHiveMetastoreClient::create_type(const Type& type)
+void ThriftHiveMetastoreClient::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context)
{
- send_create_type(type);
- return recv_create_type();
+ send_create_table_with_environment_context(tbl, environment_context);
+ recv_create_table_with_environment_context();
}
-void ThriftHiveMetastoreClient::send_create_type(const Type& type)
+void ThriftHiveMetastoreClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_create_type_pargs args;
- args.type = &type;
+ ThriftHiveMetastore_create_table_with_environment_context_pargs args;
+ args.tbl = &tbl;
+ args.environment_context = &environment_context;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16656,7 +18618,7 @@ void ThriftHiveMetastoreClient::send_create_type(const Type& type)
oprot_->getTransport()->flush();
}
-bool ThriftHiveMetastoreClient::recv_create_type()
+void ThriftHiveMetastoreClient::recv_create_table_with_environment_context()
{
int32_t rseqid = 0;
@@ -16676,21 +18638,16 @@ bool ThriftHiveMetastoreClient::recv_create_type()
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("create_type") != 0) {
+ if (fname.compare("create_table_with_environment_context") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- bool _return;
- ThriftHiveMetastore_create_type_presult result;
- result.success = &_return;
+ ThriftHiveMetastore_create_table_with_environment_context_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- return _return;
- }
if (result.__isset.o1) {
throw result.o1;
}
@@ -16700,22 +18657,27 @@ bool ThriftHiveMetastoreClient::recv_create_type()
if (result.__isset.o3) {
throw result.o3;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result");
+ if (result.__isset.o4) {
+ throw result.o4;
+ }
+ return;
}
-bool ThriftHiveMetastoreClient::drop_type(const std::string& type)
+void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
{
- send_drop_type(type);
- return recv_drop_type();
+ send_drop_table(dbname, name, deleteData);
+ recv_drop_table();
}
-void ThriftHiveMetastoreClient::send_drop_type(const std::string& type)
+void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_type_pargs args;
- args.type = &type;
+ ThriftHiveMetastore_drop_table_pargs args;
+ args.dbname = &dbname;
+ args.name = &name;
+ args.deleteData = &deleteData;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16723,7 +18685,7 @@ void ThriftHiveMetastoreClient::send_drop_type(const std::string& type)
oprot_->getTransport()->flush();
}
-bool ThriftHiveMetastoreClient::recv_drop_type()
+void ThriftHiveMetastoreClient::recv_drop_table()
{
int32_t rseqid = 0;
@@ -16743,43 +18705,39 @@ bool ThriftHiveMetastoreClient::recv_drop_type()
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("drop_type") != 0) {
+ if (fname.compare("drop_table") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- bool _return;
- ThriftHiveMetastore_drop_type_presult result;
- result.success = &_return;
+ ThriftHiveMetastore_drop_table_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- return _return;
- }
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
+ if (result.__isset.o3) {
+ throw result.o3;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result");
+ return;
}
-void ThriftHiveMetastoreClient::get_type_all(std::map & _return, const std::string& name)
+void ThriftHiveMetastoreClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern)
{
- send_get_type_all(name);
- recv_get_type_all(_return);
+ send_get_tables(db_name, pattern);
+ recv_get_tables(_return);
}
-void ThriftHiveMetastoreClient::send_get_type_all(const std::string& name)
+void ThriftHiveMetastoreClient::send_get_tables(const std::string& db_name, const std::string& pattern)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_type_all_pargs args;
- args.name = &name;
+ ThriftHiveMetastore_get_tables_pargs args;
+ args.db_name = &db_name;
+ args.pattern = &pattern;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16787,7 +18745,7 @@ void ThriftHiveMetastoreClient::send_get_type_all(const std::string& name)
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_type_all(std::map & _return)
+void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _return)
{
int32_t rseqid = 0;
@@ -16807,12 +18765,12 @@ void ThriftHiveMetastoreClient::recv_get_type_all(std::map &
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_type_all") != 0) {
+ if (fname.compare("get_tables") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_type_all_presult result;
+ ThriftHiveMetastore_get_tables_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -16822,26 +18780,25 @@ void ThriftHiveMetastoreClient::recv_get_type_all(std::map &
// _return pointer has now been filled
return;
}
- if (result.__isset.o2) {
- throw result.o2;
+ if (result.__isset.o1) {
+ throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_tables failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::get_all_tables(std::vector & _return, const std::string& db_name)
{
- send_get_fields(db_name, table_name);
- recv_get_fields(_return);
+ send_get_all_tables(db_name);
+ recv_get_all_tables(_return);
}
-void ThriftHiveMetastoreClient::send_get_fields(const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::send_get_all_tables(const std::string& db_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_fields_pargs args;
+ ThriftHiveMetastore_get_all_tables_pargs args;
args.db_name = &db_name;
- args.table_name = &table_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16849,7 +18806,7 @@ void ThriftHiveMetastoreClient::send_get_fields(const std::string& db_name, cons
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _return)
{
int32_t rseqid = 0;
@@ -16869,12 +18826,12 @@ void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _retu
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_fields") != 0) {
+ if (fname.compare("get_all_tables") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_fields_presult result;
+ ThriftHiveMetastore_get_all_tables_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -16887,29 +18844,23 @@ void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _retu
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_tables failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::get_table(Table& _return, const std::string& dbname, const std::string& tbl_name)
{
- send_get_schema(db_name, table_name);
- recv_get_schema(_return);
+ send_get_table(dbname, tbl_name);
+ recv_get_table(_return);
}
-void ThriftHiveMetastoreClient::send_get_schema(const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const std::string& tbl_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_schema_pargs args;
- args.db_name = &db_name;
- args.table_name = &table_name;
+ ThriftHiveMetastore_get_table_pargs args;
+ args.dbname = &dbname;
+ args.tbl_name = &tbl_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16917,7 +18868,7 @@ void ThriftHiveMetastoreClient::send_get_schema(const std::string& db_name, cons
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
{
int32_t rseqid = 0;
@@ -16937,12 +18888,12 @@ void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _retu
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_schema") != 0) {
+ if (fname.compare("get_table") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_schema_presult result;
+ ThriftHiveMetastore_get_table_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -16958,25 +18909,23 @@ void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _retu
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table failed: unknown result");
}
-void ThriftHiveMetastoreClient::create_table(const Table& tbl)
+void ThriftHiveMetastoreClient::get_table_objects_by_name(std::vector & _return, const std::string& dbname, const std::vector & tbl_names)
{
- send_create_table(tbl);
- recv_create_table();
+ send_get_table_objects_by_name(dbname, tbl_names);
+ recv_get_table_objects_by_name(_return);
}
-void ThriftHiveMetastoreClient::send_create_table(const Table& tbl)
+void ThriftHiveMetastoreClient::send_get_table_objects_by_name(const std::string& dbname, const std::vector & tbl_names)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_table_objects_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_create_table_pargs args;
- args.tbl = &tbl;
+ ThriftHiveMetastore_get_table_objects_by_name_pargs args;
+ args.dbname = &dbname;
+ args.tbl_names = &tbl_names;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -16984,7 +18933,7 @@ void ThriftHiveMetastoreClient::send_create_table(const Table& tbl)
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_create_table()
+void ThriftHiveMetastoreClient::recv_get_table_objects_by_name(std::vector & _return)
{
int32_t rseqid = 0;
@@ -17004,16 +18953,21 @@ void ThriftHiveMetastoreClient::recv_create_table()
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("create_table") != 0) {
+ if (fname.compare("get_table_objects_by_name") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_create_table_presult result;
+ ThriftHiveMetastore_get_table_objects_by_name_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
@@ -17023,26 +18977,24 @@ void ThriftHiveMetastoreClient::recv_create_table()
if (result.__isset.o3) {
throw result.o3;
}
- if (result.__isset.o4) {
- throw result.o4;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_objects_by_name failed: unknown result");
}
-void ThriftHiveMetastoreClient::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context)
+void ThriftHiveMetastoreClient::get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables)
{
- send_create_table_with_environment_context(tbl, environment_context);
- recv_create_table_with_environment_context();
+ send_get_table_names_by_filter(dbname, filter, max_tables);
+ recv_get_table_names_by_filter(_return);
}
-void ThriftHiveMetastoreClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context)
+void ThriftHiveMetastoreClient::send_get_table_names_by_filter(const std::string& dbname, const std::string& filter, const int16_t max_tables)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_table_names_by_filter", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_create_table_with_environment_context_pargs args;
- args.tbl = &tbl;
- args.environment_context = &environment_context;
+ ThriftHiveMetastore_get_table_names_by_filter_pargs args;
+ args.dbname = &dbname;
+ args.filter = &filter;
+ args.max_tables = &max_tables;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -17050,7 +19002,7 @@ void ThriftHiveMetastoreClient::send_create_table_with_environment_context(const
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_create_table_with_environment_context()
+void ThriftHiveMetastoreClient::recv_get_table_names_by_filter(std::vector & _return)
{
int32_t rseqid = 0;
@@ -17070,16 +19022,21 @@ void ThriftHiveMetastoreClient::recv_create_table_with_environment_context()
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("create_table_with_environment_context") != 0) {
+ if (fname.compare("get_table_names_by_filter") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_create_table_with_environment_context_presult result;
+ ThriftHiveMetastore_get_table_names_by_filter_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
@@ -17089,27 +19046,24 @@ void ThriftHiveMetastoreClient::recv_create_table_with_environment_context()
if (result.__isset.o3) {
throw result.o3;
}
- if (result.__isset.o4) {
- throw result.o4;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_names_by_filter failed: unknown result");
}
-void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
{
- send_drop_table(dbname, name, deleteData);
- recv_drop_table();
+ send_alter_table(dbname, tbl_name, new_tbl);
+ recv_alter_table();
}
-void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_table_pargs args;
+ ThriftHiveMetastore_alter_table_pargs args;
args.dbname = &dbname;
- args.name = &name;
- args.deleteData = &deleteData;
+ args.tbl_name = &tbl_name;
+ args.new_tbl = &new_tbl;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -17117,7 +19071,7 @@ void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_drop_table()
+void ThriftHiveMetastoreClient::recv_alter_table()
{
int32_t rseqid = 0;
@@ -17137,12 +19091,12 @@ void ThriftHiveMetastoreClient::recv_drop_table()
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("drop_table") != 0) {
+ if (fname.compare("alter_table") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_drop_table_presult result;
+ ThriftHiveMetastore_alter_table_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
@@ -17150,26 +19104,28 @@ void ThriftHiveMetastoreClient::recv_drop_table()
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o3) {
- throw result.o3;
+ if (result.__isset.o2) {
+ throw result.o2;
}
return;
}
-void ThriftHiveMetastoreClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern)
+void ThriftHiveMetastoreClient::alter_table_with_environment_context(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const EnvironmentContext& environment_context)
{
- send_get_tables(db_name, pattern);
- recv_get_tables(_return);
+ send_alter_table_with_environment_context(dbname, tbl_name, new_tbl, environment_context);
+ recv_alter_table_with_environment_context();
}
-void ThriftHiveMetastoreClient::send_get_tables(const std::string& db_name, const std::string& pattern)
+void ThriftHiveMetastoreClient::send_alter_table_with_environment_context(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const EnvironmentContext& environment_context)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("alter_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_tables_pargs args;
- args.db_name = &db_name;
- args.pattern = &pattern;
+ ThriftHiveMetastore_alter_table_with_environment_context_pargs args;
+ args.dbname = &dbname;
+ args.tbl_name = &tbl_name;
+ args.new_tbl = &new_tbl;
+ args.environment_context = &environment_context;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -17177,7 +19133,7 @@ void ThriftHiveMetastoreClient::send_get_tables(const std::string& db_name, cons
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_alter_table_with_environment_context()
{
int32_t rseqid = 0;
@@ -17197,40 +19153,38 @@ void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _retu
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_tables") != 0) {
+ if (fname.compare("alter_table_with_environment_context") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_tables_presult result;
- result.success = &_return;
+ ThriftHiveMetastore_alter_table_with_environment_context_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_tables failed: unknown result");
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ return;
}
-void ThriftHiveMetastoreClient::get_all_tables(std::vector & _return, const std::string& db_name)
+void ThriftHiveMetastoreClient::add_partition(Partition& _return, const Partition& new_part)
{
- send_get_all_tables(db_name);
- recv_get_all_tables(_return);
+ send_add_partition(new_part);
+ recv_add_partition(_return);
}
-void ThriftHiveMetastoreClient::send_get_all_tables(const std::string& db_name)
+void ThriftHiveMetastoreClient::send_add_partition(const Partition& new_part)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_all_tables_pargs args;
- args.db_name = &db_name;
+ ThriftHiveMetastore_add_partition_pargs args;
+ args.new_part = &new_part;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -17238,7 +19192,7 @@ void ThriftHiveMetastoreClient::send_get_all_tables(const std::string& db_name)
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_add_partition(Partition& _return)
{
int32_t rseqid = 0;
@@ -17258,12 +19212,12 @@ void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_all_tables") != 0) {
+ if (fname.compare("add_partition") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_all_tables_presult result;
+ ThriftHiveMetastore_add_partition_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -17276,23 +19230,29 @@ void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_tables failed: unknown result");
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partition failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_table(Table& _return, const std::string& dbname, const std::string& tbl_name)
+void ThriftHiveMetastoreClient::add_partition_with_environment_context(Partition& _return, const Partition& new_part, const EnvironmentContext& environment_context)
{
- send_get_table(dbname, tbl_name);
- recv_get_table(_return);
+ send_add_partition_with_environment_context(new_part, environment_context);
+ recv_add_partition_with_environment_context(_return);
}
-void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const std::string& tbl_name)
+void ThriftHiveMetastoreClient::send_add_partition_with_environment_context(const Partition& new_part, const EnvironmentContext& environment_context)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_table", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("add_partition_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_table_pargs args;
- args.dbname = &dbname;
- args.tbl_name = &tbl_name;
+ ThriftHiveMetastore_add_partition_with_environment_context_pargs args;
+ args.new_part = &new_part;
+ args.environment_context = &environment_context;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -17300,7 +19260,7 @@ void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
+void ThriftHiveMetastoreClient::recv_add_partition_with_environment_context(Partition& _return)
{
int32_t rseqid = 0;
@@ -17320,12 +19280,12 @@ void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_table") != 0) {
+ if (fname.compare("add_partition_with_environment_context") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_table_presult result;
+ ThriftHiveMetastore_add_partition_with_environment_context_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -17341,23 +19301,25 @@ void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table failed: unknown result");
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partition_with_environment_context failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_table_objects_by_name(std::vector & _return, const std::string& dbname, const std::vector & tbl_names)
+int32_t ThriftHiveMetastoreClient::add_partitions(const std::vector & new_parts)
{
- send_get_table_objects_by_name(dbname, tbl_names);
- recv_get_table_objects_by_name(_return);
+ send_add_partitions(new_parts);
+ return recv_add_partitions();
}
-void ThriftHiveMetastoreClient::send_get_table_objects_by_name(const std::string& dbname, const std::vector & tbl_names)
+void ThriftHiveMetastoreClient::send_add_partitions(const std::vector & new_parts)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_table_objects_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("add_partitions", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_table_objects_by_name_pargs args;
- args.dbname = &dbname;
- args.tbl_names = &tbl_names;
+ ThriftHiveMetastore_add_partitions_pargs args;
+ args.new_parts = &new_parts;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -17365,7 +19327,7 @@ void ThriftHiveMetastoreClient::send_get_table_objects_by_name(const std::string
oprot_->getTransport()->flush();
}
-void ThriftHiveMetastoreClient::recv_get_table_objects_by_name(std::vector & _return)
+int32_t ThriftHiveMetastoreClient::recv_add_partitions()
{
int32_t rseqid = 0;
@@ -17385,20 +19347,20 @@ void ThriftHiveMetastoreClient::recv_get_table_objects_by_name(std::vectorreadMessageEnd();
iprot_->getTransport()->readEnd();
}
- if (fname.compare("get_table_objects_by_name") != 0) {
+ if (fname.compare("add_partitions") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
}
- ThriftHiveMetastore_get_table_objects_by_name_presult result;
+ int32_t _return;
+ ThriftHiveMetastore_add_partitions_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
if (result.__isset.success) {
- // _return pointer has now been filled
- return;
+ return _return;
}
if (result.__isset.o1) {
throw result.o1;
@@ -17409,24 +19371,24 @@ void ThriftHiveMetastoreClient::recv_get_table_objects_by_name(std::vector