Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java?rev=1622748&r1=1622747&r2=1622748&view=diff ============================================================================== --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java (original) +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java Fri Sep 5 17:52:32 2014 @@ -435,14 +435,14 @@ public class AggrStats implements org.ap case 1: // COL_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); - struct.colStats = new ArrayList<ColumnStatisticsObj>(_list244.size); - for (int _i245 = 0; _i245 < _list244.size; ++_i245) + org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); + struct.colStats = new ArrayList<ColumnStatisticsObj>(_list278.size); + for (int _i279 = 0; _i279 < _list278.size; ++_i279) { - ColumnStatisticsObj _elem246; // required - _elem246 = new ColumnStatisticsObj(); - _elem246.read(iprot); - struct.colStats.add(_elem246); + ColumnStatisticsObj _elem280; // required + _elem280 = new ColumnStatisticsObj(); + _elem280.read(iprot); + struct.colStats.add(_elem280); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public class AggrStats implements org.ap oprot.writeFieldBegin(COL_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colStats.size())); - for (ColumnStatisticsObj _iter247 : struct.colStats) + for (ColumnStatisticsObj _iter281 : struct.colStats) { - _iter247.write(oprot); + _iter281.write(oprot); } oprot.writeListEnd(); } @@ -506,9 +506,9 @@ public class AggrStats implements org.ap TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.colStats.size()); - for (ColumnStatisticsObj _iter248 : struct.colStats) + for (ColumnStatisticsObj _iter282 : struct.colStats) { - _iter248.write(oprot); + _iter282.write(oprot); } } oprot.writeI64(struct.partsFound); @@ -518,14 +518,14 @@ public class AggrStats implements org.ap public void read(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.colStats = new ArrayList<ColumnStatisticsObj>(_list249.size); - for (int _i250 = 0; _i250 < _list249.size; ++_i250) + org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.colStats = new ArrayList<ColumnStatisticsObj>(_list283.size); + for (int _i284 = 0; _i284 < _list283.size; ++_i284) { - ColumnStatisticsObj _elem251; // required - _elem251 = new ColumnStatisticsObj(); - _elem251.read(iprot); - struct.colStats.add(_elem251); + ColumnStatisticsObj _elem285; // required + _elem285 = new ColumnStatisticsObj(); + _elem285.read(iprot); + struct.colStats.add(_elem285); } } struct.setColStatsIsSet(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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _list236 = iprot.readListBegin(); - struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list236.size); - for (int _i237 = 0; _i237 < _list236.size; ++_i237) + org.apache.thrift.protocol.TList _list270 = iprot.readListBegin(); + struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list270.size); + for (int _i271 = 0; _i271 < _list270.size; ++_i271) { - ColumnStatisticsObj _elem238; // required - _elem238 = new ColumnStatisticsObj(); - _elem238.read(iprot); - struct.statsObj.add(_elem238); + ColumnStatisticsObj _elem272; // required + _elem272 = new ColumnStatisticsObj(); + _elem272.read(iprot); + struct.statsObj.add(_elem272); } 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 _iter239 : struct.statsObj) + for (ColumnStatisticsObj _iter273 : struct.statsObj) { - _iter239.write(oprot); + _iter273.write(oprot); } oprot.writeListEnd(); } @@ -513,9 +513,9 @@ public class ColumnStatistics implements struct.statsDesc.write(oprot); { oprot.writeI32(struct.statsObj.size()); - for (ColumnStatisticsObj _iter240 : struct.statsObj) + for (ColumnStatisticsObj _iter274 : struct.statsObj) { - _iter240.write(oprot); + _iter274.write(oprot); } } } @@ -527,14 +527,14 @@ public class ColumnStatistics implements struct.statsDesc.read(iprot); struct.setStatsDescIsSet(true); { - org.apache.thrift.protocol.TList _list241 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list241.size); - for (int _i242 = 0; _i242 < _list241.size; ++_i242) + org.apache.thrift.protocol.TList _list275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.statsObj = new ArrayList<ColumnStatisticsObj>(_list275.size); + for (int _i276 = 0; _i276 < _list275.size; ++_i276) { - ColumnStatisticsObj _elem243; // required - _elem243 = new ColumnStatisticsObj(); - _elem243.read(iprot); - struct.statsObj.add(_elem243); + ColumnStatisticsObj _elem277; // required + _elem277 = new ColumnStatisticsObj(); + _elem277.read(iprot); + struct.statsObj.add(_elem277); } } struct.setStatsObjIsSet(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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _list362 = iprot.readListBegin(); - struct.partitions = new ArrayList<Partition>(_list362.size); - for (int _i363 = 0; _i363 < _list362.size; ++_i363) + org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); + struct.partitions = new ArrayList<Partition>(_list396.size); + for (int _i397 = 0; _i397 < _list396.size; ++_i397) { - Partition _elem364; // required - _elem364 = new Partition(); - _elem364.read(iprot); - struct.partitions.add(_elem364); + Partition _elem398; // required + _elem398 = new Partition(); + _elem398.read(iprot); + struct.partitions.add(_elem398); } 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 _iter365 : struct.partitions) + for (Partition _iter399 : struct.partitions) { - _iter365.write(oprot); + _iter399.write(oprot); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public class DropPartitionsResult implem if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter366 : struct.partitions) + for (Partition _iter400 : struct.partitions) { - _iter366.write(oprot); + _iter400.write(oprot); } } } @@ -424,14 +424,14 @@ public class DropPartitionsResult implem BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList<Partition>(_list367.size); - for (int _i368 = 0; _i368 < _list367.size; ++_i368) + org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList<Partition>(_list401.size); + for (int _i402 = 0; _i402 < _list401.size; ++_i402) { - Partition _elem369; // required - _elem369 = new Partition(); - _elem369.read(iprot); - struct.partitions.add(_elem369); + Partition _elem403; // required + _elem403 = new Partition(); + _elem403.read(iprot); + struct.partitions.add(_elem403); } } 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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _map278 = iprot.readMapBegin(); - struct.properties = new HashMap<String,String>(2*_map278.size); - for (int _i279 = 0; _i279 < _map278.size; ++_i279) + org.apache.thrift.protocol.TMap _map312 = iprot.readMapBegin(); + struct.properties = new HashMap<String,String>(2*_map312.size); + for (int _i313 = 0; _i313 < _map312.size; ++_i313) { - String _key280; // required - String _val281; // required - _key280 = iprot.readString(); - _val281 = iprot.readString(); - struct.properties.put(_key280, _val281); + String _key314; // required + String _val315; // required + _key314 = iprot.readString(); + _val315 = iprot.readString(); + struct.properties.put(_key314, _val315); } 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> _iter282 : struct.properties.entrySet()) + for (Map.Entry<String, String> _iter316 : struct.properties.entrySet()) { - oprot.writeString(_iter282.getKey()); - oprot.writeString(_iter282.getValue()); + oprot.writeString(_iter316.getKey()); + oprot.writeString(_iter316.getValue()); } oprot.writeMapEnd(); } @@ -419,10 +419,10 @@ public class EnvironmentContext implemen if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry<String, String> _iter283 : struct.properties.entrySet()) + for (Map.Entry<String, String> _iter317 : struct.properties.entrySet()) { - oprot.writeString(_iter283.getKey()); - oprot.writeString(_iter283.getValue()); + oprot.writeString(_iter317.getKey()); + oprot.writeString(_iter317.getValue()); } } } @@ -434,15 +434,15 @@ public class EnvironmentContext implemen BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map284 = 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*_map284.size); - for (int _i285 = 0; _i285 < _map284.size; ++_i285) + org.apache.thrift.protocol.TMap _map318 = 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*_map318.size); + for (int _i319 = 0; _i319 < _map318.size; ++_i319) { - String _key286; // required - String _val287; // required - _key286 = iprot.readString(); - _val287 = iprot.readString(); - struct.properties.put(_key286, _val287); + String _key320; // required + String _val321; // required + _key320 = iprot.readString(); + _val321 = iprot.readString(); + struct.properties.put(_key320, _val321); } } 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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _list386 = iprot.readListBegin(); - struct.resourceUris = new ArrayList<ResourceUri>(_list386.size); - for (int _i387 = 0; _i387 < _list386.size; ++_i387) + org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); + struct.resourceUris = new ArrayList<ResourceUri>(_list420.size); + for (int _i421 = 0; _i421 < _list420.size; ++_i421) { - ResourceUri _elem388; // required - _elem388 = new ResourceUri(); - _elem388.read(iprot); - struct.resourceUris.add(_elem388); + ResourceUri _elem422; // required + _elem422 = new ResourceUri(); + _elem422.read(iprot); + struct.resourceUris.add(_elem422); } 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 _iter389 : struct.resourceUris) + for (ResourceUri _iter423 : struct.resourceUris) { - _iter389.write(oprot); + _iter423.write(oprot); } oprot.writeListEnd(); } @@ -1134,9 +1134,9 @@ public class Function implements org.apa if (struct.isSetResourceUris()) { { oprot.writeI32(struct.resourceUris.size()); - for (ResourceUri _iter390 : struct.resourceUris) + for (ResourceUri _iter424 : struct.resourceUris) { - _iter390.write(oprot); + _iter424.write(oprot); } } } @@ -1176,14 +1176,14 @@ public class Function implements org.apa } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList<ResourceUri>(_list391.size); - for (int _i392 = 0; _i392 < _list391.size; ++_i392) + org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList<ResourceUri>(_list425.size); + for (int _i426 = 0; _i426 < _list425.size; ++_i426) { - ResourceUri _elem393; // required - _elem393 = new ResourceUri(); - _elem393.read(iprot); - struct.resourceUris.add(_elem393); + ResourceUri _elem427; // required + _elem427 = new ResourceUri(); + _elem427.read(iprot); + struct.resourceUris.add(_elem427); } } 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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _list394 = iprot.readListBegin(); - struct.open_txns = new ArrayList<TxnInfo>(_list394.size); - for (int _i395 = 0; _i395 < _list394.size; ++_i395) + org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); + struct.open_txns = new ArrayList<TxnInfo>(_list428.size); + for (int _i429 = 0; _i429 < _list428.size; ++_i429) { - TxnInfo _elem396; // required - _elem396 = new TxnInfo(); - _elem396.read(iprot); - struct.open_txns.add(_elem396); + TxnInfo _elem430; // required + _elem430 = new TxnInfo(); + _elem430.read(iprot); + struct.open_txns.add(_elem430); } 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 _iter397 : struct.open_txns) + for (TxnInfo _iter431 : struct.open_txns) { - _iter397.write(oprot); + _iter431.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 _iter398 : struct.open_txns) + for (TxnInfo _iter432 : struct.open_txns) { - _iter398.write(oprot); + _iter432.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 _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList<TxnInfo>(_list399.size); - for (int _i400 = 0; _i400 < _list399.size; ++_i400) + org.apache.thrift.protocol.TList _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList<TxnInfo>(_list433.size); + for (int _i434 = 0; _i434 < _list433.size; ++_i434) { - TxnInfo _elem401; // required - _elem401 = new TxnInfo(); - _elem401.read(iprot); - struct.open_txns.add(_elem401); + TxnInfo _elem435; // required + _elem435 = new TxnInfo(); + _elem435.read(iprot); + struct.open_txns.add(_elem435); } } 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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _set402 = iprot.readSetBegin(); - struct.open_txns = new HashSet<Long>(2*_set402.size); - for (int _i403 = 0; _i403 < _set402.size; ++_i403) + org.apache.thrift.protocol.TSet _set436 = iprot.readSetBegin(); + struct.open_txns = new HashSet<Long>(2*_set436.size); + for (int _i437 = 0; _i437 < _set436.size; ++_i437) { - long _elem404; // required - _elem404 = iprot.readI64(); - struct.open_txns.add(_elem404); + long _elem438; // required + _elem438 = iprot.readI64(); + struct.open_txns.add(_elem438); } 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 _iter405 : struct.open_txns) + for (long _iter439 : struct.open_txns) { - oprot.writeI64(_iter405); + oprot.writeI64(_iter439); } 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 _iter406 : struct.open_txns) + for (long _iter440 : struct.open_txns) { - oprot.writeI64(_iter406); + oprot.writeI64(_iter440); } } } @@ -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 _set407 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new HashSet<Long>(2*_set407.size); - for (int _i408 = 0; _i408 < _set407.size; ++_i408) + org.apache.thrift.protocol.TSet _set441 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new HashSet<Long>(2*_set441.size); + for (int _i442 = 0; _i442 < _set441.size; ++_i442) { - long _elem409; // required - _elem409 = iprot.readI64(); - struct.open_txns.add(_elem409); + long _elem443; // required + _elem443 = iprot.readI64(); + struct.open_txns.add(_elem443); } } struct.setOpen_txnsIsSet(true); Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java?rev=1622748&r1=1622747&r2=1622748&view=diff ============================================================================== --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java (original) +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java Fri Sep 5 17:52:32 2014 @@ -455,13 +455,13 @@ public class HeartbeatTxnRangeResponse i case 1: // ABORTED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set434 = iprot.readSetBegin(); - struct.aborted = new HashSet<Long>(2*_set434.size); - for (int _i435 = 0; _i435 < _set434.size; ++_i435) + org.apache.thrift.protocol.TSet _set468 = iprot.readSetBegin(); + struct.aborted = new HashSet<Long>(2*_set468.size); + for (int _i469 = 0; _i469 < _set468.size; ++_i469) { - long _elem436; // required - _elem436 = iprot.readI64(); - struct.aborted.add(_elem436); + long _elem470; // required + _elem470 = iprot.readI64(); + struct.aborted.add(_elem470); } iprot.readSetEnd(); } @@ -473,13 +473,13 @@ public class HeartbeatTxnRangeResponse i case 2: // NOSUCH if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set437 = iprot.readSetBegin(); - struct.nosuch = new HashSet<Long>(2*_set437.size); - for (int _i438 = 0; _i438 < _set437.size; ++_i438) + org.apache.thrift.protocol.TSet _set471 = iprot.readSetBegin(); + struct.nosuch = new HashSet<Long>(2*_set471.size); + for (int _i472 = 0; _i472 < _set471.size; ++_i472) { - long _elem439; // required - _elem439 = iprot.readI64(); - struct.nosuch.add(_elem439); + long _elem473; // required + _elem473 = iprot.readI64(); + struct.nosuch.add(_elem473); } iprot.readSetEnd(); } @@ -505,9 +505,9 @@ public class HeartbeatTxnRangeResponse i oprot.writeFieldBegin(ABORTED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.aborted.size())); - for (long _iter440 : struct.aborted) + for (long _iter474 : struct.aborted) { - oprot.writeI64(_iter440); + oprot.writeI64(_iter474); } oprot.writeSetEnd(); } @@ -517,9 +517,9 @@ public class HeartbeatTxnRangeResponse i oprot.writeFieldBegin(NOSUCH_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.nosuch.size())); - for (long _iter441 : struct.nosuch) + for (long _iter475 : struct.nosuch) { - oprot.writeI64(_iter441); + oprot.writeI64(_iter475); } oprot.writeSetEnd(); } @@ -544,16 +544,16 @@ public class HeartbeatTxnRangeResponse i TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.aborted.size()); - for (long _iter442 : struct.aborted) + for (long _iter476 : struct.aborted) { - oprot.writeI64(_iter442); + oprot.writeI64(_iter476); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter443 : struct.nosuch) + for (long _iter477 : struct.nosuch) { - oprot.writeI64(_iter443); + oprot.writeI64(_iter477); } } } @@ -562,24 +562,24 @@ public class HeartbeatTxnRangeResponse i public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TSet _set444 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet<Long>(2*_set444.size); - for (int _i445 = 0; _i445 < _set444.size; ++_i445) - { - long _elem446; // required - _elem446 = iprot.readI64(); - struct.aborted.add(_elem446); + org.apache.thrift.protocol.TSet _set478 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet<Long>(2*_set478.size); + for (int _i479 = 0; _i479 < _set478.size; ++_i479) + { + long _elem480; // required + _elem480 = iprot.readI64(); + struct.aborted.add(_elem480); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set447 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet<Long>(2*_set447.size); - for (int _i448 = 0; _i448 < _set447.size; ++_i448) - { - long _elem449; // required - _elem449 = iprot.readI64(); - struct.nosuch.add(_elem449); + org.apache.thrift.protocol.TSet _set481 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet<Long>(2*_set481.size); + for (int _i482 = 0; _i482 < _set481.size; ++_i482) + { + long _elem483; // required + _elem483 = iprot.readI64(); + struct.nosuch.add(_elem483); } } struct.setNosuchIsSet(true); 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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _map226 = iprot.readMapBegin(); - struct.parameters = new HashMap<String,String>(2*_map226.size); - for (int _i227 = 0; _i227 < _map226.size; ++_i227) + org.apache.thrift.protocol.TMap _map260 = iprot.readMapBegin(); + struct.parameters = new HashMap<String,String>(2*_map260.size); + for (int _i261 = 0; _i261 < _map260.size; ++_i261) { - String _key228; // required - String _val229; // required - _key228 = iprot.readString(); - _val229 = iprot.readString(); - struct.parameters.put(_key228, _val229); + String _key262; // required + String _val263; // required + _key262 = iprot.readString(); + _val263 = iprot.readString(); + struct.parameters.put(_key262, _val263); } 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> _iter230 : struct.parameters.entrySet()) + for (Map.Entry<String, String> _iter264 : struct.parameters.entrySet()) { - oprot.writeString(_iter230.getKey()); - oprot.writeString(_iter230.getValue()); + oprot.writeString(_iter264.getKey()); + oprot.writeString(_iter264.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> _iter231 : struct.parameters.entrySet()) + for (Map.Entry<String, String> _iter265 : struct.parameters.entrySet()) { - oprot.writeString(_iter231.getKey()); - oprot.writeString(_iter231.getValue()); + oprot.writeString(_iter265.getKey()); + oprot.writeString(_iter265.getValue()); } } } @@ -1357,15 +1357,15 @@ public class Index implements org.apache } if (incoming.get(8)) { { - org.apache.thrift.protocol.TMap _map232 = 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*_map232.size); - for (int _i233 = 0; _i233 < _map232.size; ++_i233) + org.apache.thrift.protocol.TMap _map266 = 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*_map266.size); + for (int _i267 = 0; _i267 < _map266.size; ++_i267) { - String _key234; // required - String _val235; // required - _key234 = iprot.readString(); - _val235 = iprot.readString(); - struct.parameters.put(_key234, _val235); + String _key268; // required + String _val269; // required + _key268 = iprot.readString(); + _val269 = iprot.readString(); + struct.parameters.put(_key268, _val269); } } 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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _list418 = iprot.readListBegin(); - struct.component = new ArrayList<LockComponent>(_list418.size); - for (int _i419 = 0; _i419 < _list418.size; ++_i419) + org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); + struct.component = new ArrayList<LockComponent>(_list452.size); + for (int _i453 = 0; _i453 < _list452.size; ++_i453) { - LockComponent _elem420; // required - _elem420 = new LockComponent(); - _elem420.read(iprot); - struct.component.add(_elem420); + LockComponent _elem454; // required + _elem454 = new LockComponent(); + _elem454.read(iprot); + struct.component.add(_elem454); } 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 _iter421 : struct.component) + for (LockComponent _iter455 : struct.component) { - _iter421.write(oprot); + _iter455.write(oprot); } oprot.writeListEnd(); } @@ -700,9 +700,9 @@ public class LockRequest implements org. TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.component.size()); - for (LockComponent _iter422 : struct.component) + for (LockComponent _iter456 : struct.component) { - _iter422.write(oprot); + _iter456.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 _list423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList<LockComponent>(_list423.size); - for (int _i424 = 0; _i424 < _list423.size; ++_i424) + org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList<LockComponent>(_list457.size); + for (int _i458 = 0; _i458 < _list457.size; ++_i458) { - LockComponent _elem425; // required - _elem425 = new LockComponent(); - _elem425.read(iprot); - struct.component.add(_elem425); + LockComponent _elem459; // required + _elem459 = new LockComponent(); + _elem459.read(iprot); + struct.component.add(_elem459); } } 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=1622748&r1=1622747&r2=1622748&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 Fri Sep 5 17:52:32 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 _list410 = iprot.readListBegin(); - struct.txn_ids = new ArrayList<Long>(_list410.size); - for (int _i411 = 0; _i411 < _list410.size; ++_i411) + org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); + struct.txn_ids = new ArrayList<Long>(_list444.size); + for (int _i445 = 0; _i445 < _list444.size; ++_i445) { - long _elem412; // required - _elem412 = iprot.readI64(); - struct.txn_ids.add(_elem412); + long _elem446; // required + _elem446 = iprot.readI64(); + struct.txn_ids.add(_elem446); } 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 _iter413 : struct.txn_ids) + for (long _iter447 : struct.txn_ids) { - oprot.writeI64(_iter413); + oprot.writeI64(_iter447); } oprot.writeListEnd(); } @@ -409,9 +409,9 @@ public class OpenTxnsResponse implements TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter414 : struct.txn_ids) + for (long _iter448 : struct.txn_ids) { - oprot.writeI64(_iter414); + oprot.writeI64(_iter448); } } } @@ -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 _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList<Long>(_list415.size); - for (int _i416 = 0; _i416 < _list415.size; ++_i416) + org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList<Long>(_list449.size); + for (int _i450 = 0; _i450 < _list449.size; ++_i450) { - long _elem417; // required - _elem417 = iprot.readI64(); - struct.txn_ids.add(_elem417); + long _elem451; // required + _elem451 = iprot.readI64(); + struct.txn_ids.add(_elem451); } } struct.setTxn_idsIsSet(true); Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java?rev=1622748&view=auto ============================================================================== --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java (added) +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java Fri Sep 5 17:52:32 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 PartitionListComposingSpec implements org.apache.thrift.TBase<PartitionListComposingSpec, PartitionListComposingSpec._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionListComposingSpec"); + + private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", 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 PartitionListComposingSpecStandardSchemeFactory()); + schemes.put(TupleScheme.class, new PartitionListComposingSpecTupleSchemeFactory()); + } + + private List<Partition> partitions; // 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 { + PARTITIONS((short)1, "partitions"); + + 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: // PARTITIONS + return PARTITIONS; + 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.PARTITIONS, new org.apache.thrift.meta_data.FieldMetaData("partitions", 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, Partition.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionListComposingSpec.class, metaDataMap); + } + + public PartitionListComposingSpec() { + } + + public PartitionListComposingSpec( + List<Partition> partitions) + { + this(); + this.partitions = partitions; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public PartitionListComposingSpec(PartitionListComposingSpec other) { + if (other.isSetPartitions()) { + List<Partition> __this__partitions = new ArrayList<Partition>(); + for (Partition other_element : other.partitions) { + __this__partitions.add(new Partition(other_element)); + } + this.partitions = __this__partitions; + } + } + + public PartitionListComposingSpec deepCopy() { + return new PartitionListComposingSpec(this); + } + + @Override + public void clear() { + this.partitions = null; + } + + public int getPartitionsSize() { + return (this.partitions == null) ? 0 : this.partitions.size(); + } + + public java.util.Iterator<Partition> getPartitionsIterator() { + return (this.partitions == null) ? null : this.partitions.iterator(); + } + + public void addToPartitions(Partition elem) { + if (this.partitions == null) { + this.partitions = new ArrayList<Partition>(); + } + this.partitions.add(elem); + } + + public List<Partition> getPartitions() { + return this.partitions; + } + + public void setPartitions(List<Partition> partitions) { + this.partitions = partitions; + } + + public void unsetPartitions() { + this.partitions = null; + } + + /** Returns true if field partitions is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitions() { + return this.partitions != null; + } + + public void setPartitionsIsSet(boolean value) { + if (!value) { + this.partitions = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PARTITIONS: + if (value == null) { + unsetPartitions(); + } else { + setPartitions((List<Partition>)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PARTITIONS: + return getPartitions(); + + } + 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 PARTITIONS: + return isSetPartitions(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof PartitionListComposingSpec) + return this.equals((PartitionListComposingSpec)that); + return false; + } + + public boolean equals(PartitionListComposingSpec that) { + if (that == null) + return false; + + boolean this_present_partitions = true && this.isSetPartitions(); + boolean that_present_partitions = true && that.isSetPartitions(); + if (this_present_partitions || that_present_partitions) { + if (!(this_present_partitions && that_present_partitions)) + return false; + if (!this.partitions.equals(that.partitions)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_partitions = true && (isSetPartitions()); + builder.append(present_partitions); + if (present_partitions) + builder.append(partitions); + + return builder.toHashCode(); + } + + public int compareTo(PartitionListComposingSpec other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + PartitionListComposingSpec typedOther = (PartitionListComposingSpec)other; + + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); + 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("PartitionListComposingSpec("); + boolean first = true; + + sb.append("partitions:"); + if (this.partitions == null) { + sb.append("null"); + } else { + sb.append(this.partitions); + } + 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 PartitionListComposingSpecStandardSchemeFactory implements SchemeFactory { + public PartitionListComposingSpecStandardScheme getScheme() { + return new PartitionListComposingSpecStandardScheme(); + } + } + + private static class PartitionListComposingSpecStandardScheme extends StandardScheme<PartitionListComposingSpec> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionListComposingSpec 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: // PARTITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list252 = iprot.readListBegin(); + struct.partitions = new ArrayList<Partition>(_list252.size); + for (int _i253 = 0; _i253 < _list252.size; ++_i253) + { + Partition _elem254; // required + _elem254 = new Partition(); + _elem254.read(iprot); + struct.partitions.add(_elem254); + } + iprot.readListEnd(); + } + struct.setPartitionsIsSet(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, PartitionListComposingSpec struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.partitions != null) { + oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); + for (Partition _iter255 : struct.partitions) + { + _iter255.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class PartitionListComposingSpecTupleSchemeFactory implements SchemeFactory { + public PartitionListComposingSpecTupleScheme getScheme() { + return new PartitionListComposingSpecTupleScheme(); + } + } + + private static class PartitionListComposingSpecTupleScheme extends TupleScheme<PartitionListComposingSpec> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, PartitionListComposingSpec struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPartitions()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPartitions()) { + { + oprot.writeI32(struct.partitions.size()); + for (Partition _iter256 : struct.partitions) + { + _iter256.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, PartitionListComposingSpec struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list257 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList<Partition>(_list257.size); + for (int _i258 = 0; _i258 < _list257.size; ++_i258) + { + Partition _elem259; // required + _elem259 = new Partition(); + _elem259.read(iprot); + struct.partitions.add(_elem259); + } + } + struct.setPartitionsIsSet(true); + } + } + } + +} + Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java?rev=1622748&view=auto ============================================================================== --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java (added) +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java Fri Sep 5 17:52:32 2014 @@ -0,0 +1,822 @@ +/** + * 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 PartitionSpec implements org.apache.thrift.TBase<PartitionSpec, PartitionSpec._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionSpec"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField ROOT_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("rootPath", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField SHARED_SDPARTITION_SPEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sharedSDPartitionSpec", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField PARTITION_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionList", org.apache.thrift.protocol.TType.STRUCT, (short)5); + + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new PartitionSpecStandardSchemeFactory()); + schemes.put(TupleScheme.class, new PartitionSpecTupleSchemeFactory()); + } + + private String dbName; // required + private String tableName; // required + private String rootPath; // required + private PartitionSpecWithSharedSD sharedSDPartitionSpec; // optional + private PartitionListComposingSpec partitionList; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TABLE_NAME((short)2, "tableName"), + ROOT_PATH((short)3, "rootPath"), + SHARED_SDPARTITION_SPEC((short)4, "sharedSDPartitionSpec"), + PARTITION_LIST((short)5, "partitionList"); + + 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: // DB_NAME + return DB_NAME; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // ROOT_PATH + return ROOT_PATH; + case 4: // SHARED_SDPARTITION_SPEC + return SHARED_SDPARTITION_SPEC; + case 5: // PARTITION_LIST + return PARTITION_LIST; + 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 + private _Fields optionals[] = {_Fields.SHARED_SDPARTITION_SPEC,_Fields.PARTITION_LIST}; + 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ROOT_PATH, new org.apache.thrift.meta_data.FieldMetaData("rootPath", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SHARED_SDPARTITION_SPEC, new org.apache.thrift.meta_data.FieldMetaData("sharedSDPartitionSpec", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpecWithSharedSD.class))); + tmpMap.put(_Fields.PARTITION_LIST, new org.apache.thrift.meta_data.FieldMetaData("partitionList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionListComposingSpec.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionSpec.class, metaDataMap); + } + + public PartitionSpec() { + } + + public PartitionSpec( + String dbName, + String tableName, + String rootPath) + { + this(); + this.dbName = dbName; + this.tableName = tableName; + this.rootPath = rootPath; + } + + /** + * Performs a deep copy on <i>other</i>. + */ + public PartitionSpec(PartitionSpec other) { + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTableName()) { + this.tableName = other.tableName; + } + if (other.isSetRootPath()) { + this.rootPath = other.rootPath; + } + if (other.isSetSharedSDPartitionSpec()) { + this.sharedSDPartitionSpec = new PartitionSpecWithSharedSD(other.sharedSDPartitionSpec); + } + if (other.isSetPartitionList()) { + this.partitionList = new PartitionListComposingSpec(other.partitionList); + } + } + + public PartitionSpec deepCopy() { + return new PartitionSpec(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tableName = null; + this.rootPath = null; + this.sharedSDPartitionSpec = null; + this.partitionList = null; + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public void unsetDbName() { + this.dbName = null; + } + + /** Returns true if field dbName is set (has been assigned a value) and false otherwise */ + public boolean isSetDbName() { + return this.dbName != null; + } + + public void setDbNameIsSet(boolean value) { + if (!value) { + this.dbName = null; + } + } + + public String getTableName() { + return this.tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public void unsetTableName() { + this.tableName = null; + } + + /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ + public boolean isSetTableName() { + return this.tableName != null; + } + + public void setTableNameIsSet(boolean value) { + if (!value) { + this.tableName = null; + } + } + + public String getRootPath() { + return this.rootPath; + } + + public void setRootPath(String rootPath) { + this.rootPath = rootPath; + } + + public void unsetRootPath() { + this.rootPath = null; + } + + /** Returns true if field rootPath is set (has been assigned a value) and false otherwise */ + public boolean isSetRootPath() { + return this.rootPath != null; + } + + public void setRootPathIsSet(boolean value) { + if (!value) { + this.rootPath = null; + } + } + + public PartitionSpecWithSharedSD getSharedSDPartitionSpec() { + return this.sharedSDPartitionSpec; + } + + public void setSharedSDPartitionSpec(PartitionSpecWithSharedSD sharedSDPartitionSpec) { + this.sharedSDPartitionSpec = sharedSDPartitionSpec; + } + + public void unsetSharedSDPartitionSpec() { + this.sharedSDPartitionSpec = null; + } + + /** Returns true if field sharedSDPartitionSpec is set (has been assigned a value) and false otherwise */ + public boolean isSetSharedSDPartitionSpec() { + return this.sharedSDPartitionSpec != null; + } + + public void setSharedSDPartitionSpecIsSet(boolean value) { + if (!value) { + this.sharedSDPartitionSpec = null; + } + } + + public PartitionListComposingSpec getPartitionList() { + return this.partitionList; + } + + public void setPartitionList(PartitionListComposingSpec partitionList) { + this.partitionList = partitionList; + } + + public void unsetPartitionList() { + this.partitionList = null; + } + + /** Returns true if field partitionList is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionList() { + return this.partitionList != null; + } + + public void setPartitionListIsSet(boolean value) { + if (!value) { + this.partitionList = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTableName(); + } else { + setTableName((String)value); + } + break; + + case ROOT_PATH: + if (value == null) { + unsetRootPath(); + } else { + setRootPath((String)value); + } + break; + + case SHARED_SDPARTITION_SPEC: + if (value == null) { + unsetSharedSDPartitionSpec(); + } else { + setSharedSDPartitionSpec((PartitionSpecWithSharedSD)value); + } + break; + + case PARTITION_LIST: + if (value == null) { + unsetPartitionList(); + } else { + setPartitionList((PartitionListComposingSpec)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TABLE_NAME: + return getTableName(); + + case ROOT_PATH: + return getRootPath(); + + case SHARED_SDPARTITION_SPEC: + return getSharedSDPartitionSpec(); + + case PARTITION_LIST: + return getPartitionList(); + + } + 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 DB_NAME: + return isSetDbName(); + case TABLE_NAME: + return isSetTableName(); + case ROOT_PATH: + return isSetRootPath(); + case SHARED_SDPARTITION_SPEC: + return isSetSharedSDPartitionSpec(); + case PARTITION_LIST: + return isSetPartitionList(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof PartitionSpec) + return this.equals((PartitionSpec)that); + return false; + } + + public boolean equals(PartitionSpec that) { + if (that == null) + return false; + + boolean this_present_dbName = true && this.isSetDbName(); + boolean that_present_dbName = true && that.isSetDbName(); + if (this_present_dbName || that_present_dbName) { + if (!(this_present_dbName && that_present_dbName)) + return false; + if (!this.dbName.equals(that.dbName)) + return false; + } + + boolean this_present_tableName = true && this.isSetTableName(); + boolean that_present_tableName = true && that.isSetTableName(); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!this.tableName.equals(that.tableName)) + return false; + } + + boolean this_present_rootPath = true && this.isSetRootPath(); + boolean that_present_rootPath = true && that.isSetRootPath(); + if (this_present_rootPath || that_present_rootPath) { + if (!(this_present_rootPath && that_present_rootPath)) + return false; + if (!this.rootPath.equals(that.rootPath)) + return false; + } + + boolean this_present_sharedSDPartitionSpec = true && this.isSetSharedSDPartitionSpec(); + boolean that_present_sharedSDPartitionSpec = true && that.isSetSharedSDPartitionSpec(); + if (this_present_sharedSDPartitionSpec || that_present_sharedSDPartitionSpec) { + if (!(this_present_sharedSDPartitionSpec && that_present_sharedSDPartitionSpec)) + return false; + if (!this.sharedSDPartitionSpec.equals(that.sharedSDPartitionSpec)) + return false; + } + + boolean this_present_partitionList = true && this.isSetPartitionList(); + boolean that_present_partitionList = true && that.isSetPartitionList(); + if (this_present_partitionList || that_present_partitionList) { + if (!(this_present_partitionList && that_present_partitionList)) + return false; + if (!this.partitionList.equals(that.partitionList)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_dbName = true && (isSetDbName()); + builder.append(present_dbName); + if (present_dbName) + builder.append(dbName); + + boolean present_tableName = true && (isSetTableName()); + builder.append(present_tableName); + if (present_tableName) + builder.append(tableName); + + boolean present_rootPath = true && (isSetRootPath()); + builder.append(present_rootPath); + if (present_rootPath) + builder.append(rootPath); + + boolean present_sharedSDPartitionSpec = true && (isSetSharedSDPartitionSpec()); + builder.append(present_sharedSDPartitionSpec); + if (present_sharedSDPartitionSpec) + builder.append(sharedSDPartitionSpec); + + boolean present_partitionList = true && (isSetPartitionList()); + builder.append(present_partitionList); + if (present_partitionList) + builder.append(partitionList); + + return builder.toHashCode(); + } + + public int compareTo(PartitionSpec other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + PartitionSpec typedOther = (PartitionSpec)other; + + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDbName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRootPath()).compareTo(typedOther.isSetRootPath()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRootPath()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootPath, typedOther.rootPath); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSharedSDPartitionSpec()).compareTo(typedOther.isSetSharedSDPartitionSpec()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSharedSDPartitionSpec()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sharedSDPartitionSpec, typedOther.sharedSDPartitionSpec); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionList()).compareTo(typedOther.isSetPartitionList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionList, typedOther.partitionList); + 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("PartitionSpec("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tableName:"); + if (this.tableName == null) { + sb.append("null"); + } else { + sb.append(this.tableName); + } + first = false; + if (!first) sb.append(", "); + sb.append("rootPath:"); + if (this.rootPath == null) { + sb.append("null"); + } else { + sb.append(this.rootPath); + } + first = false; + if (isSetSharedSDPartitionSpec()) { + if (!first) sb.append(", "); + sb.append("sharedSDPartitionSpec:"); + if (this.sharedSDPartitionSpec == null) { + sb.append("null"); + } else { + sb.append(this.sharedSDPartitionSpec); + } + first = false; + } + if (isSetPartitionList()) { + if (!first) sb.append(", "); + sb.append("partitionList:"); + if (this.partitionList == null) { + sb.append("null"); + } else { + sb.append(this.partitionList); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (sharedSDPartitionSpec != null) { + sharedSDPartitionSpec.validate(); + } + if (partitionList != null) { + partitionList.validate(); + } + } + + 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 PartitionSpecStandardSchemeFactory implements SchemeFactory { + public PartitionSpecStandardScheme getScheme() { + return new PartitionSpecStandardScheme(); + } + } + + private static class PartitionSpecStandardScheme extends StandardScheme<PartitionSpec> { + + public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionSpec 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: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ROOT_PATH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.rootPath = iprot.readString(); + struct.setRootPathIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // SHARED_SDPARTITION_SPEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sharedSDPartitionSpec = new PartitionSpecWithSharedSD(); + struct.sharedSDPartitionSpec.read(iprot); + struct.setSharedSDPartitionSpecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // PARTITION_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.partitionList = new PartitionListComposingSpec(); + struct.partitionList.read(iprot); + struct.setPartitionListIsSet(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, PartitionSpec struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tableName != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.tableName); + oprot.writeFieldEnd(); + } + if (struct.rootPath != null) { + oprot.writeFieldBegin(ROOT_PATH_FIELD_DESC); + oprot.writeString(struct.rootPath); + oprot.writeFieldEnd(); + } + if (struct.sharedSDPartitionSpec != null) { + if (struct.isSetSharedSDPartitionSpec()) { + oprot.writeFieldBegin(SHARED_SDPARTITION_SPEC_FIELD_DESC); + struct.sharedSDPartitionSpec.write(oprot); + oprot.writeFieldEnd(); + } + } + if (struct.partitionList != null) { + if (struct.isSetPartitionList()) { + oprot.writeFieldBegin(PARTITION_LIST_FIELD_DESC); + struct.partitionList.write(oprot); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class PartitionSpecTupleSchemeFactory implements SchemeFactory { + public PartitionSpecTupleScheme getScheme() { + return new PartitionSpecTupleScheme(); + } + } + + private static class PartitionSpecTupleScheme extends TupleScheme<PartitionSpec> { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, PartitionSpec struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDbName()) { + optionals.set(0); + } + if (struct.isSetTableName()) { + optionals.set(1); + } + if (struct.isSetRootPath()) { + optionals.set(2); + } + if (struct.isSetSharedSDPartitionSpec()) { + optionals.set(3); + } + if (struct.isSetPartitionList()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetDbName()) { + oprot.writeString(struct.dbName); + } + if (struct.isSetTableName()) { + oprot.writeString(struct.tableName); + } + if (struct.isSetRootPath()) { + oprot.writeString(struct.rootPath); + } + if (struct.isSetSharedSDPartitionSpec()) { + struct.sharedSDPartitionSpec.write(oprot); + } + if (struct.isSetPartitionList()) { + struct.partitionList.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, PartitionSpec struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } + if (incoming.get(1)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(2)) { + struct.rootPath = iprot.readString(); + struct.setRootPathIsSet(true); + } + if (incoming.get(3)) { + struct.sharedSDPartitionSpec = new PartitionSpecWithSharedSD(); + struct.sharedSDPartitionSpec.read(iprot); + struct.setSharedSDPartitionSpecIsSet(true); + } + if (incoming.get(4)) { + struct.partitionList = new PartitionListComposingSpec(); + struct.partitionList.read(iprot); + struct.setPartitionListIsSet(true); + } + } + } + +} +
