/tags/release-0.1-rc2/hive/external/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h

# · C Header · 1277 lines · 978 code · 294 blank · 5 comment · 286 complexity · 44eb0233db6932dc1aed4de7e0396a0b MD5 · raw file

  1. /**
  2. * Autogenerated by Thrift
  3. *
  4. * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. */
  6. #ifndef hive_metastore_TYPES_H
  7. #define hive_metastore_TYPES_H
  8. #include <Thrift.h>
  9. #include <TApplicationException.h>
  10. #include <protocol/TProtocol.h>
  11. #include <transport/TTransport.h>
  12. #include "fb303_types.h"
  13. namespace Apache { namespace Hadoop { namespace Hive {
  14. struct HiveObjectType {
  15. enum type {
  16. GLOBAL = 1,
  17. DATABASE = 2,
  18. TABLE = 3,
  19. PARTITION = 4,
  20. COLUMN = 5
  21. };
  22. };
  23. struct PrincipalType {
  24. enum type {
  25. USER = 1,
  26. ROLE = 2,
  27. GROUP = 3
  28. };
  29. };
  30. typedef struct _Version__isset {
  31. _Version__isset() : version(false), comments(false) {}
  32. bool version;
  33. bool comments;
  34. } _Version__isset;
  35. class Version {
  36. public:
  37. static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972";
  38. static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72};
  39. Version() : version(""), comments("") {
  40. }
  41. virtual ~Version() throw() {}
  42. std::string version;
  43. std::string comments;
  44. _Version__isset __isset;
  45. bool operator == (const Version & rhs) const
  46. {
  47. if (!(version == rhs.version))
  48. return false;
  49. if (!(comments == rhs.comments))
  50. return false;
  51. return true;
  52. }
  53. bool operator != (const Version &rhs) const {
  54. return !(*this == rhs);
  55. }
  56. bool operator < (const Version & ) const;
  57. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  58. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  59. };
  60. typedef struct _FieldSchema__isset {
  61. _FieldSchema__isset() : name(false), type(false), comment(false) {}
  62. bool name;
  63. bool type;
  64. bool comment;
  65. } _FieldSchema__isset;
  66. class FieldSchema {
  67. public:
  68. static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271";
  69. static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71};
  70. FieldSchema() : name(""), type(""), comment("") {
  71. }
  72. virtual ~FieldSchema() throw() {}
  73. std::string name;
  74. std::string type;
  75. std::string comment;
  76. _FieldSchema__isset __isset;
  77. bool operator == (const FieldSchema & rhs) const
  78. {
  79. if (!(name == rhs.name))
  80. return false;
  81. if (!(type == rhs.type))
  82. return false;
  83. if (!(comment == rhs.comment))
  84. return false;
  85. return true;
  86. }
  87. bool operator != (const FieldSchema &rhs) const {
  88. return !(*this == rhs);
  89. }
  90. bool operator < (const FieldSchema & ) const;
  91. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  92. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  93. };
  94. typedef struct _Type__isset {
  95. _Type__isset() : name(false), type1(false), type2(false), fields(false) {}
  96. bool name;
  97. bool type1;
  98. bool type2;
  99. bool fields;
  100. } _Type__isset;
  101. class Type {
  102. public:
  103. static const char* ascii_fingerprint; // = "20DF02DE523C27F7066C7BD4D9120842";
  104. static const uint8_t binary_fingerprint[16]; // = {0x20,0xDF,0x02,0xDE,0x52,0x3C,0x27,0xF7,0x06,0x6C,0x7B,0xD4,0xD9,0x12,0x08,0x42};
  105. Type() : name(""), type1(""), type2("") {
  106. }
  107. virtual ~Type() throw() {}
  108. std::string name;
  109. std::string type1;
  110. std::string type2;
  111. std::vector<FieldSchema> fields;
  112. _Type__isset __isset;
  113. bool operator == (const Type & rhs) const
  114. {
  115. if (!(name == rhs.name))
  116. return false;
  117. if (__isset.type1 != rhs.__isset.type1)
  118. return false;
  119. else if (__isset.type1 && !(type1 == rhs.type1))
  120. return false;
  121. if (__isset.type2 != rhs.__isset.type2)
  122. return false;
  123. else if (__isset.type2 && !(type2 == rhs.type2))
  124. return false;
  125. if (__isset.fields != rhs.__isset.fields)
  126. return false;
  127. else if (__isset.fields && !(fields == rhs.fields))
  128. return false;
  129. return true;
  130. }
  131. bool operator != (const Type &rhs) const {
  132. return !(*this == rhs);
  133. }
  134. bool operator < (const Type & ) const;
  135. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  136. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  137. };
  138. typedef struct _HiveObjectRef__isset {
  139. _HiveObjectRef__isset() : objectType(false), dbName(false), objectName(false), partValues(false), columnName(false) {}
  140. bool objectType;
  141. bool dbName;
  142. bool objectName;
  143. bool partValues;
  144. bool columnName;
  145. } _HiveObjectRef__isset;
  146. class HiveObjectRef {
  147. public:
  148. static const char* ascii_fingerprint; // = "205CD8311CF3AA9EC161BAEF8D7C933C";
  149. static const uint8_t binary_fingerprint[16]; // = {0x20,0x5C,0xD8,0x31,0x1C,0xF3,0xAA,0x9E,0xC1,0x61,0xBA,0xEF,0x8D,0x7C,0x93,0x3C};
  150. HiveObjectRef() : dbName(""), objectName(""), columnName("") {
  151. }
  152. virtual ~HiveObjectRef() throw() {}
  153. HiveObjectType::type objectType;
  154. std::string dbName;
  155. std::string objectName;
  156. std::vector<std::string> partValues;
  157. std::string columnName;
  158. _HiveObjectRef__isset __isset;
  159. bool operator == (const HiveObjectRef & rhs) const
  160. {
  161. if (!(objectType == rhs.objectType))
  162. return false;
  163. if (!(dbName == rhs.dbName))
  164. return false;
  165. if (!(objectName == rhs.objectName))
  166. return false;
  167. if (!(partValues == rhs.partValues))
  168. return false;
  169. if (!(columnName == rhs.columnName))
  170. return false;
  171. return true;
  172. }
  173. bool operator != (const HiveObjectRef &rhs) const {
  174. return !(*this == rhs);
  175. }
  176. bool operator < (const HiveObjectRef & ) const;
  177. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  178. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  179. };
  180. typedef struct _PrivilegeGrantInfo__isset {
  181. _PrivilegeGrantInfo__isset() : privilege(false), createTime(false), grantor(false), grantorType(false), grantOption(false) {}
  182. bool privilege;
  183. bool createTime;
  184. bool grantor;
  185. bool grantorType;
  186. bool grantOption;
  187. } _PrivilegeGrantInfo__isset;
  188. class PrivilegeGrantInfo {
  189. public:
  190. static const char* ascii_fingerprint; // = "A58923AF7294BE492D6F90E07E8CEE1F";
  191. static const uint8_t binary_fingerprint[16]; // = {0xA5,0x89,0x23,0xAF,0x72,0x94,0xBE,0x49,0x2D,0x6F,0x90,0xE0,0x7E,0x8C,0xEE,0x1F};
  192. PrivilegeGrantInfo() : privilege(""), createTime(0), grantor(""), grantOption(0) {
  193. }
  194. virtual ~PrivilegeGrantInfo() throw() {}
  195. std::string privilege;
  196. int32_t createTime;
  197. std::string grantor;
  198. PrincipalType::type grantorType;
  199. bool grantOption;
  200. _PrivilegeGrantInfo__isset __isset;
  201. bool operator == (const PrivilegeGrantInfo & rhs) const
  202. {
  203. if (!(privilege == rhs.privilege))
  204. return false;
  205. if (!(createTime == rhs.createTime))
  206. return false;
  207. if (!(grantor == rhs.grantor))
  208. return false;
  209. if (!(grantorType == rhs.grantorType))
  210. return false;
  211. if (!(grantOption == rhs.grantOption))
  212. return false;
  213. return true;
  214. }
  215. bool operator != (const PrivilegeGrantInfo &rhs) const {
  216. return !(*this == rhs);
  217. }
  218. bool operator < (const PrivilegeGrantInfo & ) const;
  219. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  220. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  221. };
  222. typedef struct _HiveObjectPrivilege__isset {
  223. _HiveObjectPrivilege__isset() : hiveObject(false), principalName(false), principalType(false), grantInfo(false) {}
  224. bool hiveObject;
  225. bool principalName;
  226. bool principalType;
  227. bool grantInfo;
  228. } _HiveObjectPrivilege__isset;
  229. class HiveObjectPrivilege {
  230. public:
  231. static const char* ascii_fingerprint; // = "83D71969B23BD853E29DBA9D43B29AF8";
  232. static const uint8_t binary_fingerprint[16]; // = {0x83,0xD7,0x19,0x69,0xB2,0x3B,0xD8,0x53,0xE2,0x9D,0xBA,0x9D,0x43,0xB2,0x9A,0xF8};
  233. HiveObjectPrivilege() : principalName("") {
  234. }
  235. virtual ~HiveObjectPrivilege() throw() {}
  236. HiveObjectRef hiveObject;
  237. std::string principalName;
  238. PrincipalType::type principalType;
  239. PrivilegeGrantInfo grantInfo;
  240. _HiveObjectPrivilege__isset __isset;
  241. bool operator == (const HiveObjectPrivilege & rhs) const
  242. {
  243. if (!(hiveObject == rhs.hiveObject))
  244. return false;
  245. if (!(principalName == rhs.principalName))
  246. return false;
  247. if (!(principalType == rhs.principalType))
  248. return false;
  249. if (!(grantInfo == rhs.grantInfo))
  250. return false;
  251. return true;
  252. }
  253. bool operator != (const HiveObjectPrivilege &rhs) const {
  254. return !(*this == rhs);
  255. }
  256. bool operator < (const HiveObjectPrivilege & ) const;
  257. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  258. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  259. };
  260. typedef struct _PrivilegeBag__isset {
  261. _PrivilegeBag__isset() : privileges(false) {}
  262. bool privileges;
  263. } _PrivilegeBag__isset;
  264. class PrivilegeBag {
  265. public:
  266. static const char* ascii_fingerprint; // = "BB89E4701B7B709B046A74C90B1147F2";
  267. static const uint8_t binary_fingerprint[16]; // = {0xBB,0x89,0xE4,0x70,0x1B,0x7B,0x70,0x9B,0x04,0x6A,0x74,0xC9,0x0B,0x11,0x47,0xF2};
  268. PrivilegeBag() {
  269. }
  270. virtual ~PrivilegeBag() throw() {}
  271. std::vector<HiveObjectPrivilege> privileges;
  272. _PrivilegeBag__isset __isset;
  273. bool operator == (const PrivilegeBag & rhs) const
  274. {
  275. if (!(privileges == rhs.privileges))
  276. return false;
  277. return true;
  278. }
  279. bool operator != (const PrivilegeBag &rhs) const {
  280. return !(*this == rhs);
  281. }
  282. bool operator < (const PrivilegeBag & ) const;
  283. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  284. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  285. };
  286. typedef struct _PrincipalPrivilegeSet__isset {
  287. _PrincipalPrivilegeSet__isset() : userPrivileges(false), groupPrivileges(false), rolePrivileges(false) {}
  288. bool userPrivileges;
  289. bool groupPrivileges;
  290. bool rolePrivileges;
  291. } _PrincipalPrivilegeSet__isset;
  292. class PrincipalPrivilegeSet {
  293. public:
  294. static const char* ascii_fingerprint; // = "08F75D2533906EA87BE34EA640856683";
  295. static const uint8_t binary_fingerprint[16]; // = {0x08,0xF7,0x5D,0x25,0x33,0x90,0x6E,0xA8,0x7B,0xE3,0x4E,0xA6,0x40,0x85,0x66,0x83};
  296. PrincipalPrivilegeSet() {
  297. }
  298. virtual ~PrincipalPrivilegeSet() throw() {}
  299. std::map<std::string, std::vector<PrivilegeGrantInfo> > userPrivileges;
  300. std::map<std::string, std::vector<PrivilegeGrantInfo> > groupPrivileges;
  301. std::map<std::string, std::vector<PrivilegeGrantInfo> > rolePrivileges;
  302. _PrincipalPrivilegeSet__isset __isset;
  303. bool operator == (const PrincipalPrivilegeSet & rhs) const
  304. {
  305. if (!(userPrivileges == rhs.userPrivileges))
  306. return false;
  307. if (!(groupPrivileges == rhs.groupPrivileges))
  308. return false;
  309. if (!(rolePrivileges == rhs.rolePrivileges))
  310. return false;
  311. return true;
  312. }
  313. bool operator != (const PrincipalPrivilegeSet &rhs) const {
  314. return !(*this == rhs);
  315. }
  316. bool operator < (const PrincipalPrivilegeSet & ) const;
  317. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  318. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  319. };
  320. typedef struct _Role__isset {
  321. _Role__isset() : roleName(false), createTime(false), ownerName(false) {}
  322. bool roleName;
  323. bool createTime;
  324. bool ownerName;
  325. } _Role__isset;
  326. class Role {
  327. public:
  328. static const char* ascii_fingerprint; // = "70563A0628F75DF9555F4D24690B1E26";
  329. static const uint8_t binary_fingerprint[16]; // = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26};
  330. Role() : roleName(""), createTime(0), ownerName("") {
  331. }
  332. virtual ~Role() throw() {}
  333. std::string roleName;
  334. int32_t createTime;
  335. std::string ownerName;
  336. _Role__isset __isset;
  337. bool operator == (const Role & rhs) const
  338. {
  339. if (!(roleName == rhs.roleName))
  340. return false;
  341. if (!(createTime == rhs.createTime))
  342. return false;
  343. if (!(ownerName == rhs.ownerName))
  344. return false;
  345. return true;
  346. }
  347. bool operator != (const Role &rhs) const {
  348. return !(*this == rhs);
  349. }
  350. bool operator < (const Role & ) const;
  351. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  352. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  353. };
  354. typedef struct _Database__isset {
  355. _Database__isset() : name(false), description(false), locationUri(false), parameters(false), privileges(false) {}
  356. bool name;
  357. bool description;
  358. bool locationUri;
  359. bool parameters;
  360. bool privileges;
  361. } _Database__isset;
  362. class Database {
  363. public:
  364. static const char* ascii_fingerprint; // = "213967572143E49C9F1A23F7A866E2F5";
  365. static const uint8_t binary_fingerprint[16]; // = {0x21,0x39,0x67,0x57,0x21,0x43,0xE4,0x9C,0x9F,0x1A,0x23,0xF7,0xA8,0x66,0xE2,0xF5};
  366. Database() : name(""), description(""), locationUri("") {
  367. }
  368. virtual ~Database() throw() {}
  369. std::string name;
  370. std::string description;
  371. std::string locationUri;
  372. std::map<std::string, std::string> parameters;
  373. PrincipalPrivilegeSet privileges;
  374. _Database__isset __isset;
  375. bool operator == (const Database & rhs) const
  376. {
  377. if (!(name == rhs.name))
  378. return false;
  379. if (!(description == rhs.description))
  380. return false;
  381. if (!(locationUri == rhs.locationUri))
  382. return false;
  383. if (!(parameters == rhs.parameters))
  384. return false;
  385. if (__isset.privileges != rhs.__isset.privileges)
  386. return false;
  387. else if (__isset.privileges && !(privileges == rhs.privileges))
  388. return false;
  389. return true;
  390. }
  391. bool operator != (const Database &rhs) const {
  392. return !(*this == rhs);
  393. }
  394. bool operator < (const Database & ) const;
  395. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  396. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  397. };
  398. typedef struct _SerDeInfo__isset {
  399. _SerDeInfo__isset() : name(false), serializationLib(false), parameters(false) {}
  400. bool name;
  401. bool serializationLib;
  402. bool parameters;
  403. } _SerDeInfo__isset;
  404. class SerDeInfo {
  405. public:
  406. static const char* ascii_fingerprint; // = "B1021C32A35A2AEFCD2F57A5424159A7";
  407. static const uint8_t binary_fingerprint[16]; // = {0xB1,0x02,0x1C,0x32,0xA3,0x5A,0x2A,0xEF,0xCD,0x2F,0x57,0xA5,0x42,0x41,0x59,0xA7};
  408. SerDeInfo() : name(""), serializationLib("") {
  409. }
  410. virtual ~SerDeInfo() throw() {}
  411. std::string name;
  412. std::string serializationLib;
  413. std::map<std::string, std::string> parameters;
  414. _SerDeInfo__isset __isset;
  415. bool operator == (const SerDeInfo & rhs) const
  416. {
  417. if (!(name == rhs.name))
  418. return false;
  419. if (!(serializationLib == rhs.serializationLib))
  420. return false;
  421. if (!(parameters == rhs.parameters))
  422. return false;
  423. return true;
  424. }
  425. bool operator != (const SerDeInfo &rhs) const {
  426. return !(*this == rhs);
  427. }
  428. bool operator < (const SerDeInfo & ) const;
  429. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  430. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  431. };
  432. typedef struct _Order__isset {
  433. _Order__isset() : col(false), order(false) {}
  434. bool col;
  435. bool order;
  436. } _Order__isset;
  437. class Order {
  438. public:
  439. static const char* ascii_fingerprint; // = "EEBC915CE44901401D881E6091423036";
  440. static const uint8_t binary_fingerprint[16]; // = {0xEE,0xBC,0x91,0x5C,0xE4,0x49,0x01,0x40,0x1D,0x88,0x1E,0x60,0x91,0x42,0x30,0x36};
  441. Order() : col(""), order(0) {
  442. }
  443. virtual ~Order() throw() {}
  444. std::string col;
  445. int32_t order;
  446. _Order__isset __isset;
  447. bool operator == (const Order & rhs) const
  448. {
  449. if (!(col == rhs.col))
  450. return false;
  451. if (!(order == rhs.order))
  452. return false;
  453. return true;
  454. }
  455. bool operator != (const Order &rhs) const {
  456. return !(*this == rhs);
  457. }
  458. bool operator < (const Order & ) const;
  459. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  460. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  461. };
  462. typedef struct _StorageDescriptor__isset {
  463. _StorageDescriptor__isset() : cols(false), location(false), inputFormat(false), outputFormat(false), compressed(false), numBuckets(false), serdeInfo(false), bucketCols(false), sortCols(false), parameters(false) {}
  464. bool cols;
  465. bool location;
  466. bool inputFormat;
  467. bool outputFormat;
  468. bool compressed;
  469. bool numBuckets;
  470. bool serdeInfo;
  471. bool bucketCols;
  472. bool sortCols;
  473. bool parameters;
  474. } _StorageDescriptor__isset;
  475. class StorageDescriptor {
  476. public:
  477. static const char* ascii_fingerprint; // = "11E4CE18F895C13812C853DFDCD1293F";
  478. static const uint8_t binary_fingerprint[16]; // = {0x11,0xE4,0xCE,0x18,0xF8,0x95,0xC1,0x38,0x12,0xC8,0x53,0xDF,0xDC,0xD1,0x29,0x3F};
  479. StorageDescriptor() : location(""), inputFormat(""), outputFormat(""), compressed(0), numBuckets(0) {
  480. }
  481. virtual ~StorageDescriptor() throw() {}
  482. std::vector<FieldSchema> cols;
  483. std::string location;
  484. std::string inputFormat;
  485. std::string outputFormat;
  486. bool compressed;
  487. int32_t numBuckets;
  488. SerDeInfo serdeInfo;
  489. std::vector<std::string> bucketCols;
  490. std::vector<Order> sortCols;
  491. std::map<std::string, std::string> parameters;
  492. _StorageDescriptor__isset __isset;
  493. bool operator == (const StorageDescriptor & rhs) const
  494. {
  495. if (!(cols == rhs.cols))
  496. return false;
  497. if (!(location == rhs.location))
  498. return false;
  499. if (!(inputFormat == rhs.inputFormat))
  500. return false;
  501. if (!(outputFormat == rhs.outputFormat))
  502. return false;
  503. if (!(compressed == rhs.compressed))
  504. return false;
  505. if (!(numBuckets == rhs.numBuckets))
  506. return false;
  507. if (!(serdeInfo == rhs.serdeInfo))
  508. return false;
  509. if (!(bucketCols == rhs.bucketCols))
  510. return false;
  511. if (!(sortCols == rhs.sortCols))
  512. return false;
  513. if (!(parameters == rhs.parameters))
  514. return false;
  515. return true;
  516. }
  517. bool operator != (const StorageDescriptor &rhs) const {
  518. return !(*this == rhs);
  519. }
  520. bool operator < (const StorageDescriptor & ) const;
  521. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  522. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  523. };
  524. typedef struct _Table__isset {
  525. _Table__isset() : tableName(false), dbName(false), owner(false), createTime(false), lastAccessTime(false), retention(false), sd(false), partitionKeys(false), parameters(false), viewOriginalText(false), viewExpandedText(false), tableType(false), privileges(false) {}
  526. bool tableName;
  527. bool dbName;
  528. bool owner;
  529. bool createTime;
  530. bool lastAccessTime;
  531. bool retention;
  532. bool sd;
  533. bool partitionKeys;
  534. bool parameters;
  535. bool viewOriginalText;
  536. bool viewExpandedText;
  537. bool tableType;
  538. bool privileges;
  539. } _Table__isset;
  540. class Table {
  541. public:
  542. static const char* ascii_fingerprint; // = "26BE788C09746068A2616712C9262900";
  543. static const uint8_t binary_fingerprint[16]; // = {0x26,0xBE,0x78,0x8C,0x09,0x74,0x60,0x68,0xA2,0x61,0x67,0x12,0xC9,0x26,0x29,0x00};
  544. Table() : tableName(""), dbName(""), owner(""), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(""), viewExpandedText(""), tableType("") {
  545. }
  546. virtual ~Table() throw() {}
  547. std::string tableName;
  548. std::string dbName;
  549. std::string owner;
  550. int32_t createTime;
  551. int32_t lastAccessTime;
  552. int32_t retention;
  553. StorageDescriptor sd;
  554. std::vector<FieldSchema> partitionKeys;
  555. std::map<std::string, std::string> parameters;
  556. std::string viewOriginalText;
  557. std::string viewExpandedText;
  558. std::string tableType;
  559. PrincipalPrivilegeSet privileges;
  560. _Table__isset __isset;
  561. bool operator == (const Table & rhs) const
  562. {
  563. if (!(tableName == rhs.tableName))
  564. return false;
  565. if (!(dbName == rhs.dbName))
  566. return false;
  567. if (!(owner == rhs.owner))
  568. return false;
  569. if (!(createTime == rhs.createTime))
  570. return false;
  571. if (!(lastAccessTime == rhs.lastAccessTime))
  572. return false;
  573. if (!(retention == rhs.retention))
  574. return false;
  575. if (!(sd == rhs.sd))
  576. return false;
  577. if (!(partitionKeys == rhs.partitionKeys))
  578. return false;
  579. if (!(parameters == rhs.parameters))
  580. return false;
  581. if (!(viewOriginalText == rhs.viewOriginalText))
  582. return false;
  583. if (!(viewExpandedText == rhs.viewExpandedText))
  584. return false;
  585. if (!(tableType == rhs.tableType))
  586. return false;
  587. if (__isset.privileges != rhs.__isset.privileges)
  588. return false;
  589. else if (__isset.privileges && !(privileges == rhs.privileges))
  590. return false;
  591. return true;
  592. }
  593. bool operator != (const Table &rhs) const {
  594. return !(*this == rhs);
  595. }
  596. bool operator < (const Table & ) const;
  597. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  598. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  599. };
  600. typedef struct _Partition__isset {
  601. _Partition__isset() : values(false), dbName(false), tableName(false), createTime(false), lastAccessTime(false), sd(false), parameters(false), privileges(false) {}
  602. bool values;
  603. bool dbName;
  604. bool tableName;
  605. bool createTime;
  606. bool lastAccessTime;
  607. bool sd;
  608. bool parameters;
  609. bool privileges;
  610. } _Partition__isset;
  611. class Partition {
  612. public:
  613. static const char* ascii_fingerprint; // = "F480E1D1B8AEBDDB37F8E180C0F07395";
  614. static const uint8_t binary_fingerprint[16]; // = {0xF4,0x80,0xE1,0xD1,0xB8,0xAE,0xBD,0xDB,0x37,0xF8,0xE1,0x80,0xC0,0xF0,0x73,0x95};
  615. Partition() : dbName(""), tableName(""), createTime(0), lastAccessTime(0) {
  616. }
  617. virtual ~Partition() throw() {}
  618. std::vector<std::string> values;
  619. std::string dbName;
  620. std::string tableName;
  621. int32_t createTime;
  622. int32_t lastAccessTime;
  623. StorageDescriptor sd;
  624. std::map<std::string, std::string> parameters;
  625. PrincipalPrivilegeSet privileges;
  626. _Partition__isset __isset;
  627. bool operator == (const Partition & rhs) const
  628. {
  629. if (!(values == rhs.values))
  630. return false;
  631. if (!(dbName == rhs.dbName))
  632. return false;
  633. if (!(tableName == rhs.tableName))
  634. return false;
  635. if (!(createTime == rhs.createTime))
  636. return false;
  637. if (!(lastAccessTime == rhs.lastAccessTime))
  638. return false;
  639. if (!(sd == rhs.sd))
  640. return false;
  641. if (!(parameters == rhs.parameters))
  642. return false;
  643. if (__isset.privileges != rhs.__isset.privileges)
  644. return false;
  645. else if (__isset.privileges && !(privileges == rhs.privileges))
  646. return false;
  647. return true;
  648. }
  649. bool operator != (const Partition &rhs) const {
  650. return !(*this == rhs);
  651. }
  652. bool operator < (const Partition & ) const;
  653. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  654. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  655. };
  656. typedef struct _Index__isset {
  657. _Index__isset() : indexName(false), indexHandlerClass(false), dbName(false), origTableName(false), createTime(false), lastAccessTime(false), indexTableName(false), sd(false), parameters(false), deferredRebuild(false) {}
  658. bool indexName;
  659. bool indexHandlerClass;
  660. bool dbName;
  661. bool origTableName;
  662. bool createTime;
  663. bool lastAccessTime;
  664. bool indexTableName;
  665. bool sd;
  666. bool parameters;
  667. bool deferredRebuild;
  668. } _Index__isset;
  669. class Index {
  670. public:
  671. static const char* ascii_fingerprint; // = "5FEE4F7E28935B644F207D74459F6A29";
  672. static const uint8_t binary_fingerprint[16]; // = {0x5F,0xEE,0x4F,0x7E,0x28,0x93,0x5B,0x64,0x4F,0x20,0x7D,0x74,0x45,0x9F,0x6A,0x29};
  673. Index() : indexName(""), indexHandlerClass(""), dbName(""), origTableName(""), createTime(0), lastAccessTime(0), indexTableName(""), deferredRebuild(0) {
  674. }
  675. virtual ~Index() throw() {}
  676. std::string indexName;
  677. std::string indexHandlerClass;
  678. std::string dbName;
  679. std::string origTableName;
  680. int32_t createTime;
  681. int32_t lastAccessTime;
  682. std::string indexTableName;
  683. StorageDescriptor sd;
  684. std::map<std::string, std::string> parameters;
  685. bool deferredRebuild;
  686. _Index__isset __isset;
  687. bool operator == (const Index & rhs) const
  688. {
  689. if (!(indexName == rhs.indexName))
  690. return false;
  691. if (!(indexHandlerClass == rhs.indexHandlerClass))
  692. return false;
  693. if (!(dbName == rhs.dbName))
  694. return false;
  695. if (!(origTableName == rhs.origTableName))
  696. return false;
  697. if (!(createTime == rhs.createTime))
  698. return false;
  699. if (!(lastAccessTime == rhs.lastAccessTime))
  700. return false;
  701. if (!(indexTableName == rhs.indexTableName))
  702. return false;
  703. if (!(sd == rhs.sd))
  704. return false;
  705. if (!(parameters == rhs.parameters))
  706. return false;
  707. if (!(deferredRebuild == rhs.deferredRebuild))
  708. return false;
  709. return true;
  710. }
  711. bool operator != (const Index &rhs) const {
  712. return !(*this == rhs);
  713. }
  714. bool operator < (const Index & ) const;
  715. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  716. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  717. };
  718. typedef struct _Schema__isset {
  719. _Schema__isset() : fieldSchemas(false), properties(false) {}
  720. bool fieldSchemas;
  721. bool properties;
  722. } _Schema__isset;
  723. class Schema {
  724. public:
  725. static const char* ascii_fingerprint; // = "5CFEE46C975F4E2368D905109B8E3B5B";
  726. static const uint8_t binary_fingerprint[16]; // = {0x5C,0xFE,0xE4,0x6C,0x97,0x5F,0x4E,0x23,0x68,0xD9,0x05,0x10,0x9B,0x8E,0x3B,0x5B};
  727. Schema() {
  728. }
  729. virtual ~Schema() throw() {}
  730. std::vector<FieldSchema> fieldSchemas;
  731. std::map<std::string, std::string> properties;
  732. _Schema__isset __isset;
  733. bool operator == (const Schema & rhs) const
  734. {
  735. if (!(fieldSchemas == rhs.fieldSchemas))
  736. return false;
  737. if (!(properties == rhs.properties))
  738. return false;
  739. return true;
  740. }
  741. bool operator != (const Schema &rhs) const {
  742. return !(*this == rhs);
  743. }
  744. bool operator < (const Schema & ) const;
  745. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  746. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  747. };
  748. typedef struct _MetaException__isset {
  749. _MetaException__isset() : message(false) {}
  750. bool message;
  751. } _MetaException__isset;
  752. class MetaException : public ::apache::thrift::TException {
  753. public:
  754. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  755. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  756. MetaException() : message("") {
  757. }
  758. virtual ~MetaException() throw() {}
  759. std::string message;
  760. _MetaException__isset __isset;
  761. bool operator == (const MetaException & rhs) const
  762. {
  763. if (!(message == rhs.message))
  764. return false;
  765. return true;
  766. }
  767. bool operator != (const MetaException &rhs) const {
  768. return !(*this == rhs);
  769. }
  770. bool operator < (const MetaException & ) const;
  771. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  772. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  773. };
  774. typedef struct _UnknownTableException__isset {
  775. _UnknownTableException__isset() : message(false) {}
  776. bool message;
  777. } _UnknownTableException__isset;
  778. class UnknownTableException : public ::apache::thrift::TException {
  779. public:
  780. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  781. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  782. UnknownTableException() : message("") {
  783. }
  784. virtual ~UnknownTableException() throw() {}
  785. std::string message;
  786. _UnknownTableException__isset __isset;
  787. bool operator == (const UnknownTableException & rhs) const
  788. {
  789. if (!(message == rhs.message))
  790. return false;
  791. return true;
  792. }
  793. bool operator != (const UnknownTableException &rhs) const {
  794. return !(*this == rhs);
  795. }
  796. bool operator < (const UnknownTableException & ) const;
  797. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  798. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  799. };
  800. typedef struct _UnknownDBException__isset {
  801. _UnknownDBException__isset() : message(false) {}
  802. bool message;
  803. } _UnknownDBException__isset;
  804. class UnknownDBException : public ::apache::thrift::TException {
  805. public:
  806. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  807. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  808. UnknownDBException() : message("") {
  809. }
  810. virtual ~UnknownDBException() throw() {}
  811. std::string message;
  812. _UnknownDBException__isset __isset;
  813. bool operator == (const UnknownDBException & rhs) const
  814. {
  815. if (!(message == rhs.message))
  816. return false;
  817. return true;
  818. }
  819. bool operator != (const UnknownDBException &rhs) const {
  820. return !(*this == rhs);
  821. }
  822. bool operator < (const UnknownDBException & ) const;
  823. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  824. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  825. };
  826. typedef struct _AlreadyExistsException__isset {
  827. _AlreadyExistsException__isset() : message(false) {}
  828. bool message;
  829. } _AlreadyExistsException__isset;
  830. class AlreadyExistsException : public ::apache::thrift::TException {
  831. public:
  832. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  833. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  834. AlreadyExistsException() : message("") {
  835. }
  836. virtual ~AlreadyExistsException() throw() {}
  837. std::string message;
  838. _AlreadyExistsException__isset __isset;
  839. bool operator == (const AlreadyExistsException & rhs) const
  840. {
  841. if (!(message == rhs.message))
  842. return false;
  843. return true;
  844. }
  845. bool operator != (const AlreadyExistsException &rhs) const {
  846. return !(*this == rhs);
  847. }
  848. bool operator < (const AlreadyExistsException & ) const;
  849. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  850. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  851. };
  852. typedef struct _InvalidObjectException__isset {
  853. _InvalidObjectException__isset() : message(false) {}
  854. bool message;
  855. } _InvalidObjectException__isset;
  856. class InvalidObjectException : public ::apache::thrift::TException {
  857. public:
  858. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  859. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  860. InvalidObjectException() : message("") {
  861. }
  862. virtual ~InvalidObjectException() throw() {}
  863. std::string message;
  864. _InvalidObjectException__isset __isset;
  865. bool operator == (const InvalidObjectException & rhs) const
  866. {
  867. if (!(message == rhs.message))
  868. return false;
  869. return true;
  870. }
  871. bool operator != (const InvalidObjectException &rhs) const {
  872. return !(*this == rhs);
  873. }
  874. bool operator < (const InvalidObjectException & ) const;
  875. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  876. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  877. };
  878. typedef struct _NoSuchObjectException__isset {
  879. _NoSuchObjectException__isset() : message(false) {}
  880. bool message;
  881. } _NoSuchObjectException__isset;
  882. class NoSuchObjectException : public ::apache::thrift::TException {
  883. public:
  884. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  885. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  886. NoSuchObjectException() : message("") {
  887. }
  888. virtual ~NoSuchObjectException() throw() {}
  889. std::string message;
  890. _NoSuchObjectException__isset __isset;
  891. bool operator == (const NoSuchObjectException & rhs) const
  892. {
  893. if (!(message == rhs.message))
  894. return false;
  895. return true;
  896. }
  897. bool operator != (const NoSuchObjectException &rhs) const {
  898. return !(*this == rhs);
  899. }
  900. bool operator < (const NoSuchObjectException & ) const;
  901. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  902. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  903. };
  904. typedef struct _IndexAlreadyExistsException__isset {
  905. _IndexAlreadyExistsException__isset() : message(false) {}
  906. bool message;
  907. } _IndexAlreadyExistsException__isset;
  908. class IndexAlreadyExistsException : public ::apache::thrift::TException {
  909. public:
  910. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  911. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  912. IndexAlreadyExistsException() : message("") {
  913. }
  914. virtual ~IndexAlreadyExistsException() throw() {}
  915. std::string message;
  916. _IndexAlreadyExistsException__isset __isset;
  917. bool operator == (const IndexAlreadyExistsException & rhs) const
  918. {
  919. if (!(message == rhs.message))
  920. return false;
  921. return true;
  922. }
  923. bool operator != (const IndexAlreadyExistsException &rhs) const {
  924. return !(*this == rhs);
  925. }
  926. bool operator < (const IndexAlreadyExistsException & ) const;
  927. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  928. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  929. };
  930. typedef struct _InvalidOperationException__isset {
  931. _InvalidOperationException__isset() : message(false) {}
  932. bool message;
  933. } _InvalidOperationException__isset;
  934. class InvalidOperationException : public ::apache::thrift::TException {
  935. public:
  936. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  937. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  938. InvalidOperationException() : message("") {
  939. }
  940. virtual ~InvalidOperationException() throw() {}
  941. std::string message;
  942. _InvalidOperationException__isset __isset;
  943. bool operator == (const InvalidOperationException & rhs) const
  944. {
  945. if (!(message == rhs.message))
  946. return false;
  947. return true;
  948. }
  949. bool operator != (const InvalidOperationException &rhs) const {
  950. return !(*this == rhs);
  951. }
  952. bool operator < (const InvalidOperationException & ) const;
  953. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  954. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  955. };
  956. typedef struct _ConfigValSecurityException__isset {
  957. _ConfigValSecurityException__isset() : message(false) {}
  958. bool message;
  959. } _ConfigValSecurityException__isset;
  960. class ConfigValSecurityException : public ::apache::thrift::TException {
  961. public:
  962. static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
  963. static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
  964. ConfigValSecurityException() : message("") {
  965. }
  966. virtual ~ConfigValSecurityException() throw() {}
  967. std::string message;
  968. _ConfigValSecurityException__isset __isset;
  969. bool operator == (const ConfigValSecurityException & rhs) const
  970. {
  971. if (!(message == rhs.message))
  972. return false;
  973. return true;
  974. }
  975. bool operator != (const ConfigValSecurityException &rhs) const {
  976. return !(*this == rhs);
  977. }
  978. bool operator < (const ConfigValSecurityException & ) const;
  979. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  980. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  981. };
  982. }}} // namespace
  983. #endif