You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/03/12 10:50:33 UTC
svn commit: r1576675 [5/13] - in /hive/trunk: metastore/if/
metastore/src/gen/thrift/gen-cpp/
metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/
metastore/src/gen/thrift/gen-php/metastore/
metastore/src/gen/thrift/gen-py/hive_m...
Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h Wed Mar 12 09:50:31 2014
@@ -734,6 +734,183 @@ class Role {
void swap(Role &a, Role &b);
+typedef struct _RolePrincipalGrant__isset {
+ _RolePrincipalGrant__isset() : roleName(false), principalName(false), principalType(false), grantOption(false), grantTime(false), grantorName(false), grantorPrincipalType(false) {}
+ bool roleName;
+ bool principalName;
+ bool principalType;
+ bool grantOption;
+ bool grantTime;
+ bool grantorName;
+ bool grantorPrincipalType;
+} _RolePrincipalGrant__isset;
+
+class RolePrincipalGrant {
+ public:
+
+ static const char* ascii_fingerprint; // = "899BA3F6214DD1B79D27206BA857C772";
+ static const uint8_t binary_fingerprint[16]; // = {0x89,0x9B,0xA3,0xF6,0x21,0x4D,0xD1,0xB7,0x9D,0x27,0x20,0x6B,0xA8,0x57,0xC7,0x72};
+
+ RolePrincipalGrant() : roleName(), principalName(), principalType((PrincipalType::type)0), grantOption(0), grantTime(0), grantorName(), grantorPrincipalType((PrincipalType::type)0) {
+ }
+
+ virtual ~RolePrincipalGrant() throw() {}
+
+ std::string roleName;
+ std::string principalName;
+ PrincipalType::type principalType;
+ bool grantOption;
+ int32_t grantTime;
+ std::string grantorName;
+ PrincipalType::type grantorPrincipalType;
+
+ _RolePrincipalGrant__isset __isset;
+
+ void __set_roleName(const std::string& val) {
+ roleName = val;
+ }
+
+ void __set_principalName(const std::string& val) {
+ principalName = val;
+ }
+
+ void __set_principalType(const PrincipalType::type val) {
+ principalType = val;
+ }
+
+ void __set_grantOption(const bool val) {
+ grantOption = val;
+ }
+
+ void __set_grantTime(const int32_t val) {
+ grantTime = val;
+ }
+
+ void __set_grantorName(const std::string& val) {
+ grantorName = val;
+ }
+
+ void __set_grantorPrincipalType(const PrincipalType::type val) {
+ grantorPrincipalType = val;
+ }
+
+ bool operator == (const RolePrincipalGrant & rhs) const
+ {
+ if (!(roleName == rhs.roleName))
+ return false;
+ if (!(principalName == rhs.principalName))
+ return false;
+ if (!(principalType == rhs.principalType))
+ return false;
+ if (!(grantOption == rhs.grantOption))
+ return false;
+ if (!(grantTime == rhs.grantTime))
+ return false;
+ if (!(grantorName == rhs.grantorName))
+ return false;
+ if (!(grantorPrincipalType == rhs.grantorPrincipalType))
+ return false;
+ return true;
+ }
+ bool operator != (const RolePrincipalGrant &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const RolePrincipalGrant & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(RolePrincipalGrant &a, RolePrincipalGrant &b);
+
+typedef struct _GetPrincipalsInRoleRequest__isset {
+ _GetPrincipalsInRoleRequest__isset() : roleName(false) {}
+ bool roleName;
+} _GetPrincipalsInRoleRequest__isset;
+
+class GetPrincipalsInRoleRequest {
+ public:
+
+ static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
+ static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
+
+ GetPrincipalsInRoleRequest() : roleName() {
+ }
+
+ virtual ~GetPrincipalsInRoleRequest() throw() {}
+
+ std::string roleName;
+
+ _GetPrincipalsInRoleRequest__isset __isset;
+
+ void __set_roleName(const std::string& val) {
+ roleName = val;
+ }
+
+ bool operator == (const GetPrincipalsInRoleRequest & rhs) const
+ {
+ if (!(roleName == rhs.roleName))
+ return false;
+ return true;
+ }
+ bool operator != (const GetPrincipalsInRoleRequest &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const GetPrincipalsInRoleRequest & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b);
+
+typedef struct _GetPrincipalsInRoleResponse__isset {
+ _GetPrincipalsInRoleResponse__isset() : principalGrants(false) {}
+ bool principalGrants;
+} _GetPrincipalsInRoleResponse__isset;
+
+class GetPrincipalsInRoleResponse {
+ public:
+
+ static const char* ascii_fingerprint; // = "5926B4B3541A62E17663820C7E3BE690";
+ static const uint8_t binary_fingerprint[16]; // = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90};
+
+ GetPrincipalsInRoleResponse() {
+ }
+
+ virtual ~GetPrincipalsInRoleResponse() throw() {}
+
+ std::vector<RolePrincipalGrant> principalGrants;
+
+ _GetPrincipalsInRoleResponse__isset __isset;
+
+ void __set_principalGrants(const std::vector<RolePrincipalGrant> & val) {
+ principalGrants = val;
+ }
+
+ bool operator == (const GetPrincipalsInRoleResponse & rhs) const
+ {
+ if (!(principalGrants == rhs.principalGrants))
+ return false;
+ return true;
+ }
+ bool operator != (const GetPrincipalsInRoleResponse &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const GetPrincipalsInRoleResponse & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b);
+
typedef struct _Database__isset {
_Database__isset() : name(false), description(false), locationUri(false), parameters(false), privileges(false), ownerName(false), ownerType(false) {}
bool name;
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java Wed Mar 12 09:50:31 2014
@@ -700,14 +700,14 @@ public class AddPartitionsRequest implem
case 3: // PARTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list322 = iprot.readListBegin();
- struct.parts = new ArrayList<Partition>(_list322.size);
- for (int _i323 = 0; _i323 < _list322.size; ++_i323)
+ org.apache.thrift.protocol.TList _list330 = iprot.readListBegin();
+ struct.parts = new ArrayList<Partition>(_list330.size);
+ for (int _i331 = 0; _i331 < _list330.size; ++_i331)
{
- Partition _elem324; // required
- _elem324 = new Partition();
- _elem324.read(iprot);
- struct.parts.add(_elem324);
+ Partition _elem332; // optional
+ _elem332 = new Partition();
+ _elem332.read(iprot);
+ struct.parts.add(_elem332);
}
iprot.readListEnd();
}
@@ -759,9 +759,9 @@ public class AddPartitionsRequest implem
oprot.writeFieldBegin(PARTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.parts.size()));
- for (Partition _iter325 : struct.parts)
+ for (Partition _iter333 : struct.parts)
{
- _iter325.write(oprot);
+ _iter333.write(oprot);
}
oprot.writeListEnd();
}
@@ -796,9 +796,9 @@ public class AddPartitionsRequest implem
oprot.writeString(struct.tblName);
{
oprot.writeI32(struct.parts.size());
- for (Partition _iter326 : struct.parts)
+ for (Partition _iter334 : struct.parts)
{
- _iter326.write(oprot);
+ _iter334.write(oprot);
}
}
oprot.writeBool(struct.ifNotExists);
@@ -820,14 +820,14 @@ public class AddPartitionsRequest implem
struct.tblName = iprot.readString();
struct.setTblNameIsSet(true);
{
- org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.parts = new ArrayList<Partition>(_list327.size);
- for (int _i328 = 0; _i328 < _list327.size; ++_i328)
+ org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.parts = new ArrayList<Partition>(_list335.size);
+ for (int _i336 = 0; _i336 < _list335.size; ++_i336)
{
- Partition _elem329; // required
- _elem329 = new Partition();
- _elem329.read(iprot);
- struct.parts.add(_elem329);
+ Partition _elem337; // optional
+ _elem337 = new Partition();
+ _elem337.read(iprot);
+ struct.parts.add(_elem337);
}
}
struct.setPartsIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java Wed Mar 12 09:50:31 2014
@@ -342,14 +342,14 @@ public class AddPartitionsResult impleme
case 1: // PARTITIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list314 = iprot.readListBegin();
- struct.partitions = new ArrayList<Partition>(_list314.size);
- for (int _i315 = 0; _i315 < _list314.size; ++_i315)
+ org.apache.thrift.protocol.TList _list322 = iprot.readListBegin();
+ struct.partitions = new ArrayList<Partition>(_list322.size);
+ for (int _i323 = 0; _i323 < _list322.size; ++_i323)
{
- Partition _elem316; // required
- _elem316 = new Partition();
- _elem316.read(iprot);
- struct.partitions.add(_elem316);
+ Partition _elem324; // optional
+ _elem324 = new Partition();
+ _elem324.read(iprot);
+ struct.partitions.add(_elem324);
}
iprot.readListEnd();
}
@@ -376,9 +376,9 @@ public class AddPartitionsResult impleme
oprot.writeFieldBegin(PARTITIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size()));
- for (Partition _iter317 : struct.partitions)
+ for (Partition _iter325 : struct.partitions)
{
- _iter317.write(oprot);
+ _iter325.write(oprot);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class AddPartitionsResult impleme
if (struct.isSetPartitions()) {
{
oprot.writeI32(struct.partitions.size());
- for (Partition _iter318 : struct.partitions)
+ for (Partition _iter326 : struct.partitions)
{
- _iter318.write(oprot);
+ _iter326.write(oprot);
}
}
}
@@ -424,14 +424,14 @@ public class AddPartitionsResult impleme
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.partitions = new ArrayList<Partition>(_list319.size);
- for (int _i320 = 0; _i320 < _list319.size; ++_i320)
+ org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.partitions = new ArrayList<Partition>(_list327.size);
+ for (int _i328 = 0; _i328 < _list327.size; ++_i328)
{
- Partition _elem321; // required
- _elem321 = new Partition();
- _elem321.read(iprot);
- struct.partitions.add(_elem321);
+ Partition _elem329; // optional
+ _elem329 = new Partition();
+ _elem329.read(iprot);
+ struct.partitions.add(_elem329);
}
}
struct.setPartitionsIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java Wed Mar 12 09:50:31 2014
@@ -447,14 +447,14 @@ public class ColumnStatistics implements
case 2: // STATS_OBJ
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list220 = iprot.readListBegin();
- struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list220.size);
- for (int _i221 = 0; _i221 < _list220.size; ++_i221)
+ org.apache.thrift.protocol.TList _list228 = iprot.readListBegin();
+ struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list228.size);
+ for (int _i229 = 0; _i229 < _list228.size; ++_i229)
{
- ColumnStatisticsObj _elem222; // required
- _elem222 = new ColumnStatisticsObj();
- _elem222.read(iprot);
- struct.statsObj.add(_elem222);
+ ColumnStatisticsObj _elem230; // optional
+ _elem230 = new ColumnStatisticsObj();
+ _elem230.read(iprot);
+ struct.statsObj.add(_elem230);
}
iprot.readListEnd();
}
@@ -485,9 +485,9 @@ public class ColumnStatistics implements
oprot.writeFieldBegin(STATS_OBJ_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.statsObj.size()));
- for (ColumnStatisticsObj _iter223 : struct.statsObj)
+ for (ColumnStatisticsObj _iter231 : struct.statsObj)
{
- _iter223.write(oprot);
+ _iter231.write(oprot);
}
oprot.writeListEnd();
}
@@ -513,9 +513,9 @@ public class ColumnStatistics implements
struct.statsDesc.write(oprot);
{
oprot.writeI32(struct.statsObj.size());
- for (ColumnStatisticsObj _iter224 : struct.statsObj)
+ for (ColumnStatisticsObj _iter232 : struct.statsObj)
{
- _iter224.write(oprot);
+ _iter232.write(oprot);
}
}
}
@@ -527,14 +527,14 @@ public class ColumnStatistics implements
struct.statsDesc.read(iprot);
struct.setStatsDescIsSet(true);
{
- org.apache.thrift.protocol.TList _list225 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list225.size);
- for (int _i226 = 0; _i226 < _list225.size; ++_i226)
+ org.apache.thrift.protocol.TList _list233 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list233.size);
+ for (int _i234 = 0; _i234 < _list233.size; ++_i234)
{
- ColumnStatisticsObj _elem227; // required
- _elem227 = new ColumnStatisticsObj();
- _elem227.read(iprot);
- struct.statsObj.add(_elem227);
+ ColumnStatisticsObj _elem235; // optional
+ _elem235 = new ColumnStatisticsObj();
+ _elem235.read(iprot);
+ struct.statsObj.add(_elem235);
}
}
struct.setStatsObjIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java Wed Mar 12 09:50:31 2014
@@ -877,15 +877,15 @@ public class Database implements org.apa
case 4: // PARAMETERS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin();
- struct.parameters = new HashMap<String,String>(2*_map78.size);
- for (int _i79 = 0; _i79 < _map78.size; ++_i79)
+ org.apache.thrift.protocol.TMap _map86 = iprot.readMapBegin();
+ struct.parameters = new HashMap<String,String>(2*_map86.size);
+ for (int _i87 = 0; _i87 < _map86.size; ++_i87)
{
- String _key80; // required
- String _val81; // required
- _key80 = iprot.readString();
- _val81 = iprot.readString();
- struct.parameters.put(_key80, _val81);
+ String _key88; // required
+ String _val89; // required
+ _key88 = iprot.readString();
+ _val89 = iprot.readString();
+ struct.parameters.put(_key88, _val89);
}
iprot.readMapEnd();
}
@@ -951,10 +951,10 @@ public class Database implements org.apa
oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size()));
- for (Map.Entry<String, String> _iter82 : struct.parameters.entrySet())
+ for (Map.Entry<String, String> _iter90 : struct.parameters.entrySet())
{
- oprot.writeString(_iter82.getKey());
- oprot.writeString(_iter82.getValue());
+ oprot.writeString(_iter90.getKey());
+ oprot.writeString(_iter90.getValue());
}
oprot.writeMapEnd();
}
@@ -1033,10 +1033,10 @@ public class Database implements org.apa
if (struct.isSetParameters()) {
{
oprot.writeI32(struct.parameters.size());
- for (Map.Entry<String, String> _iter83 : struct.parameters.entrySet())
+ for (Map.Entry<String, String> _iter91 : struct.parameters.entrySet())
{
- oprot.writeString(_iter83.getKey());
- oprot.writeString(_iter83.getValue());
+ oprot.writeString(_iter91.getKey());
+ oprot.writeString(_iter91.getValue());
}
}
}
@@ -1069,15 +1069,15 @@ public class Database implements org.apa
}
if (incoming.get(3)) {
{
- org.apache.thrift.protocol.TMap _map84 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.parameters = new HashMap<String,String>(2*_map84.size);
- for (int _i85 = 0; _i85 < _map84.size; ++_i85)
+ org.apache.thrift.protocol.TMap _map92 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.parameters = new HashMap<String,String>(2*_map92.size);
+ for (int _i93 = 0; _i93 < _map92.size; ++_i93)
{
- String _key86; // required
- String _val87; // required
- _key86 = iprot.readString();
- _val87 = iprot.readString();
- struct.parameters.put(_key86, _val87);
+ String _key94; // required
+ String _val95; // required
+ _key94 = iprot.readString();
+ _val95 = iprot.readString();
+ struct.parameters.put(_key94, _val95);
}
}
struct.setParametersIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java Wed Mar 12 09:50:31 2014
@@ -342,14 +342,14 @@ public class DropPartitionsResult implem
case 1: // PARTITIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list330 = iprot.readListBegin();
- struct.partitions = new ArrayList<Partition>(_list330.size);
- for (int _i331 = 0; _i331 < _list330.size; ++_i331)
+ org.apache.thrift.protocol.TList _list338 = iprot.readListBegin();
+ struct.partitions = new ArrayList<Partition>(_list338.size);
+ for (int _i339 = 0; _i339 < _list338.size; ++_i339)
{
- Partition _elem332; // required
- _elem332 = new Partition();
- _elem332.read(iprot);
- struct.partitions.add(_elem332);
+ Partition _elem340; // optional
+ _elem340 = new Partition();
+ _elem340.read(iprot);
+ struct.partitions.add(_elem340);
}
iprot.readListEnd();
}
@@ -376,9 +376,9 @@ public class DropPartitionsResult implem
oprot.writeFieldBegin(PARTITIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size()));
- for (Partition _iter333 : struct.partitions)
+ for (Partition _iter341 : struct.partitions)
{
- _iter333.write(oprot);
+ _iter341.write(oprot);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class DropPartitionsResult implem
if (struct.isSetPartitions()) {
{
oprot.writeI32(struct.partitions.size());
- for (Partition _iter334 : struct.partitions)
+ for (Partition _iter342 : struct.partitions)
{
- _iter334.write(oprot);
+ _iter342.write(oprot);
}
}
}
@@ -424,14 +424,14 @@ public class DropPartitionsResult implem
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.partitions = new ArrayList<Partition>(_list335.size);
- for (int _i336 = 0; _i336 < _list335.size; ++_i336)
+ org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.partitions = new ArrayList<Partition>(_list343.size);
+ for (int _i344 = 0; _i344 < _list343.size; ++_i344)
{
- Partition _elem337; // required
- _elem337 = new Partition();
- _elem337.read(iprot);
- struct.partitions.add(_elem337);
+ Partition _elem345; // optional
+ _elem345 = new Partition();
+ _elem345.read(iprot);
+ struct.partitions.add(_elem345);
}
}
struct.setPartitionsIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java Wed Mar 12 09:50:31 2014
@@ -351,15 +351,15 @@ public class EnvironmentContext implemen
case 1: // PROPERTIES
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map246 = iprot.readMapBegin();
- struct.properties = new HashMap<String,String>(2*_map246.size);
- for (int _i247 = 0; _i247 < _map246.size; ++_i247)
+ org.apache.thrift.protocol.TMap _map254 = iprot.readMapBegin();
+ struct.properties = new HashMap<String,String>(2*_map254.size);
+ for (int _i255 = 0; _i255 < _map254.size; ++_i255)
{
- String _key248; // required
- String _val249; // required
- _key248 = iprot.readString();
- _val249 = iprot.readString();
- struct.properties.put(_key248, _val249);
+ String _key256; // required
+ String _val257; // required
+ _key256 = iprot.readString();
+ _val257 = iprot.readString();
+ struct.properties.put(_key256, _val257);
}
iprot.readMapEnd();
}
@@ -385,10 +385,10 @@ public class EnvironmentContext implemen
oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size()));
- for (Map.Entry<String, String> _iter250 : struct.properties.entrySet())
+ for (Map.Entry<String, String> _iter258 : struct.properties.entrySet())
{
- oprot.writeString(_iter250.getKey());
- oprot.writeString(_iter250.getValue());
+ oprot.writeString(_iter258.getKey());
+ oprot.writeString(_iter258.getValue());
}
oprot.writeMapEnd();
}
@@ -419,10 +419,10 @@ public class EnvironmentContext implemen
if (struct.isSetProperties()) {
{
oprot.writeI32(struct.properties.size());
- for (Map.Entry<String, String> _iter251 : struct.properties.entrySet())
+ for (Map.Entry<String, String> _iter259 : struct.properties.entrySet())
{
- oprot.writeString(_iter251.getKey());
- oprot.writeString(_iter251.getValue());
+ oprot.writeString(_iter259.getKey());
+ oprot.writeString(_iter259.getValue());
}
}
}
@@ -434,15 +434,15 @@ public class EnvironmentContext implemen
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map252 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.properties = new HashMap<String,String>(2*_map252.size);
- for (int _i253 = 0; _i253 < _map252.size; ++_i253)
+ org.apache.thrift.protocol.TMap _map260 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.properties = new HashMap<String,String>(2*_map260.size);
+ for (int _i261 = 0; _i261 < _map260.size; ++_i261)
{
- String _key254; // required
- String _val255; // required
- _key254 = iprot.readString();
- _val255 = iprot.readString();
- struct.properties.put(_key254, _val255);
+ String _key262; // required
+ String _val263; // required
+ _key262 = iprot.readString();
+ _val263 = iprot.readString();
+ struct.properties.put(_key262, _val263);
}
}
struct.setPropertiesIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java Wed Mar 12 09:50:31 2014
@@ -993,14 +993,14 @@ public class Function implements org.apa
case 8: // RESOURCE_URIS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list354 = iprot.readListBegin();
- struct.resourceUris = new ArrayList<ResourceUri>(_list354.size);
- for (int _i355 = 0; _i355 < _list354.size; ++_i355)
+ org.apache.thrift.protocol.TList _list362 = iprot.readListBegin();
+ struct.resourceUris = new ArrayList<ResourceUri>(_list362.size);
+ for (int _i363 = 0; _i363 < _list362.size; ++_i363)
{
- ResourceUri _elem356; // required
- _elem356 = new ResourceUri();
- _elem356.read(iprot);
- struct.resourceUris.add(_elem356);
+ ResourceUri _elem364; // optional
+ _elem364 = new ResourceUri();
+ _elem364.read(iprot);
+ struct.resourceUris.add(_elem364);
}
iprot.readListEnd();
}
@@ -1059,9 +1059,9 @@ public class Function implements org.apa
oprot.writeFieldBegin(RESOURCE_URIS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourceUris.size()));
- for (ResourceUri _iter357 : struct.resourceUris)
+ for (ResourceUri _iter365 : struct.resourceUris)
{
- _iter357.write(oprot);
+ _iter365.write(oprot);
}
oprot.writeListEnd();
}
@@ -1134,9 +1134,9 @@ public class Function implements org.apa
if (struct.isSetResourceUris()) {
{
oprot.writeI32(struct.resourceUris.size());
- for (ResourceUri _iter358 : struct.resourceUris)
+ for (ResourceUri _iter366 : struct.resourceUris)
{
- _iter358.write(oprot);
+ _iter366.write(oprot);
}
}
}
@@ -1176,14 +1176,14 @@ public class Function implements org.apa
}
if (incoming.get(7)) {
{
- org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.resourceUris = new ArrayList<ResourceUri>(_list359.size);
- for (int _i360 = 0; _i360 < _list359.size; ++_i360)
+ org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.resourceUris = new ArrayList<ResourceUri>(_list367.size);
+ for (int _i368 = 0; _i368 < _list367.size; ++_i368)
{
- ResourceUri _elem361; // required
- _elem361 = new ResourceUri();
- _elem361.read(iprot);
- struct.resourceUris.add(_elem361);
+ ResourceUri _elem369; // optional
+ _elem369 = new ResourceUri();
+ _elem369.read(iprot);
+ struct.resourceUris.add(_elem369);
}
}
struct.setResourceUrisIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java Wed Mar 12 09:50:31 2014
@@ -443,14 +443,14 @@ public class GetOpenTxnsInfoResponse imp
case 2: // OPEN_TXNS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list362 = iprot.readListBegin();
- struct.open_txns = new ArrayList<TxnInfo>(_list362.size);
- for (int _i363 = 0; _i363 < _list362.size; ++_i363)
+ org.apache.thrift.protocol.TList _list370 = iprot.readListBegin();
+ struct.open_txns = new ArrayList<TxnInfo>(_list370.size);
+ for (int _i371 = 0; _i371 < _list370.size; ++_i371)
{
- TxnInfo _elem364; // required
- _elem364 = new TxnInfo();
- _elem364.read(iprot);
- struct.open_txns.add(_elem364);
+ TxnInfo _elem372; // optional
+ _elem372 = new TxnInfo();
+ _elem372.read(iprot);
+ struct.open_txns.add(_elem372);
}
iprot.readListEnd();
}
@@ -479,9 +479,9 @@ public class GetOpenTxnsInfoResponse imp
oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.open_txns.size()));
- for (TxnInfo _iter365 : struct.open_txns)
+ for (TxnInfo _iter373 : struct.open_txns)
{
- _iter365.write(oprot);
+ _iter373.write(oprot);
}
oprot.writeListEnd();
}
@@ -507,9 +507,9 @@ public class GetOpenTxnsInfoResponse imp
oprot.writeI64(struct.txn_high_water_mark);
{
oprot.writeI32(struct.open_txns.size());
- for (TxnInfo _iter366 : struct.open_txns)
+ for (TxnInfo _iter374 : struct.open_txns)
{
- _iter366.write(oprot);
+ _iter374.write(oprot);
}
}
}
@@ -520,14 +520,14 @@ public class GetOpenTxnsInfoResponse imp
struct.txn_high_water_mark = iprot.readI64();
struct.setTxn_high_water_markIsSet(true);
{
- org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.open_txns = new ArrayList<TxnInfo>(_list367.size);
- for (int _i368 = 0; _i368 < _list367.size; ++_i368)
+ org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.open_txns = new ArrayList<TxnInfo>(_list375.size);
+ for (int _i376 = 0; _i376 < _list375.size; ++_i376)
{
- TxnInfo _elem369; // required
- _elem369 = new TxnInfo();
- _elem369.read(iprot);
- struct.open_txns.add(_elem369);
+ TxnInfo _elem377; // optional
+ _elem377 = new TxnInfo();
+ _elem377.read(iprot);
+ struct.open_txns.add(_elem377);
}
}
struct.setOpen_txnsIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java Wed Mar 12 09:50:31 2014
@@ -443,13 +443,13 @@ public class GetOpenTxnsResponse impleme
case 2: // OPEN_TXNS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set370 = iprot.readSetBegin();
- struct.open_txns = new HashSet<Long>(2*_set370.size);
- for (int _i371 = 0; _i371 < _set370.size; ++_i371)
+ org.apache.thrift.protocol.TSet _set378 = iprot.readSetBegin();
+ struct.open_txns = new HashSet<Long>(2*_set378.size);
+ for (int _i379 = 0; _i379 < _set378.size; ++_i379)
{
- long _elem372; // required
- _elem372 = iprot.readI64();
- struct.open_txns.add(_elem372);
+ long _elem380; // optional
+ _elem380 = iprot.readI64();
+ struct.open_txns.add(_elem380);
}
iprot.readSetEnd();
}
@@ -478,9 +478,9 @@ public class GetOpenTxnsResponse impleme
oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.open_txns.size()));
- for (long _iter373 : struct.open_txns)
+ for (long _iter381 : struct.open_txns)
{
- oprot.writeI64(_iter373);
+ oprot.writeI64(_iter381);
}
oprot.writeSetEnd();
}
@@ -506,9 +506,9 @@ public class GetOpenTxnsResponse impleme
oprot.writeI64(struct.txn_high_water_mark);
{
oprot.writeI32(struct.open_txns.size());
- for (long _iter374 : struct.open_txns)
+ for (long _iter382 : struct.open_txns)
{
- oprot.writeI64(_iter374);
+ oprot.writeI64(_iter382);
}
}
}
@@ -519,13 +519,13 @@ public class GetOpenTxnsResponse impleme
struct.txn_high_water_mark = iprot.readI64();
struct.setTxn_high_water_markIsSet(true);
{
- org.apache.thrift.protocol.TSet _set375 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.open_txns = new HashSet<Long>(2*_set375.size);
- for (int _i376 = 0; _i376 < _set375.size; ++_i376)
+ org.apache.thrift.protocol.TSet _set383 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.open_txns = new HashSet<Long>(2*_set383.size);
+ for (int _i384 = 0; _i384 < _set383.size; ++_i384)
{
- long _elem377; // required
- _elem377 = iprot.readI64();
- struct.open_txns.add(_elem377);
+ long _elem385; // optional
+ _elem385 = iprot.readI64();
+ struct.open_txns.add(_elem385);
}
}
struct.setOpen_txnsIsSet(true);
Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java?rev=1576675&view=auto
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java (added)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java Wed Mar 12 09:50:31 2014
@@ -0,0 +1,391 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class GetPrincipalsInRoleRequest implements org.apache.thrift.TBase<GetPrincipalsInRoleRequest, GetPrincipalsInRoleRequest._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrincipalsInRoleRequest");
+
+ private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new GetPrincipalsInRoleRequestStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new GetPrincipalsInRoleRequestTupleSchemeFactory());
+ }
+
+ private String roleName; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ ROLE_NAME((short)1, "roleName");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // ROLE_NAME
+ return ROLE_NAME;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPrincipalsInRoleRequest.class, metaDataMap);
+ }
+
+ public GetPrincipalsInRoleRequest() {
+ }
+
+ public GetPrincipalsInRoleRequest(
+ String roleName)
+ {
+ this();
+ this.roleName = roleName;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public GetPrincipalsInRoleRequest(GetPrincipalsInRoleRequest other) {
+ if (other.isSetRoleName()) {
+ this.roleName = other.roleName;
+ }
+ }
+
+ public GetPrincipalsInRoleRequest deepCopy() {
+ return new GetPrincipalsInRoleRequest(this);
+ }
+
+ @Override
+ public void clear() {
+ this.roleName = null;
+ }
+
+ public String getRoleName() {
+ return this.roleName;
+ }
+
+ public void setRoleName(String roleName) {
+ this.roleName = roleName;
+ }
+
+ public void unsetRoleName() {
+ this.roleName = null;
+ }
+
+ /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
+ public boolean isSetRoleName() {
+ return this.roleName != null;
+ }
+
+ public void setRoleNameIsSet(boolean value) {
+ if (!value) {
+ this.roleName = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case ROLE_NAME:
+ if (value == null) {
+ unsetRoleName();
+ } else {
+ setRoleName((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case ROLE_NAME:
+ return getRoleName();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case ROLE_NAME:
+ return isSetRoleName();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof GetPrincipalsInRoleRequest)
+ return this.equals((GetPrincipalsInRoleRequest)that);
+ return false;
+ }
+
+ public boolean equals(GetPrincipalsInRoleRequest that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_roleName = true && this.isSetRoleName();
+ boolean that_present_roleName = true && that.isSetRoleName();
+ if (this_present_roleName || that_present_roleName) {
+ if (!(this_present_roleName && that_present_roleName))
+ return false;
+ if (!this.roleName.equals(that.roleName))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_roleName = true && (isSetRoleName());
+ builder.append(present_roleName);
+ if (present_roleName)
+ builder.append(roleName);
+
+ return builder.toHashCode();
+ }
+
+ public int compareTo(GetPrincipalsInRoleRequest other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+ GetPrincipalsInRoleRequest typedOther = (GetPrincipalsInRoleRequest)other;
+
+ lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetRoleName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("GetPrincipalsInRoleRequest(");
+ boolean first = true;
+
+ sb.append("roleName:");
+ if (this.roleName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.roleName);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class GetPrincipalsInRoleRequestStandardSchemeFactory implements SchemeFactory {
+ public GetPrincipalsInRoleRequestStandardScheme getScheme() {
+ return new GetPrincipalsInRoleRequestStandardScheme();
+ }
+ }
+
+ private static class GetPrincipalsInRoleRequestStandardScheme extends StandardScheme<GetPrincipalsInRoleRequest> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRoleRequest struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // ROLE_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.roleName = iprot.readString();
+ struct.setRoleNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPrincipalsInRoleRequest struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.roleName != null) {
+ oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
+ oprot.writeString(struct.roleName);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class GetPrincipalsInRoleRequestTupleSchemeFactory implements SchemeFactory {
+ public GetPrincipalsInRoleRequestTupleScheme getScheme() {
+ return new GetPrincipalsInRoleRequestTupleScheme();
+ }
+ }
+
+ private static class GetPrincipalsInRoleRequestTupleScheme extends TupleScheme<GetPrincipalsInRoleRequest> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetRoleName()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetRoleName()) {
+ oprot.writeString(struct.roleName);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.roleName = iprot.readString();
+ struct.setRoleNameIsSet(true);
+ }
+ }
+ }
+
+}
+
Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java?rev=1576675&view=auto
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java (added)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java Wed Mar 12 09:50:31 2014
@@ -0,0 +1,445 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class GetPrincipalsInRoleResponse implements org.apache.thrift.TBase<GetPrincipalsInRoleResponse, GetPrincipalsInRoleResponse._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrincipalsInRoleResponse");
+
+ private static final org.apache.thrift.protocol.TField PRINCIPAL_GRANTS_FIELD_DESC = new org.apache.thrift.protocol.TField("principalGrants", org.apache.thrift.protocol.TType.LIST, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new GetPrincipalsInRoleResponseStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new GetPrincipalsInRoleResponseTupleSchemeFactory());
+ }
+
+ private List<RolePrincipalGrant> principalGrants; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ PRINCIPAL_GRANTS((short)1, "principalGrants");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // PRINCIPAL_GRANTS
+ return PRINCIPAL_GRANTS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.PRINCIPAL_GRANTS, new org.apache.thrift.meta_data.FieldMetaData("principalGrants", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RolePrincipalGrant.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPrincipalsInRoleResponse.class, metaDataMap);
+ }
+
+ public GetPrincipalsInRoleResponse() {
+ }
+
+ public GetPrincipalsInRoleResponse(
+ List<RolePrincipalGrant> principalGrants)
+ {
+ this();
+ this.principalGrants = principalGrants;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public GetPrincipalsInRoleResponse(GetPrincipalsInRoleResponse other) {
+ if (other.isSetPrincipalGrants()) {
+ List<RolePrincipalGrant> __this__principalGrants = new ArrayList<RolePrincipalGrant>();
+ for (RolePrincipalGrant other_element : other.principalGrants) {
+ __this__principalGrants.add(new RolePrincipalGrant(other_element));
+ }
+ this.principalGrants = __this__principalGrants;
+ }
+ }
+
+ public GetPrincipalsInRoleResponse deepCopy() {
+ return new GetPrincipalsInRoleResponse(this);
+ }
+
+ @Override
+ public void clear() {
+ this.principalGrants = null;
+ }
+
+ public int getPrincipalGrantsSize() {
+ return (this.principalGrants == null) ? 0 : this.principalGrants.size();
+ }
+
+ public java.util.Iterator<RolePrincipalGrant> getPrincipalGrantsIterator() {
+ return (this.principalGrants == null) ? null : this.principalGrants.iterator();
+ }
+
+ public void addToPrincipalGrants(RolePrincipalGrant elem) {
+ if (this.principalGrants == null) {
+ this.principalGrants = new ArrayList<RolePrincipalGrant>();
+ }
+ this.principalGrants.add(elem);
+ }
+
+ public List<RolePrincipalGrant> getPrincipalGrants() {
+ return this.principalGrants;
+ }
+
+ public void setPrincipalGrants(List<RolePrincipalGrant> principalGrants) {
+ this.principalGrants = principalGrants;
+ }
+
+ public void unsetPrincipalGrants() {
+ this.principalGrants = null;
+ }
+
+ /** Returns true if field principalGrants is set (has been assigned a value) and false otherwise */
+ public boolean isSetPrincipalGrants() {
+ return this.principalGrants != null;
+ }
+
+ public void setPrincipalGrantsIsSet(boolean value) {
+ if (!value) {
+ this.principalGrants = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case PRINCIPAL_GRANTS:
+ if (value == null) {
+ unsetPrincipalGrants();
+ } else {
+ setPrincipalGrants((List<RolePrincipalGrant>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case PRINCIPAL_GRANTS:
+ return getPrincipalGrants();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case PRINCIPAL_GRANTS:
+ return isSetPrincipalGrants();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof GetPrincipalsInRoleResponse)
+ return this.equals((GetPrincipalsInRoleResponse)that);
+ return false;
+ }
+
+ public boolean equals(GetPrincipalsInRoleResponse that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_principalGrants = true && this.isSetPrincipalGrants();
+ boolean that_present_principalGrants = true && that.isSetPrincipalGrants();
+ if (this_present_principalGrants || that_present_principalGrants) {
+ if (!(this_present_principalGrants && that_present_principalGrants))
+ return false;
+ if (!this.principalGrants.equals(that.principalGrants))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_principalGrants = true && (isSetPrincipalGrants());
+ builder.append(present_principalGrants);
+ if (present_principalGrants)
+ builder.append(principalGrants);
+
+ return builder.toHashCode();
+ }
+
+ public int compareTo(GetPrincipalsInRoleResponse other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+ GetPrincipalsInRoleResponse typedOther = (GetPrincipalsInRoleResponse)other;
+
+ lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(typedOther.isSetPrincipalGrants());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPrincipalGrants()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, typedOther.principalGrants);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("GetPrincipalsInRoleResponse(");
+ boolean first = true;
+
+ sb.append("principalGrants:");
+ if (this.principalGrants == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.principalGrants);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class GetPrincipalsInRoleResponseStandardSchemeFactory implements SchemeFactory {
+ public GetPrincipalsInRoleResponseStandardScheme getScheme() {
+ return new GetPrincipalsInRoleResponseStandardScheme();
+ }
+ }
+
+ private static class GetPrincipalsInRoleResponseStandardScheme extends StandardScheme<GetPrincipalsInRoleResponse> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRoleResponse struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // PRINCIPAL_GRANTS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list78 = iprot.readListBegin();
+ struct.principalGrants = new ArrayList<RolePrincipalGrant>(_list78.size);
+ for (int _i79 = 0; _i79 < _list78.size; ++_i79)
+ {
+ RolePrincipalGrant _elem80; // optional
+ _elem80 = new RolePrincipalGrant();
+ _elem80.read(iprot);
+ struct.principalGrants.add(_elem80);
+ }
+ iprot.readListEnd();
+ }
+ struct.setPrincipalGrantsIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPrincipalsInRoleResponse struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.principalGrants != null) {
+ oprot.writeFieldBegin(PRINCIPAL_GRANTS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.principalGrants.size()));
+ for (RolePrincipalGrant _iter81 : struct.principalGrants)
+ {
+ _iter81.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class GetPrincipalsInRoleResponseTupleSchemeFactory implements SchemeFactory {
+ public GetPrincipalsInRoleResponseTupleScheme getScheme() {
+ return new GetPrincipalsInRoleResponseTupleScheme();
+ }
+ }
+
+ private static class GetPrincipalsInRoleResponseTupleScheme extends TupleScheme<GetPrincipalsInRoleResponse> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleResponse struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetPrincipalGrants()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetPrincipalGrants()) {
+ {
+ oprot.writeI32(struct.principalGrants.size());
+ for (RolePrincipalGrant _iter82 : struct.principalGrants)
+ {
+ _iter82.write(oprot);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleResponse struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ {
+ org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.principalGrants = new ArrayList<RolePrincipalGrant>(_list83.size);
+ for (int _i84 = 0; _i84 < _list83.size; ++_i84)
+ {
+ RolePrincipalGrant _elem85; // optional
+ _elem85 = new RolePrincipalGrant();
+ _elem85.read(iprot);
+ struct.principalGrants.add(_elem85);
+ }
+ }
+ struct.setPrincipalGrantsIsSet(true);
+ }
+ }
+ }
+
+}
+
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java Wed Mar 12 09:50:31 2014
@@ -710,7 +710,7 @@ public class HiveObjectRef implements or
struct.partValues = new ArrayList<String>(_list8.size);
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
{
- String _elem10; // required
+ String _elem10; // optional
_elem10 = iprot.readString();
struct.partValues.add(_elem10);
}
@@ -853,7 +853,7 @@ public class HiveObjectRef implements or
struct.partValues = new ArrayList<String>(_list13.size);
for (int _i14 = 0; _i14 < _list13.size; ++_i14)
{
- String _elem15; // required
+ String _elem15; // optional
_elem15 = iprot.readString();
struct.partValues.add(_elem15);
}
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java Wed Mar 12 09:50:31 2014
@@ -1140,15 +1140,15 @@ public class Index implements org.apache
case 9: // PARAMETERS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map210 = iprot.readMapBegin();
- struct.parameters = new HashMap<String,String>(2*_map210.size);
- for (int _i211 = 0; _i211 < _map210.size; ++_i211)
+ org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin();
+ struct.parameters = new HashMap<String,String>(2*_map218.size);
+ for (int _i219 = 0; _i219 < _map218.size; ++_i219)
{
- String _key212; // required
- String _val213; // required
- _key212 = iprot.readString();
- _val213 = iprot.readString();
- struct.parameters.put(_key212, _val213);
+ String _key220; // required
+ String _val221; // required
+ _key220 = iprot.readString();
+ _val221 = iprot.readString();
+ struct.parameters.put(_key220, _val221);
}
iprot.readMapEnd();
}
@@ -1218,10 +1218,10 @@ public class Index implements org.apache
oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size()));
- for (Map.Entry<String, String> _iter214 : struct.parameters.entrySet())
+ for (Map.Entry<String, String> _iter222 : struct.parameters.entrySet())
{
- oprot.writeString(_iter214.getKey());
- oprot.writeString(_iter214.getValue());
+ oprot.writeString(_iter222.getKey());
+ oprot.writeString(_iter222.getValue());
}
oprot.writeMapEnd();
}
@@ -1306,10 +1306,10 @@ public class Index implements org.apache
if (struct.isSetParameters()) {
{
oprot.writeI32(struct.parameters.size());
- for (Map.Entry<String, String> _iter215 : struct.parameters.entrySet())
+ for (Map.Entry<String, String> _iter223 : struct.parameters.entrySet())
{
- oprot.writeString(_iter215.getKey());
- oprot.writeString(_iter215.getValue());
+ oprot.writeString(_iter223.getKey());
+ oprot.writeString(_iter223.getValue());
}
}
}
@@ -1357,15 +1357,15 @@ public class Index implements org.apache
}
if (incoming.get(8)) {
{
- org.apache.thrift.protocol.TMap _map216 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.parameters = new HashMap<String,String>(2*_map216.size);
- for (int _i217 = 0; _i217 < _map216.size; ++_i217)
+ org.apache.thrift.protocol.TMap _map224 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.parameters = new HashMap<String,String>(2*_map224.size);
+ for (int _i225 = 0; _i225 < _map224.size; ++_i225)
{
- String _key218; // required
- String _val219; // required
- _key218 = iprot.readString();
- _val219 = iprot.readString();
- struct.parameters.put(_key218, _val219);
+ String _key226; // required
+ String _val227; // required
+ _key226 = iprot.readString();
+ _val227 = iprot.readString();
+ struct.parameters.put(_key226, _val227);
}
}
struct.setParametersIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java Wed Mar 12 09:50:31 2014
@@ -601,14 +601,14 @@ public class LockRequest implements org.
case 1: // COMPONENT
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list386 = iprot.readListBegin();
- struct.component = new ArrayList<LockComponent>(_list386.size);
- for (int _i387 = 0; _i387 < _list386.size; ++_i387)
+ org.apache.thrift.protocol.TList _list394 = iprot.readListBegin();
+ struct.component = new ArrayList<LockComponent>(_list394.size);
+ for (int _i395 = 0; _i395 < _list394.size; ++_i395)
{
- LockComponent _elem388; // required
- _elem388 = new LockComponent();
- _elem388.read(iprot);
- struct.component.add(_elem388);
+ LockComponent _elem396; // optional
+ _elem396 = new LockComponent();
+ _elem396.read(iprot);
+ struct.component.add(_elem396);
}
iprot.readListEnd();
}
@@ -658,9 +658,9 @@ public class LockRequest implements org.
oprot.writeFieldBegin(COMPONENT_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.component.size()));
- for (LockComponent _iter389 : struct.component)
+ for (LockComponent _iter397 : struct.component)
{
- _iter389.write(oprot);
+ _iter397.write(oprot);
}
oprot.writeListEnd();
}
@@ -700,9 +700,9 @@ public class LockRequest implements org.
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.component.size());
- for (LockComponent _iter390 : struct.component)
+ for (LockComponent _iter398 : struct.component)
{
- _iter390.write(oprot);
+ _iter398.write(oprot);
}
}
oprot.writeString(struct.user);
@@ -721,14 +721,14 @@ public class LockRequest implements org.
public void read(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.component = new ArrayList<LockComponent>(_list391.size);
- for (int _i392 = 0; _i392 < _list391.size; ++_i392)
+ org.apache.thrift.protocol.TList _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.component = new ArrayList<LockComponent>(_list399.size);
+ for (int _i400 = 0; _i400 < _list399.size; ++_i400)
{
- LockComponent _elem393; // required
- _elem393 = new LockComponent();
- _elem393.read(iprot);
- struct.component.add(_elem393);
+ LockComponent _elem401; // optional
+ _elem401 = new LockComponent();
+ _elem401.read(iprot);
+ struct.component.add(_elem401);
}
}
struct.setComponentIsSet(true);
Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java?rev=1576675&r1=1576674&r2=1576675&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java Wed Mar 12 09:50:31 2014
@@ -350,13 +350,13 @@ public class OpenTxnsResponse implements
case 1: // TXN_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list378 = iprot.readListBegin();
- struct.txn_ids = new ArrayList<Long>(_list378.size);
- for (int _i379 = 0; _i379 < _list378.size; ++_i379)
+ org.apache.thrift.protocol.TList _list386 = iprot.readListBegin();
+ struct.txn_ids = new ArrayList<Long>(_list386.size);
+ for (int _i387 = 0; _i387 < _list386.size; ++_i387)
{
- long _elem380; // required
- _elem380 = iprot.readI64();
- struct.txn_ids.add(_elem380);
+ long _elem388; // optional
+ _elem388 = iprot.readI64();
+ struct.txn_ids.add(_elem388);
}
iprot.readListEnd();
}
@@ -382,9 +382,9 @@ public class OpenTxnsResponse implements
oprot.writeFieldBegin(TXN_IDS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size()));
- for (long _iter381 : struct.txn_ids)
+ for (long _iter389 : struct.txn_ids)
{
- oprot.writeI64(_iter381);
+ oprot.writeI64(_iter389);
}
oprot.writeListEnd();
}
@@ -409,9 +409,9 @@ public class OpenTxnsResponse implements
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.txn_ids.size());
- for (long _iter382 : struct.txn_ids)
+ for (long _iter390 : struct.txn_ids)
{
- oprot.writeI64(_iter382);
+ oprot.writeI64(_iter390);
}
}
}
@@ -420,13 +420,13 @@ public class OpenTxnsResponse implements
public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
- org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.txn_ids = new ArrayList<Long>(_list383.size);
- for (int _i384 = 0; _i384 < _list383.size; ++_i384)
+ org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.txn_ids = new ArrayList<Long>(_list391.size);
+ for (int _i392 = 0; _i392 < _list391.size; ++_i392)
{
- long _elem385; // required
- _elem385 = iprot.readI64();
- struct.txn_ids.add(_elem385);
+ long _elem393; // optional
+ _elem393 = iprot.readI64();
+ struct.txn_ids.add(_elem393);
}
}
struct.setTxn_idsIsSet(true);