Index: metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java =================================================================== --- metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java (revision 1368350) +++ metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java (working copy) @@ -106,8 +106,93 @@ } /** + * tests view related operations + * + * @throws Exception + */ + public void testView() throws Exception { + try { + // Currently, there are no APIs to perform view operations directly. + // Once HIVE-3328 is fixed, this test should be changed to use the APIs + // introduced in the jira. + String dbName = "compdb"; + String tblName = "comptbl"; + + List vals = makeVals("2008-07-01 14:13:12", "14"); + + client.dropTable(dbName, tblName); + silentDropDatabase(dbName); + Database db = new Database(); + db.setName(dbName); + client.createDatabase(db); + db = client.getDatabase(dbName); + Path dbPath = new Path(db.getLocationUri()); + FileSystem fs = FileSystem.get(dbPath.toUri(), hiveConf); + boolean inheritPerms = hiveConf.getBoolVar( + HiveConf.ConfVars.HIVE_WAREHOUSE_SUBDIR_INHERIT_PERMS); + FsPermission dbPermission = fs.getFileStatus(dbPath).getPermission(); + if (inheritPerms) { + //Set different perms for the database dir for further tests + dbPermission = new FsPermission((short)488); + fs.setPermission(dbPath, dbPermission); + } + + List cols = new ArrayList(2); + cols.add(new FieldSchema("name", Constants.STRING_TYPE_NAME, "")); + cols.add(new FieldSchema("income", Constants.INT_TYPE_NAME, "")); + + Table view = new Table(); + view.setDbName(dbName); + view.setTableName(tblName); + StorageDescriptor sd = new StorageDescriptor(); + view.setSd(sd); + sd.setCols(cols); + sd.setCompressed(false); + sd.setNumBuckets(-1); + sd.setSerdeInfo(new SerDeInfo()); + sd.getSerdeInfo().setName(view.getTableName()); + sd.getSerdeInfo().setParameters(new HashMap()); + sd.getSerdeInfo().getParameters() + .put(Constants.SERIALIZATION_FORMAT, "1"); + sd.setSortCols(new ArrayList()); + + view.setPartitionKeys(new ArrayList(2)); + view.getPartitionKeys().add( + new FieldSchema("ds", Constants.STRING_TYPE_NAME, "")); + view.getPartitionKeys().add( + new FieldSchema("hr", Constants.STRING_TYPE_NAME, "")); + + view.setTableType(TableType.VIRTUAL_VIEW.toString()); + + // There should be a API to createView, but until then + // use the overloaded API + client.createTable(view); + + boolean exceptionThrown = false; + try { + Partition retp6 = client.getPartitionTemplate(dbName, tblName, vals); + } catch (MetaException e1) { + exceptionThrown = true; + } + assertTrue("getPartitionTemplate() should have thrown MetaException" + + " due to being invoked on a view ", exceptionThrown); + + for (String tableName : client.getTables(dbName, "*")) { + client.dropTable(dbName, tableName); + } + + client.dropDatabase(dbName); + } + catch (Exception e) { + System.err.println(StringUtils.stringifyException(e)); + System.err.println("testView() failed."); + throw e; + } + } + + /** * tests create table and partition and tries to drop the table without - * droppping the partition + * dropping the partition * * @throws Exception */ @@ -125,6 +210,7 @@ List vals2 = makeVals("2008-07-01 14:13:12", "15"); List vals3 = makeVals("2008-07-02 14:13:12", "15"); List vals4 = makeVals("2008-07-03 14:13:12", "151"); + List vals5 = makeVals("2008-07-04 14:13:12", "16"); client.dropTable(dbName, tblName); silentDropDatabase(dbName); @@ -223,6 +309,37 @@ assertEquals(dbPermission, fs.getFileStatus(new Path(retp4.getSd().getLocation())) .getPermission()); + Partition retp5 = client.getPartitionTemplate(dbName, tblName, vals5); + assertEquals("New partition does not have values set", vals5, retp5.getValues()); + assertEquals("New partition does not have database name set", dbName, retp5.getDbName()); + assertEquals("New partition does not have table name set", + tblName, retp5.getTableName()); + assertEquals("New partition does not have last access time set", + 0, retp5.getLastAccessTime()); + assertEquals("New partition does not have columns set", + sd.getCols(), retp5.getSd().getCols()); + + String invalidDbName = "invalid", invalidTblName = "invalid"; + + exceptionThrown = false; + try { + Partition retp6 = client.getPartitionTemplate(invalidDbName, tblName, vals5); + } catch (InvalidObjectException e1) { + exceptionThrown = true; + } + assertTrue("getPartitionTemplate() should have thrown InvalidObjectException" + + " due to invalid dbName", exceptionThrown); + + exceptionThrown = false; + try { + Partition retp7 = client.getPartitionTemplate(dbName, invalidTblName, vals5); + } catch (InvalidObjectException e1) { + exceptionThrown = true; + } + + assertTrue("getPartitionTemplate() should have thrown InvalidObjectException" + + " due to invalid table name", exceptionThrown); + Partition part_get = client.getPartition(dbName, tblName, part.getValues()); if(isThriftClient) { // since we are using thrift, 'part' will not have the create time and Index: metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java =================================================================== --- metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java (revision 1368350) +++ metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java (working copy) @@ -290,6 +290,21 @@ throws InvalidObjectException, AlreadyExistsException, MetaException, TException; /** + * Get a Partition Object without adding it to metastore. Similar to appendPartition, + * but does not call addPartition. + * + * @param tableName + * @param dbName + * @param partVals + * @return + * @throws InvalidObjectException + * @throws MetaException + * @throws TException + */ + public Partition getPartitionTemplate(String tableName, String dbName, + List partVals) throws InvalidObjectException, MetaException, TException; + + /** * Add a partition to the table. * * @param partition Index: metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java =================================================================== --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java (revision 1368350) +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java (working copy) @@ -376,6 +376,12 @@ client.append_partition_by_name(dbName, tableName, partName)); } + public Partition getPartitionTemplate(String db_name, String table_name, + List part_vals) throws InvalidObjectException, + MetaException, TException { + return deepCopy(client.get_partition_template(db_name, table_name, part_vals)); + } + /** * Create a new Database * @param db Index: metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java =================================================================== --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java (revision 1368350) +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java (working copy) @@ -1274,42 +1274,14 @@ List part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException { - Partition part = new Partition(); + Partition part = null; boolean success = false, madeDir = false; Path partLocation = null; try { ms.openTransaction(); - part.setDbName(dbName); - part.setTableName(tableName); - part.setValues(part_vals); + part = get_partition_template_core(dbName, tableName, part_vals, true); + partLocation = new Path(part.getSd().getLocation()); - Table tbl = ms.getTable(part.getDbName(), part.getTableName()); - if (tbl == null) { - throw new InvalidObjectException( - "Unable to add partition because table or database do not exist"); - } - if (tbl.getSd().getLocation() == null) { - throw new MetaException( - "Cannot append a partition to a view"); - } - - part.setSd(tbl.getSd()); - partLocation = new Path(tbl.getSd().getLocation(), Warehouse - .makePartName(tbl.getPartitionKeys(), part_vals)); - part.getSd().setLocation(partLocation.toString()); - - Partition old_part = null; - try { - old_part = ms.getPartition(part.getDbName(), part - .getTableName(), part.getValues()); - } catch (NoSuchObjectException e) { - // this means there is no existing partition - old_part = null; - } - if (old_part != null) { - throw new AlreadyExistsException("Partition already exists:" + part); - } - if (!wh.isDir(partLocation)) { if (!wh.mkdirs(partLocation)) { throw new MetaException(partLocation @@ -1317,12 +1289,6 @@ } madeDir = true; } - - // set create time - long time = System.currentTimeMillis() / 1000; - part.setCreateTime((int) time); - part.putToParameters(Constants.DDL_TIME, Long.toString(time)); - success = ms.addPartition(part); if (success) { success = ms.commitTransaction(); @@ -1338,6 +1304,74 @@ return part; } + @Override + public Partition get_partition_template(String dbName, String tableName, + List part_vals) throws InvalidObjectException, MetaException { + + startPartitionFunction("get_partition_template", dbName, tableName, part_vals); + Partition part = null; + + try { + part = get_partition_template_core(dbName, tableName, part_vals, false); + } catch (AlreadyExistsException e) { + // ignore it. this will not happen + } finally { + endFunction("get_partition_template", part != null); + } + return part; + } + + private Partition get_partition_template_core(String dbName, String tableName, + List part_vals, boolean failIfExists) throws InvalidObjectException, + AlreadyExistsException, MetaException { + + Partition part = new Partition(); + Path partLocation = null; + RawStore ms = getMS(); + + part.setDbName(dbName); + part.setTableName(tableName); + part.setValues(part_vals); + + Table tbl = ms.getTable(part.getDbName(), part.getTableName()); + if (tbl == null) { + throw new InvalidObjectException( + "Unable to get partition because table or database do not exist"); + } + String tableType = tbl.getTableType(); + if (!(tableType.equals(TableType.MANAGED_TABLE.toString()) || + tableType.equals(TableType.EXTERNAL_TABLE.toString()))) { + throw new MetaException( + "This can only be performed on tables (both managed and external)."); + } + + part.setSd(tbl.getSd()); + partLocation = new Path(tbl.getSd().getLocation(), Warehouse + .makePartName(tbl.getPartitionKeys(), part_vals)); + part.getSd().setLocation(partLocation.toString()); + + if (failIfExists) { + Partition old_part = null; + try { + old_part = ms.getPartition(part.getDbName(), part + .getTableName(), part.getValues()); + } catch (NoSuchObjectException e) { + // this means there is no existing partition + old_part = null; + } + if (old_part != null) { + throw new AlreadyExistsException("Partition already exists:" + part); + } + } + + // set create time + long time = System.currentTimeMillis() / 1000; + part.setCreateTime((int) time); + part.putToParameters(Constants.DDL_TIME, Long.toString(time)); + + return part; + } + public Partition append_partition(final String dbName, final String tableName, final List part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException { @@ -1502,13 +1536,13 @@ // Default value is empty string in which case no properties will be inherited. // * implies all properties needs to be inherited Set inheritKeys = new HashSet(Arrays.asList(inheritProps.split(","))); - if(inheritKeys.contains("*")){ + if (inheritKeys.contains("*")){ inheritKeys = tblParams.keySet(); } for (String key : inheritKeys) { String paramVal = tblParams.get(key); - if(null != paramVal){ // add the property only if it exists in table properties + if (null != paramVal){ // add the property only if it exists in table properties part.putToParameters(key, paramVal); } } @@ -1784,7 +1818,7 @@ TException { startTableFunction("alter_partition", db_name, tbl_name); - if(LOG.isInfoEnabled()) { + if (LOG.isInfoEnabled()) { LOG.info("New partition values:" + new_part.getValues()); if (part_vals != null && part_vals.size() > 0) { LOG.info("Old Partition values:" + part_vals); Index: metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py =================================================================== --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py (revision 1368350) +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py (working copy) @@ -248,6 +248,15 @@ """ pass + def get_partition_template(self, db_name, tbl_name, part_vals): + """ + Parameters: + - db_name + - tbl_name + - part_vals + """ + pass + def get_partition(self, db_name, tbl_name, part_vals): """ Parameters: @@ -1644,6 +1653,44 @@ raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result"); + def get_partition_template(self, db_name, tbl_name, part_vals): + """ + Parameters: + - db_name + - tbl_name + - part_vals + """ + self.send_get_partition_template(db_name, tbl_name, part_vals) + return self.recv_get_partition_template() + + def send_get_partition_template(self, db_name, tbl_name, part_vals): + self._oprot.writeMessageBegin('get_partition_template', TMessageType.CALL, self._seqid) + args = get_partition_template_args() + args.db_name = db_name + args.tbl_name = tbl_name + args.part_vals = part_vals + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_partition_template(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = get_partition_template_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_template failed: unknown result"); + def get_partition(self, db_name, tbl_name, part_vals): """ Parameters: @@ -3114,6 +3161,7 @@ self._processMap["append_partition_by_name"] = Processor.process_append_partition_by_name self._processMap["drop_partition"] = Processor.process_drop_partition self._processMap["drop_partition_by_name"] = Processor.process_drop_partition_by_name + self._processMap["get_partition_template"] = Processor.process_get_partition_template self._processMap["get_partition"] = Processor.process_get_partition self._processMap["get_partition_with_auth"] = Processor.process_get_partition_with_auth self._processMap["get_partition_by_name"] = Processor.process_get_partition_by_name @@ -3655,6 +3703,22 @@ oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partition_template(self, seqid, iprot, oprot): + args = get_partition_template_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partition_template_result() + try: + result.success = self._handler.get_partition_template(args.db_name, args.tbl_name, args.part_vals) + except InvalidObjectException, o1: + result.o1 = o1 + except MetaException, o2: + result.o2 = o2 + oprot.writeMessageBegin("get_partition_template", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partition(self, seqid, iprot, oprot): args = get_partition_args() args.read(iprot) @@ -8982,7 +9046,7 @@ def __ne__(self, other): return not (self == other) -class get_partition_args: +class get_partition_template_args: """ Attributes: - db_name @@ -9040,7 +9104,7 @@ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_partition_args') + oprot.writeStructBegin('get_partition_template_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -9074,6 +9138,184 @@ def __ne__(self, other): return not (self == other) +class get_partition_template_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (Partition, Partition.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = Partition() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = InvalidObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_template_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_partition_args: + """ + Attributes: + - db_name + - tbl_name + - part_vals + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING,None), None, ), # 3 + ) + + def __init__(self, db_name=None, tbl_name=None, part_vals=None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_vals = part_vals + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.db_name = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.part_vals = [] + (_etype286, _size283) = iprot.readListBegin() + for _i287 in xrange(_size283): + _elem288 = iprot.readString(); + self.part_vals.append(_elem288) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name) + oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter289 in self.part_vals: + oprot.writeString(iter289) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class get_partition_result: """ Attributes: @@ -9208,10 +9450,10 @@ elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype286, _size283) = iprot.readListBegin() - for _i287 in xrange(_size283): - _elem288 = iprot.readString(); - self.part_vals.append(_elem288) + (_etype293, _size290) = iprot.readListBegin() + for _i294 in xrange(_size290): + _elem295 = iprot.readString(); + self.part_vals.append(_elem295) iprot.readListEnd() else: iprot.skip(ftype) @@ -9223,10 +9465,10 @@ elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype292, _size289) = iprot.readListBegin() - for _i293 in xrange(_size289): - _elem294 = iprot.readString(); - self.group_names.append(_elem294) + (_etype299, _size296) = iprot.readListBegin() + for _i300 in xrange(_size296): + _elem301 = iprot.readString(); + self.group_names.append(_elem301) iprot.readListEnd() else: iprot.skip(ftype) @@ -9251,8 +9493,8 @@ if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter295 in self.part_vals: - oprot.writeString(iter295) + for iter302 in self.part_vals: + oprot.writeString(iter302) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -9262,8 +9504,8 @@ if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter296 in self.group_names: - oprot.writeString(iter296) + for iter303 in self.group_names: + oprot.writeString(iter303) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9655,11 +9897,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype300, _size297) = iprot.readListBegin() - for _i301 in xrange(_size297): - _elem302 = Partition() - _elem302.read(iprot) - self.success.append(_elem302) + (_etype307, _size304) = iprot.readListBegin() + for _i308 in xrange(_size304): + _elem309 = Partition() + _elem309.read(iprot) + self.success.append(_elem309) iprot.readListEnd() else: iprot.skip(ftype) @@ -9688,8 +9930,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter303 in self.success: - iter303.write(oprot) + for iter310 in self.success: + iter310.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9776,10 +10018,10 @@ elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype307, _size304) = iprot.readListBegin() - for _i308 in xrange(_size304): - _elem309 = iprot.readString(); - self.group_names.append(_elem309) + (_etype314, _size311) = iprot.readListBegin() + for _i315 in xrange(_size311): + _elem316 = iprot.readString(); + self.group_names.append(_elem316) iprot.readListEnd() else: iprot.skip(ftype) @@ -9812,8 +10054,8 @@ if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter310 in self.group_names: - oprot.writeString(iter310) + for iter317 in self.group_names: + oprot.writeString(iter317) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9865,11 +10107,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype314, _size311) = iprot.readListBegin() - for _i315 in xrange(_size311): - _elem316 = Partition() - _elem316.read(iprot) - self.success.append(_elem316) + (_etype321, _size318) = iprot.readListBegin() + for _i322 in xrange(_size318): + _elem323 = Partition() + _elem323.read(iprot) + self.success.append(_elem323) iprot.readListEnd() else: iprot.skip(ftype) @@ -9898,8 +10140,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter317 in self.success: - iter317.write(oprot) + for iter324 in self.success: + iter324.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10040,10 +10282,10 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype321, _size318) = iprot.readListBegin() - for _i322 in xrange(_size318): - _elem323 = iprot.readString(); - self.success.append(_elem323) + (_etype328, _size325) = iprot.readListBegin() + for _i329 in xrange(_size325): + _elem330 = iprot.readString(); + self.success.append(_elem330) iprot.readListEnd() else: iprot.skip(ftype) @@ -10066,8 +10308,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter324 in self.success: - oprot.writeString(iter324) + for iter331 in self.success: + oprot.writeString(iter331) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -10137,10 +10379,10 @@ elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype328, _size325) = iprot.readListBegin() - for _i329 in xrange(_size325): - _elem330 = iprot.readString(); - self.part_vals.append(_elem330) + (_etype335, _size332) = iprot.readListBegin() + for _i336 in xrange(_size332): + _elem337 = iprot.readString(); + self.part_vals.append(_elem337) iprot.readListEnd() else: iprot.skip(ftype) @@ -10170,8 +10412,8 @@ if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter331 in self.part_vals: - oprot.writeString(iter331) + for iter338 in self.part_vals: + oprot.writeString(iter338) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -10227,11 +10469,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype335, _size332) = iprot.readListBegin() - for _i336 in xrange(_size332): - _elem337 = Partition() - _elem337.read(iprot) - self.success.append(_elem337) + (_etype342, _size339) = iprot.readListBegin() + for _i343 in xrange(_size339): + _elem344 = Partition() + _elem344.read(iprot) + self.success.append(_elem344) iprot.readListEnd() else: iprot.skip(ftype) @@ -10260,8 +10502,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter338 in self.success: - iter338.write(oprot) + for iter345 in self.success: + iter345.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10341,10 +10583,10 @@ elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype342, _size339) = iprot.readListBegin() - for _i343 in xrange(_size339): - _elem344 = iprot.readString(); - self.part_vals.append(_elem344) + (_etype349, _size346) = iprot.readListBegin() + for _i350 in xrange(_size346): + _elem351 = iprot.readString(); + self.part_vals.append(_elem351) iprot.readListEnd() else: iprot.skip(ftype) @@ -10361,10 +10603,10 @@ elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype348, _size345) = iprot.readListBegin() - for _i349 in xrange(_size345): - _elem350 = iprot.readString(); - self.group_names.append(_elem350) + (_etype355, _size352) = iprot.readListBegin() + for _i356 in xrange(_size352): + _elem357 = iprot.readString(); + self.group_names.append(_elem357) iprot.readListEnd() else: iprot.skip(ftype) @@ -10389,8 +10631,8 @@ if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter351 in self.part_vals: - oprot.writeString(iter351) + for iter358 in self.part_vals: + oprot.writeString(iter358) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -10404,8 +10646,8 @@ if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter352 in self.group_names: - oprot.writeString(iter352) + for iter359 in self.group_names: + oprot.writeString(iter359) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10457,11 +10699,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype356, _size353) = iprot.readListBegin() - for _i357 in xrange(_size353): - _elem358 = Partition() - _elem358.read(iprot) - self.success.append(_elem358) + (_etype363, _size360) = iprot.readListBegin() + for _i364 in xrange(_size360): + _elem365 = Partition() + _elem365.read(iprot) + self.success.append(_elem365) iprot.readListEnd() else: iprot.skip(ftype) @@ -10490,8 +10732,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter359 in self.success: - iter359.write(oprot) + for iter366 in self.success: + iter366.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10565,10 +10807,10 @@ elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype363, _size360) = iprot.readListBegin() - for _i364 in xrange(_size360): - _elem365 = iprot.readString(); - self.part_vals.append(_elem365) + (_etype370, _size367) = iprot.readListBegin() + for _i371 in xrange(_size367): + _elem372 = iprot.readString(); + self.part_vals.append(_elem372) iprot.readListEnd() else: iprot.skip(ftype) @@ -10598,8 +10840,8 @@ if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter366 in self.part_vals: - oprot.writeString(iter366) + for iter373 in self.part_vals: + oprot.writeString(iter373) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -10655,10 +10897,10 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype370, _size367) = iprot.readListBegin() - for _i371 in xrange(_size367): - _elem372 = iprot.readString(); - self.success.append(_elem372) + (_etype377, _size374) = iprot.readListBegin() + for _i378 in xrange(_size374): + _elem379 = iprot.readString(); + self.success.append(_elem379) iprot.readListEnd() else: iprot.skip(ftype) @@ -10687,8 +10929,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter373 in self.success: - oprot.writeString(iter373) + for iter380 in self.success: + oprot.writeString(iter380) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10844,11 +11086,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype377, _size374) = iprot.readListBegin() - for _i378 in xrange(_size374): - _elem379 = Partition() - _elem379.read(iprot) - self.success.append(_elem379) + (_etype384, _size381) = iprot.readListBegin() + for _i385 in xrange(_size381): + _elem386 = Partition() + _elem386.read(iprot) + self.success.append(_elem386) iprot.readListEnd() else: iprot.skip(ftype) @@ -10877,8 +11119,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter380 in self.success: - iter380.write(oprot) + for iter387 in self.success: + iter387.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10949,10 +11191,10 @@ elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype384, _size381) = iprot.readListBegin() - for _i385 in xrange(_size381): - _elem386 = iprot.readString(); - self.names.append(_elem386) + (_etype391, _size388) = iprot.readListBegin() + for _i392 in xrange(_size388): + _elem393 = iprot.readString(); + self.names.append(_elem393) iprot.readListEnd() else: iprot.skip(ftype) @@ -10977,8 +11219,8 @@ if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter387 in self.names: - oprot.writeString(iter387) + for iter394 in self.names: + oprot.writeString(iter394) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11030,11 +11272,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype391, _size388) = iprot.readListBegin() - for _i392 in xrange(_size388): - _elem393 = Partition() - _elem393.read(iprot) - self.success.append(_elem393) + (_etype398, _size395) = iprot.readListBegin() + for _i399 in xrange(_size395): + _elem400 = Partition() + _elem400.read(iprot) + self.success.append(_elem400) iprot.readListEnd() else: iprot.skip(ftype) @@ -11063,8 +11305,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter394 in self.success: - iter394.write(oprot) + for iter401 in self.success: + iter401.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -11469,10 +11711,10 @@ elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype398, _size395) = iprot.readListBegin() - for _i399 in xrange(_size395): - _elem400 = iprot.readString(); - self.part_vals.append(_elem400) + (_etype405, _size402) = iprot.readListBegin() + for _i406 in xrange(_size402): + _elem407 = iprot.readString(); + self.part_vals.append(_elem407) iprot.readListEnd() else: iprot.skip(ftype) @@ -11503,8 +11745,8 @@ if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter401 in self.part_vals: - oprot.writeString(iter401) + for iter408 in self.part_vals: + oprot.writeString(iter408) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -11835,10 +12077,10 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype405, _size402) = iprot.readListBegin() - for _i406 in xrange(_size402): - _elem407 = iprot.readString(); - self.success.append(_elem407) + (_etype412, _size409) = iprot.readListBegin() + for _i413 in xrange(_size409): + _elem414 = iprot.readString(); + self.success.append(_elem414) iprot.readListEnd() else: iprot.skip(ftype) @@ -11861,8 +12103,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter408 in self.success: - oprot.writeString(iter408) + for iter415 in self.success: + oprot.writeString(iter415) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -11975,11 +12217,11 @@ if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype410, _vtype411, _size409 ) = iprot.readMapBegin() - for _i413 in xrange(_size409): - _key414 = iprot.readString(); - _val415 = iprot.readString(); - self.success[_key414] = _val415 + (_ktype417, _vtype418, _size416 ) = iprot.readMapBegin() + for _i420 in xrange(_size416): + _key421 = iprot.readString(); + _val422 = iprot.readString(); + self.success[_key421] = _val422 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12002,9 +12244,9 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter416,viter417 in self.success.items(): - oprot.writeString(kiter416) - oprot.writeString(viter417) + for kiter423,viter424 in self.success.items(): + oprot.writeString(kiter423) + oprot.writeString(viter424) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12074,11 +12316,11 @@ elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype419, _vtype420, _size418 ) = iprot.readMapBegin() - for _i422 in xrange(_size418): - _key423 = iprot.readString(); - _val424 = iprot.readString(); - self.part_vals[_key423] = _val424 + (_ktype426, _vtype427, _size425 ) = iprot.readMapBegin() + for _i429 in xrange(_size425): + _key430 = iprot.readString(); + _val431 = iprot.readString(); + self.part_vals[_key430] = _val431 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12108,9 +12350,9 @@ if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter425,viter426 in self.part_vals.items(): - oprot.writeString(kiter425) - oprot.writeString(viter426) + for kiter432,viter433 in self.part_vals.items(): + oprot.writeString(kiter432) + oprot.writeString(viter433) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -12306,11 +12548,11 @@ elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype428, _vtype429, _size427 ) = iprot.readMapBegin() - for _i431 in xrange(_size427): - _key432 = iprot.readString(); - _val433 = iprot.readString(); - self.part_vals[_key432] = _val433 + (_ktype435, _vtype436, _size434 ) = iprot.readMapBegin() + for _i438 in xrange(_size434): + _key439 = iprot.readString(); + _val440 = iprot.readString(); + self.part_vals[_key439] = _val440 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12340,9 +12582,9 @@ if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter434,viter435 in self.part_vals.items(): - oprot.writeString(kiter434) - oprot.writeString(viter435) + for kiter441,viter442 in self.part_vals.items(): + oprot.writeString(kiter441) + oprot.writeString(viter442) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -13314,11 +13556,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype439, _size436) = iprot.readListBegin() - for _i440 in xrange(_size436): - _elem441 = Index() - _elem441.read(iprot) - self.success.append(_elem441) + (_etype446, _size443) = iprot.readListBegin() + for _i447 in xrange(_size443): + _elem448 = Index() + _elem448.read(iprot) + self.success.append(_elem448) iprot.readListEnd() else: iprot.skip(ftype) @@ -13347,8 +13589,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter442 in self.success: - iter442.write(oprot) + for iter449 in self.success: + iter449.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13489,10 +13731,10 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype446, _size443) = iprot.readListBegin() - for _i447 in xrange(_size443): - _elem448 = iprot.readString(); - self.success.append(_elem448) + (_etype453, _size450) = iprot.readListBegin() + for _i454 in xrange(_size450): + _elem455 = iprot.readString(); + self.success.append(_elem455) iprot.readListEnd() else: iprot.skip(ftype) @@ -13515,8 +13757,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter449 in self.success: - oprot.writeString(iter449) + for iter456 in self.success: + oprot.writeString(iter456) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -13876,10 +14118,10 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype453, _size450) = iprot.readListBegin() - for _i454 in xrange(_size450): - _elem455 = iprot.readString(); - self.success.append(_elem455) + (_etype460, _size457) = iprot.readListBegin() + for _i461 in xrange(_size457): + _elem462 = iprot.readString(); + self.success.append(_elem462) iprot.readListEnd() else: iprot.skip(ftype) @@ -13902,8 +14144,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter456 in self.success: - oprot.writeString(iter456) + for iter463 in self.success: + oprot.writeString(iter463) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14376,11 +14618,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype460, _size457) = iprot.readListBegin() - for _i461 in xrange(_size457): - _elem462 = Role() - _elem462.read(iprot) - self.success.append(_elem462) + (_etype467, _size464) = iprot.readListBegin() + for _i468 in xrange(_size464): + _elem469 = Role() + _elem469.read(iprot) + self.success.append(_elem469) iprot.readListEnd() else: iprot.skip(ftype) @@ -14403,8 +14645,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter463 in self.success: - iter463.write(oprot) + for iter470 in self.success: + iter470.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14472,10 +14714,10 @@ elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype467, _size464) = iprot.readListBegin() - for _i468 in xrange(_size464): - _elem469 = iprot.readString(); - self.group_names.append(_elem469) + (_etype474, _size471) = iprot.readListBegin() + for _i475 in xrange(_size471): + _elem476 = iprot.readString(); + self.group_names.append(_elem476) iprot.readListEnd() else: iprot.skip(ftype) @@ -14500,8 +14742,8 @@ if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter470 in self.group_names: - oprot.writeString(iter470) + for iter477 in self.group_names: + oprot.writeString(iter477) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14708,11 +14950,11 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype474, _size471) = iprot.readListBegin() - for _i475 in xrange(_size471): - _elem476 = HiveObjectPrivilege() - _elem476.read(iprot) - self.success.append(_elem476) + (_etype481, _size478) = iprot.readListBegin() + for _i482 in xrange(_size478): + _elem483 = HiveObjectPrivilege() + _elem483.read(iprot) + self.success.append(_elem483) iprot.readListEnd() else: iprot.skip(ftype) @@ -14735,8 +14977,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter477 in self.success: - iter477.write(oprot) + for iter484 in self.success: + iter484.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15061,10 +15303,10 @@ elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype481, _size478) = iprot.readListBegin() - for _i482 in xrange(_size478): - _elem483 = iprot.readString(); - self.group_names.append(_elem483) + (_etype488, _size485) = iprot.readListBegin() + for _i489 in xrange(_size485): + _elem490 = iprot.readString(); + self.group_names.append(_elem490) iprot.readListEnd() else: iprot.skip(ftype) @@ -15085,8 +15327,8 @@ if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter484 in self.group_names: - oprot.writeString(iter484) + for iter491 in self.group_names: + oprot.writeString(iter491) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15135,10 +15377,10 @@ if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype488, _size485) = iprot.readListBegin() - for _i489 in xrange(_size485): - _elem490 = iprot.readString(); - self.success.append(_elem490) + (_etype495, _size492) = iprot.readListBegin() + for _i496 in xrange(_size492): + _elem497 = iprot.readString(); + self.success.append(_elem497) iprot.readListEnd() else: iprot.skip(ftype) @@ -15161,8 +15403,8 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter491 in self.success: - oprot.writeString(iter491) + for iter498 in self.success: + oprot.writeString(iter498) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: Index: metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote =================================================================== --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote (revision 1368350) +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote (working copy) @@ -50,6 +50,7 @@ print ' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)' print ' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)' print ' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)' + print ' Partition get_partition_template(string db_name, string tbl_name, part_vals)' print ' Partition get_partition(string db_name, string tbl_name, part_vals)' print ' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)' print ' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)' @@ -313,6 +314,12 @@ sys.exit(1) pp.pprint(client.drop_partition_by_name(args[0],args[1],args[2],eval(args[3]),)) +elif cmd == 'get_partition_template': + if len(args) != 3: + print 'get_partition_template requires 3 args' + sys.exit(1) + pp.pprint(client.get_partition_template(args[0],args[1],eval(args[2]),)) + elif cmd == 'get_partition': if len(args) != 3: print 'get_partition requires 3 args' Index: metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp =================================================================== --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp (revision 1368350) +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp (working copy) @@ -6608,7 +6608,7 @@ return xfer; } -uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_template_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6676,9 +6676,9 @@ return xfer; } -uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partition_template_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_template_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); xfer += oprot->writeFieldEnd(); @@ -6701,9 +6701,9 @@ return xfer; } -uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partition_template_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_template_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->db_name))); xfer += oprot->writeFieldEnd(); @@ -6726,7 +6726,7 @@ return xfer; } -uint32_t ThriftHiveMetastore_get_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_template_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6782,11 +6782,11 @@ return xfer; } -uint32_t ThriftHiveMetastore_get_partition_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partition_template_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_template_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -6806,7 +6806,7 @@ return xfer; } -uint32_t ThriftHiveMetastore_get_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_template_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6862,7 +6862,7 @@ return xfer; } -uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6918,6 +6918,260 @@ xfer += iprot->skip(ftype); } break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_args"); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); + std::vector ::const_iterator _iter306; + for (_iter306 = this->part_vals.begin(); _iter306 != this->part_vals.end(); ++_iter306) + { + xfer += oprot->writeString((*_iter306)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_pargs"); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); + std::vector ::const_iterator _iter307; + for (_iter307 = (*(this->part_vals)).begin(); _iter307 != (*(this->part_vals)).end(); ++_iter307) + { + xfer += oprot->writeString((*_iter307)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->part_vals.clear(); + uint32_t _size308; + ::apache::thrift::protocol::TType _etype311; + iprot->readListBegin(_etype311, _size308); + this->part_vals.resize(_size308); + uint32_t _i312; + for (_i312 = 0; _i312 < _size308; ++_i312) + { + xfer += iprot->readString(this->part_vals[_i312]); + } + iprot->readListEnd(); + } + this->__isset.part_vals = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->user_name); @@ -6930,14 +7184,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size306; - ::apache::thrift::protocol::TType _etype309; - iprot->readListBegin(_etype309, _size306); - this->group_names.resize(_size306); - uint32_t _i310; - for (_i310 = 0; _i310 < _size306; ++_i310) + uint32_t _size313; + ::apache::thrift::protocol::TType _etype316; + iprot->readListBegin(_etype316, _size313); + this->group_names.resize(_size313); + uint32_t _i317; + for (_i317 = 0; _i317 < _size313; ++_i317) { - xfer += iprot->readString(this->group_names[_i310]); + xfer += iprot->readString(this->group_names[_i317]); } iprot->readListEnd(); } @@ -6970,10 +7224,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter311; - for (_iter311 = this->part_vals.begin(); _iter311 != this->part_vals.end(); ++_iter311) + std::vector ::const_iterator _iter318; + for (_iter318 = this->part_vals.begin(); _iter318 != this->part_vals.end(); ++_iter318) { - xfer += oprot->writeString((*_iter311)); + xfer += oprot->writeString((*_iter318)); } xfer += oprot->writeListEnd(); } @@ -6984,10 +7238,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter312; - for (_iter312 = this->group_names.begin(); _iter312 != this->group_names.end(); ++_iter312) + std::vector ::const_iterator _iter319; + for (_iter319 = this->group_names.begin(); _iter319 != this->group_names.end(); ++_iter319) { - xfer += oprot->writeString((*_iter312)); + xfer += oprot->writeString((*_iter319)); } xfer += oprot->writeListEnd(); } @@ -7009,10 +7263,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter313; - for (_iter313 = (*(this->part_vals)).begin(); _iter313 != (*(this->part_vals)).end(); ++_iter313) + std::vector ::const_iterator _iter320; + for (_iter320 = (*(this->part_vals)).begin(); _iter320 != (*(this->part_vals)).end(); ++_iter320) { - xfer += oprot->writeString((*_iter313)); + xfer += oprot->writeString((*_iter320)); } xfer += oprot->writeListEnd(); } @@ -7023,10 +7277,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter314; - for (_iter314 = (*(this->group_names)).begin(); _iter314 != (*(this->group_names)).end(); ++_iter314) + std::vector ::const_iterator _iter321; + for (_iter321 = (*(this->group_names)).begin(); _iter321 != (*(this->group_names)).end(); ++_iter321) { - xfer += oprot->writeString((*_iter314)); + xfer += oprot->writeString((*_iter321)); } xfer += oprot->writeListEnd(); } @@ -7512,14 +7766,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size315; - ::apache::thrift::protocol::TType _etype318; - iprot->readListBegin(_etype318, _size315); - this->success.resize(_size315); - uint32_t _i319; - for (_i319 = 0; _i319 < _size315; ++_i319) + uint32_t _size322; + ::apache::thrift::protocol::TType _etype325; + iprot->readListBegin(_etype325, _size322); + this->success.resize(_size322); + uint32_t _i326; + for (_i326 = 0; _i326 < _size322; ++_i326) { - xfer += this->success[_i319].read(iprot); + xfer += this->success[_i326].read(iprot); } iprot->readListEnd(); } @@ -7566,10 +7820,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter320; - for (_iter320 = this->success.begin(); _iter320 != this->success.end(); ++_iter320) + std::vector ::const_iterator _iter327; + for (_iter327 = this->success.begin(); _iter327 != this->success.end(); ++_iter327) { - xfer += (*_iter320).write(oprot); + xfer += (*_iter327).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7612,14 +7866,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size321; - ::apache::thrift::protocol::TType _etype324; - iprot->readListBegin(_etype324, _size321); - (*(this->success)).resize(_size321); - uint32_t _i325; - for (_i325 = 0; _i325 < _size321; ++_i325) + uint32_t _size328; + ::apache::thrift::protocol::TType _etype331; + iprot->readListBegin(_etype331, _size328); + (*(this->success)).resize(_size328); + uint32_t _i332; + for (_i332 = 0; _i332 < _size328; ++_i332) { - xfer += (*(this->success))[_i325].read(iprot); + xfer += (*(this->success))[_i332].read(iprot); } iprot->readListEnd(); } @@ -7712,14 +7966,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size326; - ::apache::thrift::protocol::TType _etype329; - iprot->readListBegin(_etype329, _size326); - this->group_names.resize(_size326); - uint32_t _i330; - for (_i330 = 0; _i330 < _size326; ++_i330) + uint32_t _size333; + ::apache::thrift::protocol::TType _etype336; + iprot->readListBegin(_etype336, _size333); + this->group_names.resize(_size333); + uint32_t _i337; + for (_i337 = 0; _i337 < _size333; ++_i337) { - xfer += iprot->readString(this->group_names[_i330]); + xfer += iprot->readString(this->group_names[_i337]); } iprot->readListEnd(); } @@ -7758,10 +8012,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter331; - for (_iter331 = this->group_names.begin(); _iter331 != this->group_names.end(); ++_iter331) + std::vector ::const_iterator _iter338; + for (_iter338 = this->group_names.begin(); _iter338 != this->group_names.end(); ++_iter338) { - xfer += oprot->writeString((*_iter331)); + xfer += oprot->writeString((*_iter338)); } xfer += oprot->writeListEnd(); } @@ -7789,10 +8043,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter332; - for (_iter332 = (*(this->group_names)).begin(); _iter332 != (*(this->group_names)).end(); ++_iter332) + std::vector ::const_iterator _iter339; + for (_iter339 = (*(this->group_names)).begin(); _iter339 != (*(this->group_names)).end(); ++_iter339) { - xfer += oprot->writeString((*_iter332)); + xfer += oprot->writeString((*_iter339)); } xfer += oprot->writeListEnd(); } @@ -7826,14 +8080,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size333; - ::apache::thrift::protocol::TType _etype336; - iprot->readListBegin(_etype336, _size333); - this->success.resize(_size333); - uint32_t _i337; - for (_i337 = 0; _i337 < _size333; ++_i337) + uint32_t _size340; + ::apache::thrift::protocol::TType _etype343; + iprot->readListBegin(_etype343, _size340); + this->success.resize(_size340); + uint32_t _i344; + for (_i344 = 0; _i344 < _size340; ++_i344) { - xfer += this->success[_i337].read(iprot); + xfer += this->success[_i344].read(iprot); } iprot->readListEnd(); } @@ -7880,10 +8134,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter338; - for (_iter338 = this->success.begin(); _iter338 != this->success.end(); ++_iter338) + std::vector ::const_iterator _iter345; + for (_iter345 = this->success.begin(); _iter345 != this->success.end(); ++_iter345) { - xfer += (*_iter338).write(oprot); + xfer += (*_iter345).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7926,14 +8180,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size339; - ::apache::thrift::protocol::TType _etype342; - iprot->readListBegin(_etype342, _size339); - (*(this->success)).resize(_size339); - uint32_t _i343; - for (_i343 = 0; _i343 < _size339; ++_i343) + uint32_t _size346; + ::apache::thrift::protocol::TType _etype349; + iprot->readListBegin(_etype349, _size346); + (*(this->success)).resize(_size346); + uint32_t _i350; + for (_i350 = 0; _i350 < _size346; ++_i350) { - xfer += (*(this->success))[_i343].read(iprot); + xfer += (*(this->success))[_i350].read(iprot); } iprot->readListEnd(); } @@ -8084,14 +8338,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size344; - ::apache::thrift::protocol::TType _etype347; - iprot->readListBegin(_etype347, _size344); - this->success.resize(_size344); - uint32_t _i348; - for (_i348 = 0; _i348 < _size344; ++_i348) + uint32_t _size351; + ::apache::thrift::protocol::TType _etype354; + iprot->readListBegin(_etype354, _size351); + this->success.resize(_size351); + uint32_t _i355; + for (_i355 = 0; _i355 < _size351; ++_i355) { - xfer += iprot->readString(this->success[_i348]); + xfer += iprot->readString(this->success[_i355]); } iprot->readListEnd(); } @@ -8130,10 +8384,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter349; - for (_iter349 = this->success.begin(); _iter349 != this->success.end(); ++_iter349) + std::vector ::const_iterator _iter356; + for (_iter356 = this->success.begin(); _iter356 != this->success.end(); ++_iter356) { - xfer += oprot->writeString((*_iter349)); + xfer += oprot->writeString((*_iter356)); } xfer += oprot->writeListEnd(); } @@ -8172,14 +8426,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size350; - ::apache::thrift::protocol::TType _etype353; - iprot->readListBegin(_etype353, _size350); - (*(this->success)).resize(_size350); - uint32_t _i354; - for (_i354 = 0; _i354 < _size350; ++_i354) + uint32_t _size357; + ::apache::thrift::protocol::TType _etype360; + iprot->readListBegin(_etype360, _size357); + (*(this->success)).resize(_size357); + uint32_t _i361; + for (_i361 = 0; _i361 < _size357; ++_i361) { - xfer += iprot->readString((*(this->success))[_i354]); + xfer += iprot->readString((*(this->success))[_i361]); } iprot->readListEnd(); } @@ -8248,14 +8502,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size355; - ::apache::thrift::protocol::TType _etype358; - iprot->readListBegin(_etype358, _size355); - this->part_vals.resize(_size355); - uint32_t _i359; - for (_i359 = 0; _i359 < _size355; ++_i359) + uint32_t _size362; + ::apache::thrift::protocol::TType _etype365; + iprot->readListBegin(_etype365, _size362); + this->part_vals.resize(_size362); + uint32_t _i366; + for (_i366 = 0; _i366 < _size362; ++_i366) { - xfer += iprot->readString(this->part_vals[_i359]); + xfer += iprot->readString(this->part_vals[_i366]); } iprot->readListEnd(); } @@ -8296,10 +8550,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter360; - for (_iter360 = this->part_vals.begin(); _iter360 != this->part_vals.end(); ++_iter360) + std::vector ::const_iterator _iter367; + for (_iter367 = this->part_vals.begin(); _iter367 != this->part_vals.end(); ++_iter367) { - xfer += oprot->writeString((*_iter360)); + xfer += oprot->writeString((*_iter367)); } xfer += oprot->writeListEnd(); } @@ -8324,10 +8578,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter361; - for (_iter361 = (*(this->part_vals)).begin(); _iter361 != (*(this->part_vals)).end(); ++_iter361) + std::vector ::const_iterator _iter368; + for (_iter368 = (*(this->part_vals)).begin(); _iter368 != (*(this->part_vals)).end(); ++_iter368) { - xfer += oprot->writeString((*_iter361)); + xfer += oprot->writeString((*_iter368)); } xfer += oprot->writeListEnd(); } @@ -8364,14 +8618,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size362; - ::apache::thrift::protocol::TType _etype365; - iprot->readListBegin(_etype365, _size362); - this->success.resize(_size362); - uint32_t _i366; - for (_i366 = 0; _i366 < _size362; ++_i366) + uint32_t _size369; + ::apache::thrift::protocol::TType _etype372; + iprot->readListBegin(_etype372, _size369); + this->success.resize(_size369); + uint32_t _i373; + for (_i373 = 0; _i373 < _size369; ++_i373) { - xfer += this->success[_i366].read(iprot); + xfer += this->success[_i373].read(iprot); } iprot->readListEnd(); } @@ -8418,10 +8672,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter367; - for (_iter367 = this->success.begin(); _iter367 != this->success.end(); ++_iter367) + std::vector ::const_iterator _iter374; + for (_iter374 = this->success.begin(); _iter374 != this->success.end(); ++_iter374) { - xfer += (*_iter367).write(oprot); + xfer += (*_iter374).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8464,14 +8718,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size368; - ::apache::thrift::protocol::TType _etype371; - iprot->readListBegin(_etype371, _size368); - (*(this->success)).resize(_size368); - uint32_t _i372; - for (_i372 = 0; _i372 < _size368; ++_i372) + uint32_t _size375; + ::apache::thrift::protocol::TType _etype378; + iprot->readListBegin(_etype378, _size375); + (*(this->success)).resize(_size375); + uint32_t _i379; + for (_i379 = 0; _i379 < _size375; ++_i379) { - xfer += (*(this->success))[_i372].read(iprot); + xfer += (*(this->success))[_i379].read(iprot); } iprot->readListEnd(); } @@ -8548,14 +8802,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size373; - ::apache::thrift::protocol::TType _etype376; - iprot->readListBegin(_etype376, _size373); - this->part_vals.resize(_size373); - uint32_t _i377; - for (_i377 = 0; _i377 < _size373; ++_i377) + uint32_t _size380; + ::apache::thrift::protocol::TType _etype383; + iprot->readListBegin(_etype383, _size380); + this->part_vals.resize(_size380); + uint32_t _i384; + for (_i384 = 0; _i384 < _size380; ++_i384) { - xfer += iprot->readString(this->part_vals[_i377]); + xfer += iprot->readString(this->part_vals[_i384]); } iprot->readListEnd(); } @@ -8584,14 +8838,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size378; - ::apache::thrift::protocol::TType _etype381; - iprot->readListBegin(_etype381, _size378); - this->group_names.resize(_size378); - uint32_t _i382; - for (_i382 = 0; _i382 < _size378; ++_i382) + uint32_t _size385; + ::apache::thrift::protocol::TType _etype388; + iprot->readListBegin(_etype388, _size385); + this->group_names.resize(_size385); + uint32_t _i389; + for (_i389 = 0; _i389 < _size385; ++_i389) { - xfer += iprot->readString(this->group_names[_i382]); + xfer += iprot->readString(this->group_names[_i389]); } iprot->readListEnd(); } @@ -8624,10 +8878,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter383; - for (_iter383 = this->part_vals.begin(); _iter383 != this->part_vals.end(); ++_iter383) + std::vector ::const_iterator _iter390; + for (_iter390 = this->part_vals.begin(); _iter390 != this->part_vals.end(); ++_iter390) { - xfer += oprot->writeString((*_iter383)); + xfer += oprot->writeString((*_iter390)); } xfer += oprot->writeListEnd(); } @@ -8641,10 +8895,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter384; - for (_iter384 = this->group_names.begin(); _iter384 != this->group_names.end(); ++_iter384) + std::vector ::const_iterator _iter391; + for (_iter391 = this->group_names.begin(); _iter391 != this->group_names.end(); ++_iter391) { - xfer += oprot->writeString((*_iter384)); + xfer += oprot->writeString((*_iter391)); } xfer += oprot->writeListEnd(); } @@ -8666,10 +8920,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter385; - for (_iter385 = (*(this->part_vals)).begin(); _iter385 != (*(this->part_vals)).end(); ++_iter385) + std::vector ::const_iterator _iter392; + for (_iter392 = (*(this->part_vals)).begin(); _iter392 != (*(this->part_vals)).end(); ++_iter392) { - xfer += oprot->writeString((*_iter385)); + xfer += oprot->writeString((*_iter392)); } xfer += oprot->writeListEnd(); } @@ -8683,10 +8937,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter386; - for (_iter386 = (*(this->group_names)).begin(); _iter386 != (*(this->group_names)).end(); ++_iter386) + std::vector ::const_iterator _iter393; + for (_iter393 = (*(this->group_names)).begin(); _iter393 != (*(this->group_names)).end(); ++_iter393) { - xfer += oprot->writeString((*_iter386)); + xfer += oprot->writeString((*_iter393)); } xfer += oprot->writeListEnd(); } @@ -8720,14 +8974,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size387; - ::apache::thrift::protocol::TType _etype390; - iprot->readListBegin(_etype390, _size387); - this->success.resize(_size387); - uint32_t _i391; - for (_i391 = 0; _i391 < _size387; ++_i391) + uint32_t _size394; + ::apache::thrift::protocol::TType _etype397; + iprot->readListBegin(_etype397, _size394); + this->success.resize(_size394); + uint32_t _i398; + for (_i398 = 0; _i398 < _size394; ++_i398) { - xfer += this->success[_i391].read(iprot); + xfer += this->success[_i398].read(iprot); } iprot->readListEnd(); } @@ -8774,10 +9028,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter392; - for (_iter392 = this->success.begin(); _iter392 != this->success.end(); ++_iter392) + std::vector ::const_iterator _iter399; + for (_iter399 = this->success.begin(); _iter399 != this->success.end(); ++_iter399) { - xfer += (*_iter392).write(oprot); + xfer += (*_iter399).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8820,14 +9074,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size393; - ::apache::thrift::protocol::TType _etype396; - iprot->readListBegin(_etype396, _size393); - (*(this->success)).resize(_size393); - uint32_t _i397; - for (_i397 = 0; _i397 < _size393; ++_i397) + uint32_t _size400; + ::apache::thrift::protocol::TType _etype403; + iprot->readListBegin(_etype403, _size400); + (*(this->success)).resize(_size400); + uint32_t _i404; + for (_i404 = 0; _i404 < _size400; ++_i404) { - xfer += (*(this->success))[_i397].read(iprot); + xfer += (*(this->success))[_i404].read(iprot); } iprot->readListEnd(); } @@ -8904,14 +9158,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size398; - ::apache::thrift::protocol::TType _etype401; - iprot->readListBegin(_etype401, _size398); - this->part_vals.resize(_size398); - uint32_t _i402; - for (_i402 = 0; _i402 < _size398; ++_i402) + uint32_t _size405; + ::apache::thrift::protocol::TType _etype408; + iprot->readListBegin(_etype408, _size405); + this->part_vals.resize(_size405); + uint32_t _i409; + for (_i409 = 0; _i409 < _size405; ++_i409) { - xfer += iprot->readString(this->part_vals[_i402]); + xfer += iprot->readString(this->part_vals[_i409]); } iprot->readListEnd(); } @@ -8952,10 +9206,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter403; - for (_iter403 = this->part_vals.begin(); _iter403 != this->part_vals.end(); ++_iter403) + std::vector ::const_iterator _iter410; + for (_iter410 = this->part_vals.begin(); _iter410 != this->part_vals.end(); ++_iter410) { - xfer += oprot->writeString((*_iter403)); + xfer += oprot->writeString((*_iter410)); } xfer += oprot->writeListEnd(); } @@ -8980,10 +9234,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter404; - for (_iter404 = (*(this->part_vals)).begin(); _iter404 != (*(this->part_vals)).end(); ++_iter404) + std::vector ::const_iterator _iter411; + for (_iter411 = (*(this->part_vals)).begin(); _iter411 != (*(this->part_vals)).end(); ++_iter411) { - xfer += oprot->writeString((*_iter404)); + xfer += oprot->writeString((*_iter411)); } xfer += oprot->writeListEnd(); } @@ -9020,14 +9274,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size405; - ::apache::thrift::protocol::TType _etype408; - iprot->readListBegin(_etype408, _size405); - this->success.resize(_size405); - uint32_t _i409; - for (_i409 = 0; _i409 < _size405; ++_i409) + uint32_t _size412; + ::apache::thrift::protocol::TType _etype415; + iprot->readListBegin(_etype415, _size412); + this->success.resize(_size412); + uint32_t _i416; + for (_i416 = 0; _i416 < _size412; ++_i416) { - xfer += iprot->readString(this->success[_i409]); + xfer += iprot->readString(this->success[_i416]); } iprot->readListEnd(); } @@ -9074,10 +9328,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter410; - for (_iter410 = this->success.begin(); _iter410 != this->success.end(); ++_iter410) + std::vector ::const_iterator _iter417; + for (_iter417 = this->success.begin(); _iter417 != this->success.end(); ++_iter417) { - xfer += oprot->writeString((*_iter410)); + xfer += oprot->writeString((*_iter417)); } xfer += oprot->writeListEnd(); } @@ -9120,14 +9374,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size411; - ::apache::thrift::protocol::TType _etype414; - iprot->readListBegin(_etype414, _size411); - (*(this->success)).resize(_size411); - uint32_t _i415; - for (_i415 = 0; _i415 < _size411; ++_i415) + uint32_t _size418; + ::apache::thrift::protocol::TType _etype421; + iprot->readListBegin(_etype421, _size418); + (*(this->success)).resize(_size418); + uint32_t _i422; + for (_i422 = 0; _i422 < _size418; ++_i422) { - xfer += iprot->readString((*(this->success))[_i415]); + xfer += iprot->readString((*(this->success))[_i422]); } iprot->readListEnd(); } @@ -9292,14 +9546,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size416; - ::apache::thrift::protocol::TType _etype419; - iprot->readListBegin(_etype419, _size416); - this->success.resize(_size416); - uint32_t _i420; - for (_i420 = 0; _i420 < _size416; ++_i420) + uint32_t _size423; + ::apache::thrift::protocol::TType _etype426; + iprot->readListBegin(_etype426, _size423); + this->success.resize(_size423); + uint32_t _i427; + for (_i427 = 0; _i427 < _size423; ++_i427) { - xfer += this->success[_i420].read(iprot); + xfer += this->success[_i427].read(iprot); } iprot->readListEnd(); } @@ -9346,10 +9600,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter421; - for (_iter421 = this->success.begin(); _iter421 != this->success.end(); ++_iter421) + std::vector ::const_iterator _iter428; + for (_iter428 = this->success.begin(); _iter428 != this->success.end(); ++_iter428) { - xfer += (*_iter421).write(oprot); + xfer += (*_iter428).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9392,14 +9646,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size422; - ::apache::thrift::protocol::TType _etype425; - iprot->readListBegin(_etype425, _size422); - (*(this->success)).resize(_size422); - uint32_t _i426; - for (_i426 = 0; _i426 < _size422; ++_i426) + uint32_t _size429; + ::apache::thrift::protocol::TType _etype432; + iprot->readListBegin(_etype432, _size429); + (*(this->success)).resize(_size429); + uint32_t _i433; + for (_i433 = 0; _i433 < _size429; ++_i433) { - xfer += (*(this->success))[_i426].read(iprot); + xfer += (*(this->success))[_i433].read(iprot); } iprot->readListEnd(); } @@ -9476,14 +9730,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size427; - ::apache::thrift::protocol::TType _etype430; - iprot->readListBegin(_etype430, _size427); - this->names.resize(_size427); - uint32_t _i431; - for (_i431 = 0; _i431 < _size427; ++_i431) + uint32_t _size434; + ::apache::thrift::protocol::TType _etype437; + iprot->readListBegin(_etype437, _size434); + this->names.resize(_size434); + uint32_t _i438; + for (_i438 = 0; _i438 < _size434; ++_i438) { - xfer += iprot->readString(this->names[_i431]); + xfer += iprot->readString(this->names[_i438]); } iprot->readListEnd(); } @@ -9516,10 +9770,10 @@ xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter432; - for (_iter432 = this->names.begin(); _iter432 != this->names.end(); ++_iter432) + std::vector ::const_iterator _iter439; + for (_iter439 = this->names.begin(); _iter439 != this->names.end(); ++_iter439) { - xfer += oprot->writeString((*_iter432)); + xfer += oprot->writeString((*_iter439)); } xfer += oprot->writeListEnd(); } @@ -9541,10 +9795,10 @@ xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); - std::vector ::const_iterator _iter433; - for (_iter433 = (*(this->names)).begin(); _iter433 != (*(this->names)).end(); ++_iter433) + std::vector ::const_iterator _iter440; + for (_iter440 = (*(this->names)).begin(); _iter440 != (*(this->names)).end(); ++_iter440) { - xfer += oprot->writeString((*_iter433)); + xfer += oprot->writeString((*_iter440)); } xfer += oprot->writeListEnd(); } @@ -9578,14 +9832,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size434; - ::apache::thrift::protocol::TType _etype437; - iprot->readListBegin(_etype437, _size434); - this->success.resize(_size434); - uint32_t _i438; - for (_i438 = 0; _i438 < _size434; ++_i438) + uint32_t _size441; + ::apache::thrift::protocol::TType _etype444; + iprot->readListBegin(_etype444, _size441); + this->success.resize(_size441); + uint32_t _i445; + for (_i445 = 0; _i445 < _size441; ++_i445) { - xfer += this->success[_i438].read(iprot); + xfer += this->success[_i445].read(iprot); } iprot->readListEnd(); } @@ -9632,10 +9886,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter439; - for (_iter439 = this->success.begin(); _iter439 != this->success.end(); ++_iter439) + std::vector ::const_iterator _iter446; + for (_iter446 = this->success.begin(); _iter446 != this->success.end(); ++_iter446) { - xfer += (*_iter439).write(oprot); + xfer += (*_iter446).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9678,14 +9932,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size440; - ::apache::thrift::protocol::TType _etype443; - iprot->readListBegin(_etype443, _size440); - (*(this->success)).resize(_size440); - uint32_t _i444; - for (_i444 = 0; _i444 < _size440; ++_i444) + uint32_t _size447; + ::apache::thrift::protocol::TType _etype450; + iprot->readListBegin(_etype450, _size447); + (*(this->success)).resize(_size447); + uint32_t _i451; + for (_i451 = 0; _i451 < _size447; ++_i451) { - xfer += (*(this->success))[_i444].read(iprot); + xfer += (*(this->success))[_i451].read(iprot); } iprot->readListEnd(); } @@ -10188,14 +10442,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size445; - ::apache::thrift::protocol::TType _etype448; - iprot->readListBegin(_etype448, _size445); - this->part_vals.resize(_size445); - uint32_t _i449; - for (_i449 = 0; _i449 < _size445; ++_i449) + uint32_t _size452; + ::apache::thrift::protocol::TType _etype455; + iprot->readListBegin(_etype455, _size452); + this->part_vals.resize(_size452); + uint32_t _i456; + for (_i456 = 0; _i456 < _size452; ++_i456) { - xfer += iprot->readString(this->part_vals[_i449]); + xfer += iprot->readString(this->part_vals[_i456]); } iprot->readListEnd(); } @@ -10236,10 +10490,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter450; - for (_iter450 = this->part_vals.begin(); _iter450 != this->part_vals.end(); ++_iter450) + std::vector ::const_iterator _iter457; + for (_iter457 = this->part_vals.begin(); _iter457 != this->part_vals.end(); ++_iter457) { - xfer += oprot->writeString((*_iter450)); + xfer += oprot->writeString((*_iter457)); } xfer += oprot->writeListEnd(); } @@ -10264,10 +10518,10 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter451; - for (_iter451 = (*(this->part_vals)).begin(); _iter451 != (*(this->part_vals)).end(); ++_iter451) + std::vector ::const_iterator _iter458; + for (_iter458 = (*(this->part_vals)).begin(); _iter458 != (*(this->part_vals)).end(); ++_iter458) { - xfer += oprot->writeString((*_iter451)); + xfer += oprot->writeString((*_iter458)); } xfer += oprot->writeListEnd(); } @@ -10674,14 +10928,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size452; - ::apache::thrift::protocol::TType _etype455; - iprot->readListBegin(_etype455, _size452); - this->success.resize(_size452); - uint32_t _i456; - for (_i456 = 0; _i456 < _size452; ++_i456) + uint32_t _size459; + ::apache::thrift::protocol::TType _etype462; + iprot->readListBegin(_etype462, _size459); + this->success.resize(_size459); + uint32_t _i463; + for (_i463 = 0; _i463 < _size459; ++_i463) { - xfer += iprot->readString(this->success[_i456]); + xfer += iprot->readString(this->success[_i463]); } iprot->readListEnd(); } @@ -10720,10 +10974,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter457; - for (_iter457 = this->success.begin(); _iter457 != this->success.end(); ++_iter457) + std::vector ::const_iterator _iter464; + for (_iter464 = this->success.begin(); _iter464 != this->success.end(); ++_iter464) { - xfer += oprot->writeString((*_iter457)); + xfer += oprot->writeString((*_iter464)); } xfer += oprot->writeListEnd(); } @@ -10762,14 +11016,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size458; - ::apache::thrift::protocol::TType _etype461; - iprot->readListBegin(_etype461, _size458); - (*(this->success)).resize(_size458); - uint32_t _i462; - for (_i462 = 0; _i462 < _size458; ++_i462) + uint32_t _size465; + ::apache::thrift::protocol::TType _etype468; + iprot->readListBegin(_etype468, _size465); + (*(this->success)).resize(_size465); + uint32_t _i469; + for (_i469 = 0; _i469 < _size465; ++_i469) { - xfer += iprot->readString((*(this->success))[_i462]); + xfer += iprot->readString((*(this->success))[_i469]); } iprot->readListEnd(); } @@ -10884,17 +11138,17 @@ if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size463; - ::apache::thrift::protocol::TType _ktype464; - ::apache::thrift::protocol::TType _vtype465; - iprot->readMapBegin(_ktype464, _vtype465, _size463); - uint32_t _i467; - for (_i467 = 0; _i467 < _size463; ++_i467) + uint32_t _size470; + ::apache::thrift::protocol::TType _ktype471; + ::apache::thrift::protocol::TType _vtype472; + iprot->readMapBegin(_ktype471, _vtype472, _size470); + uint32_t _i474; + for (_i474 = 0; _i474 < _size470; ++_i474) { - std::string _key468; - xfer += iprot->readString(_key468); - std::string& _val469 = this->success[_key468]; - xfer += iprot->readString(_val469); + std::string _key475; + xfer += iprot->readString(_key475); + std::string& _val476 = this->success[_key475]; + xfer += iprot->readString(_val476); } iprot->readMapEnd(); } @@ -10933,11 +11187,11 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter470; - for (_iter470 = this->success.begin(); _iter470 != this->success.end(); ++_iter470) + std::map ::const_iterator _iter477; + for (_iter477 = this->success.begin(); _iter477 != this->success.end(); ++_iter477) { - xfer += oprot->writeString(_iter470->first); - xfer += oprot->writeString(_iter470->second); + xfer += oprot->writeString(_iter477->first); + xfer += oprot->writeString(_iter477->second); } xfer += oprot->writeMapEnd(); } @@ -10976,17 +11230,17 @@ if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size471; - ::apache::thrift::protocol::TType _ktype472; - ::apache::thrift::protocol::TType _vtype473; - iprot->readMapBegin(_ktype472, _vtype473, _size471); - uint32_t _i475; - for (_i475 = 0; _i475 < _size471; ++_i475) + uint32_t _size478; + ::apache::thrift::protocol::TType _ktype479; + ::apache::thrift::protocol::TType _vtype480; + iprot->readMapBegin(_ktype479, _vtype480, _size478); + uint32_t _i482; + for (_i482 = 0; _i482 < _size478; ++_i482) { - std::string _key476; - xfer += iprot->readString(_key476); - std::string& _val477 = (*(this->success))[_key476]; - xfer += iprot->readString(_val477); + std::string _key483; + xfer += iprot->readString(_key483); + std::string& _val484 = (*(this->success))[_key483]; + xfer += iprot->readString(_val484); } iprot->readMapEnd(); } @@ -11055,17 +11309,17 @@ if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size478; - ::apache::thrift::protocol::TType _ktype479; - ::apache::thrift::protocol::TType _vtype480; - iprot->readMapBegin(_ktype479, _vtype480, _size478); - uint32_t _i482; - for (_i482 = 0; _i482 < _size478; ++_i482) + uint32_t _size485; + ::apache::thrift::protocol::TType _ktype486; + ::apache::thrift::protocol::TType _vtype487; + iprot->readMapBegin(_ktype486, _vtype487, _size485); + uint32_t _i489; + for (_i489 = 0; _i489 < _size485; ++_i489) { - std::string _key483; - xfer += iprot->readString(_key483); - std::string& _val484 = this->part_vals[_key483]; - xfer += iprot->readString(_val484); + std::string _key490; + xfer += iprot->readString(_key490); + std::string& _val491 = this->part_vals[_key490]; + xfer += iprot->readString(_val491); } iprot->readMapEnd(); } @@ -11076,9 +11330,9 @@ break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast485; - xfer += iprot->readI32(ecast485); - this->eventType = (PartitionEventType::type)ecast485; + int32_t ecast492; + xfer += iprot->readI32(ecast492); + this->eventType = (PartitionEventType::type)ecast492; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -11108,11 +11362,11 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter486; - for (_iter486 = this->part_vals.begin(); _iter486 != this->part_vals.end(); ++_iter486) + std::map ::const_iterator _iter493; + for (_iter493 = this->part_vals.begin(); _iter493 != this->part_vals.end(); ++_iter493) { - xfer += oprot->writeString(_iter486->first); - xfer += oprot->writeString(_iter486->second); + xfer += oprot->writeString(_iter493->first); + xfer += oprot->writeString(_iter493->second); } xfer += oprot->writeMapEnd(); } @@ -11137,11 +11391,11 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter487; - for (_iter487 = (*(this->part_vals)).begin(); _iter487 != (*(this->part_vals)).end(); ++_iter487) + std::map ::const_iterator _iter494; + for (_iter494 = (*(this->part_vals)).begin(); _iter494 != (*(this->part_vals)).end(); ++_iter494) { - xfer += oprot->writeString(_iter487->first); - xfer += oprot->writeString(_iter487->second); + xfer += oprot->writeString(_iter494->first); + xfer += oprot->writeString(_iter494->second); } xfer += oprot->writeMapEnd(); } @@ -11390,17 +11644,17 @@ if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size488; - ::apache::thrift::protocol::TType _ktype489; - ::apache::thrift::protocol::TType _vtype490; - iprot->readMapBegin(_ktype489, _vtype490, _size488); - uint32_t _i492; - for (_i492 = 0; _i492 < _size488; ++_i492) + uint32_t _size495; + ::apache::thrift::protocol::TType _ktype496; + ::apache::thrift::protocol::TType _vtype497; + iprot->readMapBegin(_ktype496, _vtype497, _size495); + uint32_t _i499; + for (_i499 = 0; _i499 < _size495; ++_i499) { - std::string _key493; - xfer += iprot->readString(_key493); - std::string& _val494 = this->part_vals[_key493]; - xfer += iprot->readString(_val494); + std::string _key500; + xfer += iprot->readString(_key500); + std::string& _val501 = this->part_vals[_key500]; + xfer += iprot->readString(_val501); } iprot->readMapEnd(); } @@ -11411,9 +11665,9 @@ break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast495; - xfer += iprot->readI32(ecast495); - this->eventType = (PartitionEventType::type)ecast495; + int32_t ecast502; + xfer += iprot->readI32(ecast502); + this->eventType = (PartitionEventType::type)ecast502; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -11443,11 +11697,11 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter496; - for (_iter496 = this->part_vals.begin(); _iter496 != this->part_vals.end(); ++_iter496) + std::map ::const_iterator _iter503; + for (_iter503 = this->part_vals.begin(); _iter503 != this->part_vals.end(); ++_iter503) { - xfer += oprot->writeString(_iter496->first); - xfer += oprot->writeString(_iter496->second); + xfer += oprot->writeString(_iter503->first); + xfer += oprot->writeString(_iter503->second); } xfer += oprot->writeMapEnd(); } @@ -11472,11 +11726,11 @@ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter497; - for (_iter497 = (*(this->part_vals)).begin(); _iter497 != (*(this->part_vals)).end(); ++_iter497) + std::map ::const_iterator _iter504; + for (_iter504 = (*(this->part_vals)).begin(); _iter504 != (*(this->part_vals)).end(); ++_iter504) { - xfer += oprot->writeString(_iter497->first); - xfer += oprot->writeString(_iter497->second); + xfer += oprot->writeString(_iter504->first); + xfer += oprot->writeString(_iter504->second); } xfer += oprot->writeMapEnd(); } @@ -12737,14 +12991,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size498; - ::apache::thrift::protocol::TType _etype501; - iprot->readListBegin(_etype501, _size498); - this->success.resize(_size498); - uint32_t _i502; - for (_i502 = 0; _i502 < _size498; ++_i502) + uint32_t _size505; + ::apache::thrift::protocol::TType _etype508; + iprot->readListBegin(_etype508, _size505); + this->success.resize(_size505); + uint32_t _i509; + for (_i509 = 0; _i509 < _size505; ++_i509) { - xfer += this->success[_i502].read(iprot); + xfer += this->success[_i509].read(iprot); } iprot->readListEnd(); } @@ -12791,10 +13045,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter503; - for (_iter503 = this->success.begin(); _iter503 != this->success.end(); ++_iter503) + std::vector ::const_iterator _iter510; + for (_iter510 = this->success.begin(); _iter510 != this->success.end(); ++_iter510) { - xfer += (*_iter503).write(oprot); + xfer += (*_iter510).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12837,14 +13091,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size504; - ::apache::thrift::protocol::TType _etype507; - iprot->readListBegin(_etype507, _size504); - (*(this->success)).resize(_size504); - uint32_t _i508; - for (_i508 = 0; _i508 < _size504; ++_i508) + uint32_t _size511; + ::apache::thrift::protocol::TType _etype514; + iprot->readListBegin(_etype514, _size511); + (*(this->success)).resize(_size511); + uint32_t _i515; + for (_i515 = 0; _i515 < _size511; ++_i515) { - xfer += (*(this->success))[_i508].read(iprot); + xfer += (*(this->success))[_i515].read(iprot); } iprot->readListEnd(); } @@ -12995,14 +13249,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size509; - ::apache::thrift::protocol::TType _etype512; - iprot->readListBegin(_etype512, _size509); - this->success.resize(_size509); - uint32_t _i513; - for (_i513 = 0; _i513 < _size509; ++_i513) + uint32_t _size516; + ::apache::thrift::protocol::TType _etype519; + iprot->readListBegin(_etype519, _size516); + this->success.resize(_size516); + uint32_t _i520; + for (_i520 = 0; _i520 < _size516; ++_i520) { - xfer += iprot->readString(this->success[_i513]); + xfer += iprot->readString(this->success[_i520]); } iprot->readListEnd(); } @@ -13041,10 +13295,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter514; - for (_iter514 = this->success.begin(); _iter514 != this->success.end(); ++_iter514) + std::vector ::const_iterator _iter521; + for (_iter521 = this->success.begin(); _iter521 != this->success.end(); ++_iter521) { - xfer += oprot->writeString((*_iter514)); + xfer += oprot->writeString((*_iter521)); } xfer += oprot->writeListEnd(); } @@ -13083,14 +13337,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size515; - ::apache::thrift::protocol::TType _etype518; - iprot->readListBegin(_etype518, _size515); - (*(this->success)).resize(_size515); - uint32_t _i519; - for (_i519 = 0; _i519 < _size515; ++_i519) + uint32_t _size522; + ::apache::thrift::protocol::TType _etype525; + iprot->readListBegin(_etype525, _size522); + (*(this->success)).resize(_size522); + uint32_t _i526; + for (_i526 = 0; _i526 < _size522; ++_i526) { - xfer += iprot->readString((*(this->success))[_i519]); + xfer += iprot->readString((*(this->success))[_i526]); } iprot->readListEnd(); } @@ -13547,14 +13801,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size520; - ::apache::thrift::protocol::TType _etype523; - iprot->readListBegin(_etype523, _size520); - this->success.resize(_size520); - uint32_t _i524; - for (_i524 = 0; _i524 < _size520; ++_i524) + uint32_t _size527; + ::apache::thrift::protocol::TType _etype530; + iprot->readListBegin(_etype530, _size527); + this->success.resize(_size527); + uint32_t _i531; + for (_i531 = 0; _i531 < _size527; ++_i531) { - xfer += iprot->readString(this->success[_i524]); + xfer += iprot->readString(this->success[_i531]); } iprot->readListEnd(); } @@ -13593,10 +13847,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter525; - for (_iter525 = this->success.begin(); _iter525 != this->success.end(); ++_iter525) + std::vector ::const_iterator _iter532; + for (_iter532 = this->success.begin(); _iter532 != this->success.end(); ++_iter532) { - xfer += oprot->writeString((*_iter525)); + xfer += oprot->writeString((*_iter532)); } xfer += oprot->writeListEnd(); } @@ -13635,14 +13889,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size526; - ::apache::thrift::protocol::TType _etype529; - iprot->readListBegin(_etype529, _size526); - (*(this->success)).resize(_size526); - uint32_t _i530; - for (_i530 = 0; _i530 < _size526; ++_i530) + uint32_t _size533; + ::apache::thrift::protocol::TType _etype536; + iprot->readListBegin(_etype536, _size533); + (*(this->success)).resize(_size533); + uint32_t _i537; + for (_i537 = 0; _i537 < _size533; ++_i537) { - xfer += iprot->readString((*(this->success))[_i530]); + xfer += iprot->readString((*(this->success))[_i537]); } iprot->readListEnd(); } @@ -13709,9 +13963,9 @@ break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast531; - xfer += iprot->readI32(ecast531); - this->principal_type = (PrincipalType::type)ecast531; + int32_t ecast538; + xfer += iprot->readI32(ecast538); + this->principal_type = (PrincipalType::type)ecast538; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -13727,9 +13981,9 @@ break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast532; - xfer += iprot->readI32(ecast532); - this->grantorType = (PrincipalType::type)ecast532; + int32_t ecast539; + xfer += iprot->readI32(ecast539); + this->grantorType = (PrincipalType::type)ecast539; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -13961,9 +14215,9 @@ break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast533; - xfer += iprot->readI32(ecast533); - this->principal_type = (PrincipalType::type)ecast533; + int32_t ecast540; + xfer += iprot->readI32(ecast540); + this->principal_type = (PrincipalType::type)ecast540; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -14161,9 +14415,9 @@ break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast534; - xfer += iprot->readI32(ecast534); - this->principal_type = (PrincipalType::type)ecast534; + int32_t ecast541; + xfer += iprot->readI32(ecast541); + this->principal_type = (PrincipalType::type)ecast541; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -14233,14 +14487,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size535; - ::apache::thrift::protocol::TType _etype538; - iprot->readListBegin(_etype538, _size535); - this->success.resize(_size535); - uint32_t _i539; - for (_i539 = 0; _i539 < _size535; ++_i539) + uint32_t _size542; + ::apache::thrift::protocol::TType _etype545; + iprot->readListBegin(_etype545, _size542); + this->success.resize(_size542); + uint32_t _i546; + for (_i546 = 0; _i546 < _size542; ++_i546) { - xfer += this->success[_i539].read(iprot); + xfer += this->success[_i546].read(iprot); } iprot->readListEnd(); } @@ -14279,10 +14533,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter540; - for (_iter540 = this->success.begin(); _iter540 != this->success.end(); ++_iter540) + std::vector ::const_iterator _iter547; + for (_iter547 = this->success.begin(); _iter547 != this->success.end(); ++_iter547) { - xfer += (*_iter540).write(oprot); + xfer += (*_iter547).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14321,14 +14575,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size541; - ::apache::thrift::protocol::TType _etype544; - iprot->readListBegin(_etype544, _size541); - (*(this->success)).resize(_size541); - uint32_t _i545; - for (_i545 = 0; _i545 < _size541; ++_i545) + uint32_t _size548; + ::apache::thrift::protocol::TType _etype551; + iprot->readListBegin(_etype551, _size548); + (*(this->success)).resize(_size548); + uint32_t _i552; + for (_i552 = 0; _i552 < _size548; ++_i552) { - xfer += (*(this->success))[_i545].read(iprot); + xfer += (*(this->success))[_i552].read(iprot); } iprot->readListEnd(); } @@ -14397,14 +14651,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size546; - ::apache::thrift::protocol::TType _etype549; - iprot->readListBegin(_etype549, _size546); - this->group_names.resize(_size546); - uint32_t _i550; - for (_i550 = 0; _i550 < _size546; ++_i550) + uint32_t _size553; + ::apache::thrift::protocol::TType _etype556; + iprot->readListBegin(_etype556, _size553); + this->group_names.resize(_size553); + uint32_t _i557; + for (_i557 = 0; _i557 < _size553; ++_i557) { - xfer += iprot->readString(this->group_names[_i550]); + xfer += iprot->readString(this->group_names[_i557]); } iprot->readListEnd(); } @@ -14437,10 +14691,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter551; - for (_iter551 = this->group_names.begin(); _iter551 != this->group_names.end(); ++_iter551) + std::vector ::const_iterator _iter558; + for (_iter558 = this->group_names.begin(); _iter558 != this->group_names.end(); ++_iter558) { - xfer += oprot->writeString((*_iter551)); + xfer += oprot->writeString((*_iter558)); } xfer += oprot->writeListEnd(); } @@ -14462,10 +14716,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter552; - for (_iter552 = (*(this->group_names)).begin(); _iter552 != (*(this->group_names)).end(); ++_iter552) + std::vector ::const_iterator _iter559; + for (_iter559 = (*(this->group_names)).begin(); _iter559 != (*(this->group_names)).end(); ++_iter559) { - xfer += oprot->writeString((*_iter552)); + xfer += oprot->writeString((*_iter559)); } xfer += oprot->writeListEnd(); } @@ -14621,9 +14875,9 @@ break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast553; - xfer += iprot->readI32(ecast553); - this->principal_type = (PrincipalType::type)ecast553; + int32_t ecast560; + xfer += iprot->readI32(ecast560); + this->principal_type = (PrincipalType::type)ecast560; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -14707,14 +14961,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size554; - ::apache::thrift::protocol::TType _etype557; - iprot->readListBegin(_etype557, _size554); - this->success.resize(_size554); - uint32_t _i558; - for (_i558 = 0; _i558 < _size554; ++_i558) + uint32_t _size561; + ::apache::thrift::protocol::TType _etype564; + iprot->readListBegin(_etype564, _size561); + this->success.resize(_size561); + uint32_t _i565; + for (_i565 = 0; _i565 < _size561; ++_i565) { - xfer += this->success[_i558].read(iprot); + xfer += this->success[_i565].read(iprot); } iprot->readListEnd(); } @@ -14753,10 +15007,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter559; - for (_iter559 = this->success.begin(); _iter559 != this->success.end(); ++_iter559) + std::vector ::const_iterator _iter566; + for (_iter566 = this->success.begin(); _iter566 != this->success.end(); ++_iter566) { - xfer += (*_iter559).write(oprot); + xfer += (*_iter566).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14795,14 +15049,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size560; - ::apache::thrift::protocol::TType _etype563; - iprot->readListBegin(_etype563, _size560); - (*(this->success)).resize(_size560); - uint32_t _i564; - for (_i564 = 0; _i564 < _size560; ++_i564) + uint32_t _size567; + ::apache::thrift::protocol::TType _etype570; + iprot->readListBegin(_etype570, _size567); + (*(this->success)).resize(_size567); + uint32_t _i571; + for (_i571 = 0; _i571 < _size567; ++_i571) { - xfer += (*(this->success))[_i564].read(iprot); + xfer += (*(this->success))[_i571].read(iprot); } iprot->readListEnd(); } @@ -15219,14 +15473,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size565; - ::apache::thrift::protocol::TType _etype568; - iprot->readListBegin(_etype568, _size565); - this->group_names.resize(_size565); - uint32_t _i569; - for (_i569 = 0; _i569 < _size565; ++_i569) + uint32_t _size572; + ::apache::thrift::protocol::TType _etype575; + iprot->readListBegin(_etype575, _size572); + this->group_names.resize(_size572); + uint32_t _i576; + for (_i576 = 0; _i576 < _size572; ++_i576) { - xfer += iprot->readString(this->group_names[_i569]); + xfer += iprot->readString(this->group_names[_i576]); } iprot->readListEnd(); } @@ -15256,10 +15510,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter570; - for (_iter570 = this->group_names.begin(); _iter570 != this->group_names.end(); ++_iter570) + std::vector ::const_iterator _iter577; + for (_iter577 = this->group_names.begin(); _iter577 != this->group_names.end(); ++_iter577) { - xfer += oprot->writeString((*_iter570)); + xfer += oprot->writeString((*_iter577)); } xfer += oprot->writeListEnd(); } @@ -15278,10 +15532,10 @@ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter571; - for (_iter571 = (*(this->group_names)).begin(); _iter571 != (*(this->group_names)).end(); ++_iter571) + std::vector ::const_iterator _iter578; + for (_iter578 = (*(this->group_names)).begin(); _iter578 != (*(this->group_names)).end(); ++_iter578) { - xfer += oprot->writeString((*_iter571)); + xfer += oprot->writeString((*_iter578)); } xfer += oprot->writeListEnd(); } @@ -15315,14 +15569,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size572; - ::apache::thrift::protocol::TType _etype575; - iprot->readListBegin(_etype575, _size572); - this->success.resize(_size572); - uint32_t _i576; - for (_i576 = 0; _i576 < _size572; ++_i576) + uint32_t _size579; + ::apache::thrift::protocol::TType _etype582; + iprot->readListBegin(_etype582, _size579); + this->success.resize(_size579); + uint32_t _i583; + for (_i583 = 0; _i583 < _size579; ++_i583) { - xfer += iprot->readString(this->success[_i576]); + xfer += iprot->readString(this->success[_i583]); } iprot->readListEnd(); } @@ -15361,10 +15615,10 @@ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter577; - for (_iter577 = this->success.begin(); _iter577 != this->success.end(); ++_iter577) + std::vector ::const_iterator _iter584; + for (_iter584 = this->success.begin(); _iter584 != this->success.end(); ++_iter584) { - xfer += oprot->writeString((*_iter577)); + xfer += oprot->writeString((*_iter584)); } xfer += oprot->writeListEnd(); } @@ -15403,14 +15657,14 @@ if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size578; - ::apache::thrift::protocol::TType _etype581; - iprot->readListBegin(_etype581, _size578); - (*(this->success)).resize(_size578); - uint32_t _i582; - for (_i582 = 0; _i582 < _size578; ++_i582) + uint32_t _size585; + ::apache::thrift::protocol::TType _etype588; + iprot->readListBegin(_etype588, _size585); + (*(this->success)).resize(_size585); + uint32_t _i589; + for (_i589 = 0; _i589 < _size585; ++_i589) { - xfer += iprot->readString((*(this->success))[_i582]); + xfer += iprot->readString((*(this->success))[_i589]); } iprot->readListEnd(); } @@ -17844,6 +18098,72 @@ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_by_name failed: unknown result"); } +void ThriftHiveMetastoreClient::get_partition_template(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) +{ + send_get_partition_template(db_name, tbl_name, part_vals); + recv_get_partition_template(_return); +} + +void ThriftHiveMetastoreClient::send_get_partition_template(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_partition_template", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_partition_template_pargs args; + args.db_name = &db_name; + args.tbl_name = &tbl_name; + args.part_vals = &part_vals; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_partition_template(Partition& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_partition_template") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_partition_template_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_template failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) { send_get_partition(db_name, tbl_name, part_vals); @@ -22154,6 +22474,66 @@ } } +void ThriftHiveMetastoreProcessor::process_get_partition_template(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partition_template", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition_template"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition_template"); + } + + ThriftHiveMetastore_get_partition_template_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partition_template", bytes); + } + + ThriftHiveMetastore_get_partition_template_result result; + try { + iface_->get_partition_template(result.success, args.db_name, args.tbl_name, args.part_vals); + result.__isset.success = true; + } catch (InvalidObjectException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (MetaException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition_template"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_partition_template", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partition_template"); + } + + oprot->writeMessageBegin("get_partition_template", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partition_template", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; Index: metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h =================================================================== --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (revision 1368350) +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (working copy) @@ -44,6 +44,7 @@ virtual void append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) = 0; virtual bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) = 0; virtual bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) = 0; + virtual void get_partition_template(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) = 0; virtual void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) = 0; virtual void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) = 0; virtual void get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) = 0; @@ -180,6 +181,9 @@ bool _return = false; return _return; } + void get_partition_template(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */) { + return; + } void get_partition(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */) { return; } @@ -4297,6 +4301,152 @@ }; +typedef struct _ThriftHiveMetastore_get_partition_template_args__isset { + _ThriftHiveMetastore_get_partition_template_args__isset() : db_name(false), tbl_name(false), part_vals(false) {} + bool db_name; + bool tbl_name; + bool part_vals; +} _ThriftHiveMetastore_get_partition_template_args__isset; + +class ThriftHiveMetastore_get_partition_template_args { + public: + + ThriftHiveMetastore_get_partition_template_args() : db_name(""), tbl_name("") { + } + + virtual ~ThriftHiveMetastore_get_partition_template_args() throw() {} + + std::string db_name; + std::string tbl_name; + std::vector part_vals; + + _ThriftHiveMetastore_get_partition_template_args__isset __isset; + + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + + bool operator == (const ThriftHiveMetastore_get_partition_template_args & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(tbl_name == rhs.tbl_name)) + return false; + if (!(part_vals == rhs.part_vals)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_partition_template_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_partition_template_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_partition_template_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_partition_template_pargs() throw() {} + + const std::string* db_name; + const std::string* tbl_name; + const std::vector * part_vals; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_partition_template_result__isset { + _ThriftHiveMetastore_get_partition_template_result__isset() : success(false), o1(false), o2(false) {} + bool success; + bool o1; + bool o2; +} _ThriftHiveMetastore_get_partition_template_result__isset; + +class ThriftHiveMetastore_get_partition_template_result { + public: + + ThriftHiveMetastore_get_partition_template_result() { + } + + virtual ~ThriftHiveMetastore_get_partition_template_result() throw() {} + + Partition success; + InvalidObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_get_partition_template_result__isset __isset; + + void __set_success(const Partition& val) { + success = val; + } + + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + + bool operator == (const ThriftHiveMetastore_get_partition_template_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_partition_template_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_partition_template_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_partition_template_presult__isset { + _ThriftHiveMetastore_get_partition_template_presult__isset() : success(false), o1(false), o2(false) {} + bool success; + bool o1; + bool o2; +} _ThriftHiveMetastore_get_partition_template_presult__isset; + +class ThriftHiveMetastore_get_partition_template_presult { + public: + + + virtual ~ThriftHiveMetastore_get_partition_template_presult() throw() {} + + Partition* success; + InvalidObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_get_partition_template_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_partition_args__isset { _ThriftHiveMetastore_get_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false) {} bool db_name; @@ -9880,6 +10030,9 @@ bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData); void send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData); bool recv_drop_partition_by_name(); + void get_partition_template(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); + void send_get_partition_template(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); + void recv_get_partition_template(Partition& _return); void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); void send_get_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); void recv_get_partition(Partition& _return); @@ -10034,6 +10187,7 @@ void process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partition_template(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -10106,6 +10260,7 @@ processMap_["append_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_append_partition_by_name; processMap_["drop_partition"] = &ThriftHiveMetastoreProcessor::process_drop_partition; processMap_["drop_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_drop_partition_by_name; + processMap_["get_partition_template"] = &ThriftHiveMetastoreProcessor::process_get_partition_template; processMap_["get_partition"] = &ThriftHiveMetastoreProcessor::process_get_partition; processMap_["get_partition_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partition_with_auth; processMap_["get_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_get_partition_by_name; @@ -10471,6 +10626,18 @@ } } + void get_partition_template(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { + if (i == sz - 1) { + ifaces_[i]->get_partition_template(_return, db_name, tbl_name, part_vals); + return; + } else { + ifaces_[i]->get_partition_template(_return, db_name, tbl_name, part_vals); + } + } + } + void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) { size_t sz = ifaces_.size(); for (size_t i = 0; i < sz; ++i) { Index: metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp =================================================================== --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp (revision 1368350) +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp (working copy) @@ -167,6 +167,11 @@ printf("drop_partition_by_name\n"); } + void get_partition_template(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) { + // Your implementation goes here + printf("get_partition_template\n"); + } + void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) { // Your implementation goes here printf("get_partition\n"); Index: metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb =================================================================== --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb (revision 1368350) +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb (working copy) @@ -508,6 +508,23 @@ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition_by_name failed: unknown result') end + def get_partition_template(db_name, tbl_name, part_vals) + send_get_partition_template(db_name, tbl_name, part_vals) + return recv_get_partition_template() + end + + def send_get_partition_template(db_name, tbl_name, part_vals) + send_message('get_partition_template', Get_partition_template_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals) + end + + def recv_get_partition_template() + result = receive_message(Get_partition_template_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_template failed: unknown result') + end + def get_partition(db_name, tbl_name, part_vals) send_get_partition(db_name, tbl_name, part_vals) return recv_get_partition() @@ -1559,6 +1576,19 @@ write_result(result, oprot, 'drop_partition_by_name', seqid) end + def process_get_partition_template(seqid, iprot, oprot) + args = read_args(iprot, Get_partition_template_args) + result = Get_partition_template_result.new() + begin + result.success = @handler.get_partition_template(args.db_name, args.tbl_name, args.part_vals) + rescue InvalidObjectException => o1 + result.o1 = o1 + rescue MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_partition_template', seqid) + end + def process_get_partition(seqid, iprot, oprot) args = read_args(iprot, Get_partition_args) result = Get_partition_result.new() @@ -3157,6 +3187,46 @@ ::Thrift::Struct.generate_accessors self end + class Get_partition_template_args + include ::Thrift::Struct, ::Thrift::Struct_Union + DB_NAME = 1 + TBL_NAME = 2 + PART_VALS = 3 + + FIELDS = { + DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}, + TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'}, + PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_partition_template_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_partition_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 Index: metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php =================================================================== --- metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php (revision 1368350) +++ metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php (working copy) @@ -39,6 +39,7 @@ public function append_partition_by_name($db_name, $tbl_name, $part_name); public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData); public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData); + public function get_partition_template($db_name, $tbl_name, $part_vals); public function get_partition($db_name, $tbl_name, $part_vals); public function get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names); public function get_partition_by_name($db_name, $tbl_name, $part_name); @@ -1775,6 +1776,65 @@ throw new Exception("drop_partition_by_name failed: unknown result"); } + public function get_partition_template($db_name, $tbl_name, $part_vals) + { + $this->send_get_partition_template($db_name, $tbl_name, $part_vals); + return $this->recv_get_partition_template(); + } + + public function send_get_partition_template($db_name, $tbl_name, $part_vals) + { + $args = new ThriftHiveMetastore_get_partition_template_args(); + $args->db_name = $db_name; + $args->tbl_name = $tbl_name; + $args->part_vals = $part_vals; + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_partition_template', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_partition_template', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_partition_template() + { + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partition_template_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new ThriftHiveMetastore_get_partition_template_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new Exception("get_partition_template failed: unknown result"); + } + public function get_partition($db_name, $tbl_name, $part_vals) { $this->send_get_partition($db_name, $tbl_name, $part_vals); @@ -10570,7 +10630,7 @@ } -class ThriftHiveMetastore_get_partition_args { +class ThriftHiveMetastore_get_partition_template_args { static $_TSPEC; public $db_name = null; @@ -10612,7 +10672,7 @@ } public function getName() { - return 'ThriftHiveMetastore_get_partition_args'; + return 'ThriftHiveMetastore_get_partition_template_args'; } public function read($input) @@ -10673,7 +10733,7 @@ public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_template_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -10708,6 +10768,265 @@ } +class ThriftHiveMetastore_get_partition_template_result { + static $_TSPEC; + + public $success = null; + public $o1 = null; + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => 'Partition', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => 'InvalidObjectException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => 'MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_template_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::STRUCT) { + $this->success = new Partition(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new InvalidObjectException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new MetaException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_template_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_args { + static $_TSPEC; + + public $db_name = null; + public $tbl_name = null; + public $part_vals = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'db_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tbl_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'part_vals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; + } + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; + } + if (isset($vals['part_vals'])) { + $this->part_vals = $vals['part_vals']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->part_vals = array(); + $_size283 = 0; + $_etype286 = 0; + $xfer += $input->readListBegin($_etype286, $_size283); + for ($_i287 = 0; $_i287 < $_size283; ++$_i287) + { + $elem288 = null; + $xfer += $input->readString($elem288); + $this->part_vals []= $elem288; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_name !== null) { + $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->part_vals !== null) { + if (!is_array($this->part_vals)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->part_vals)); + { + foreach ($this->part_vals as $iter289) + { + $xfer += $output->writeString($iter289); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_get_partition_result { static $_TSPEC; @@ -10926,14 +11245,14 @@ case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size283 = 0; - $_etype286 = 0; - $xfer += $input->readListBegin($_etype286, $_size283); - for ($_i287 = 0; $_i287 < $_size283; ++$_i287) + $_size290 = 0; + $_etype293 = 0; + $xfer += $input->readListBegin($_etype293, $_size290); + for ($_i294 = 0; $_i294 < $_size290; ++$_i294) { - $elem288 = null; - $xfer += $input->readString($elem288); - $this->part_vals []= $elem288; + $elem295 = null; + $xfer += $input->readString($elem295); + $this->part_vals []= $elem295; } $xfer += $input->readListEnd(); } else { @@ -10950,14 +11269,14 @@ case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size289 = 0; - $_etype292 = 0; - $xfer += $input->readListBegin($_etype292, $_size289); - for ($_i293 = 0; $_i293 < $_size289; ++$_i293) + $_size296 = 0; + $_etype299 = 0; + $xfer += $input->readListBegin($_etype299, $_size296); + for ($_i300 = 0; $_i300 < $_size296; ++$_i300) { - $elem294 = null; - $xfer += $input->readString($elem294); - $this->group_names []= $elem294; + $elem301 = null; + $xfer += $input->readString($elem301); + $this->group_names []= $elem301; } $xfer += $input->readListEnd(); } else { @@ -10995,9 +11314,9 @@ { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter295) + foreach ($this->part_vals as $iter302) { - $xfer += $output->writeString($iter295); + $xfer += $output->writeString($iter302); } } $output->writeListEnd(); @@ -11017,9 +11336,9 @@ { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter296) + foreach ($this->group_names as $iter303) { - $xfer += $output->writeString($iter296); + $xfer += $output->writeString($iter303); } } $output->writeListEnd(); @@ -11565,15 +11884,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size297 = 0; - $_etype300 = 0; - $xfer += $input->readListBegin($_etype300, $_size297); - for ($_i301 = 0; $_i301 < $_size297; ++$_i301) + $_size304 = 0; + $_etype307 = 0; + $xfer += $input->readListBegin($_etype307, $_size304); + for ($_i308 = 0; $_i308 < $_size304; ++$_i308) { - $elem302 = null; - $elem302 = new Partition(); - $xfer += $elem302->read($input); - $this->success []= $elem302; + $elem309 = null; + $elem309 = new Partition(); + $xfer += $elem309->read($input); + $this->success []= $elem309; } $xfer += $input->readListEnd(); } else { @@ -11617,9 +11936,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter303) + foreach ($this->success as $iter310) { - $xfer += $iter303->write($output); + $xfer += $iter310->write($output); } } $output->writeListEnd(); @@ -11750,14 +12069,14 @@ case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size304 = 0; - $_etype307 = 0; - $xfer += $input->readListBegin($_etype307, $_size304); - for ($_i308 = 0; $_i308 < $_size304; ++$_i308) + $_size311 = 0; + $_etype314 = 0; + $xfer += $input->readListBegin($_etype314, $_size311); + for ($_i315 = 0; $_i315 < $_size311; ++$_i315) { - $elem309 = null; - $xfer += $input->readString($elem309); - $this->group_names []= $elem309; + $elem316 = null; + $xfer += $input->readString($elem316); + $this->group_names []= $elem316; } $xfer += $input->readListEnd(); } else { @@ -11805,9 +12124,9 @@ { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter310) + foreach ($this->group_names as $iter317) { - $xfer += $output->writeString($iter310); + $xfer += $output->writeString($iter317); } } $output->writeListEnd(); @@ -11887,15 +12206,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size311 = 0; - $_etype314 = 0; - $xfer += $input->readListBegin($_etype314, $_size311); - for ($_i315 = 0; $_i315 < $_size311; ++$_i315) + $_size318 = 0; + $_etype321 = 0; + $xfer += $input->readListBegin($_etype321, $_size318); + for ($_i322 = 0; $_i322 < $_size318; ++$_i322) { - $elem316 = null; - $elem316 = new Partition(); - $xfer += $elem316->read($input); - $this->success []= $elem316; + $elem323 = null; + $elem323 = new Partition(); + $xfer += $elem323->read($input); + $this->success []= $elem323; } $xfer += $input->readListEnd(); } else { @@ -11939,9 +12258,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter317) + foreach ($this->success as $iter324) { - $xfer += $iter317->write($output); + $xfer += $iter324->write($output); } } $output->writeListEnd(); @@ -12133,14 +12452,14 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size318 = 0; - $_etype321 = 0; - $xfer += $input->readListBegin($_etype321, $_size318); - for ($_i322 = 0; $_i322 < $_size318; ++$_i322) + $_size325 = 0; + $_etype328 = 0; + $xfer += $input->readListBegin($_etype328, $_size325); + for ($_i329 = 0; $_i329 < $_size325; ++$_i329) { - $elem323 = null; - $xfer += $input->readString($elem323); - $this->success []= $elem323; + $elem330 = null; + $xfer += $input->readString($elem330); + $this->success []= $elem330; } $xfer += $input->readListEnd(); } else { @@ -12176,9 +12495,9 @@ { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter324) + foreach ($this->success as $iter331) { - $xfer += $output->writeString($iter324); + $xfer += $output->writeString($iter331); } } $output->writeListEnd(); @@ -12282,14 +12601,14 @@ case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size325 = 0; - $_etype328 = 0; - $xfer += $input->readListBegin($_etype328, $_size325); - for ($_i329 = 0; $_i329 < $_size325; ++$_i329) + $_size332 = 0; + $_etype335 = 0; + $xfer += $input->readListBegin($_etype335, $_size332); + for ($_i336 = 0; $_i336 < $_size332; ++$_i336) { - $elem330 = null; - $xfer += $input->readString($elem330); - $this->part_vals []= $elem330; + $elem337 = null; + $xfer += $input->readString($elem337); + $this->part_vals []= $elem337; } $xfer += $input->readListEnd(); } else { @@ -12334,9 +12653,9 @@ { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter331) + foreach ($this->part_vals as $iter338) { - $xfer += $output->writeString($iter331); + $xfer += $output->writeString($iter338); } } $output->writeListEnd(); @@ -12421,15 +12740,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size332 = 0; - $_etype335 = 0; - $xfer += $input->readListBegin($_etype335, $_size332); - for ($_i336 = 0; $_i336 < $_size332; ++$_i336) + $_size339 = 0; + $_etype342 = 0; + $xfer += $input->readListBegin($_etype342, $_size339); + for ($_i343 = 0; $_i343 < $_size339; ++$_i343) { - $elem337 = null; - $elem337 = new Partition(); - $xfer += $elem337->read($input); - $this->success []= $elem337; + $elem344 = null; + $elem344 = new Partition(); + $xfer += $elem344->read($input); + $this->success []= $elem344; } $xfer += $input->readListEnd(); } else { @@ -12473,9 +12792,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter338) + foreach ($this->success as $iter345) { - $xfer += $iter338->write($output); + $xfer += $iter345->write($output); } } $output->writeListEnd(); @@ -12604,14 +12923,14 @@ case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size339 = 0; - $_etype342 = 0; - $xfer += $input->readListBegin($_etype342, $_size339); - for ($_i343 = 0; $_i343 < $_size339; ++$_i343) + $_size346 = 0; + $_etype349 = 0; + $xfer += $input->readListBegin($_etype349, $_size346); + for ($_i350 = 0; $_i350 < $_size346; ++$_i350) { - $elem344 = null; - $xfer += $input->readString($elem344); - $this->part_vals []= $elem344; + $elem351 = null; + $xfer += $input->readString($elem351); + $this->part_vals []= $elem351; } $xfer += $input->readListEnd(); } else { @@ -12635,14 +12954,14 @@ case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size345 = 0; - $_etype348 = 0; - $xfer += $input->readListBegin($_etype348, $_size345); - for ($_i349 = 0; $_i349 < $_size345; ++$_i349) + $_size352 = 0; + $_etype355 = 0; + $xfer += $input->readListBegin($_etype355, $_size352); + for ($_i356 = 0; $_i356 < $_size352; ++$_i356) { - $elem350 = null; - $xfer += $input->readString($elem350); - $this->group_names []= $elem350; + $elem357 = null; + $xfer += $input->readString($elem357); + $this->group_names []= $elem357; } $xfer += $input->readListEnd(); } else { @@ -12680,9 +12999,9 @@ { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter351) + foreach ($this->part_vals as $iter358) { - $xfer += $output->writeString($iter351); + $xfer += $output->writeString($iter358); } } $output->writeListEnd(); @@ -12707,9 +13026,9 @@ { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter352) + foreach ($this->group_names as $iter359) { - $xfer += $output->writeString($iter352); + $xfer += $output->writeString($iter359); } } $output->writeListEnd(); @@ -12789,15 +13108,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size353 = 0; - $_etype356 = 0; - $xfer += $input->readListBegin($_etype356, $_size353); - for ($_i357 = 0; $_i357 < $_size353; ++$_i357) + $_size360 = 0; + $_etype363 = 0; + $xfer += $input->readListBegin($_etype363, $_size360); + for ($_i364 = 0; $_i364 < $_size360; ++$_i364) { - $elem358 = null; - $elem358 = new Partition(); - $xfer += $elem358->read($input); - $this->success []= $elem358; + $elem365 = null; + $elem365 = new Partition(); + $xfer += $elem365->read($input); + $this->success []= $elem365; } $xfer += $input->readListEnd(); } else { @@ -12841,9 +13160,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter359) + foreach ($this->success as $iter366) { - $xfer += $iter359->write($output); + $xfer += $iter366->write($output); } } $output->writeListEnd(); @@ -12952,14 +13271,14 @@ case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size360 = 0; - $_etype363 = 0; - $xfer += $input->readListBegin($_etype363, $_size360); - for ($_i364 = 0; $_i364 < $_size360; ++$_i364) + $_size367 = 0; + $_etype370 = 0; + $xfer += $input->readListBegin($_etype370, $_size367); + for ($_i371 = 0; $_i371 < $_size367; ++$_i371) { - $elem365 = null; - $xfer += $input->readString($elem365); - $this->part_vals []= $elem365; + $elem372 = null; + $xfer += $input->readString($elem372); + $this->part_vals []= $elem372; } $xfer += $input->readListEnd(); } else { @@ -13004,9 +13323,9 @@ { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter366) + foreach ($this->part_vals as $iter373) { - $xfer += $output->writeString($iter366); + $xfer += $output->writeString($iter373); } } $output->writeListEnd(); @@ -13090,14 +13409,14 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size367 = 0; - $_etype370 = 0; - $xfer += $input->readListBegin($_etype370, $_size367); - for ($_i371 = 0; $_i371 < $_size367; ++$_i371) + $_size374 = 0; + $_etype377 = 0; + $xfer += $input->readListBegin($_etype377, $_size374); + for ($_i378 = 0; $_i378 < $_size374; ++$_i378) { - $elem372 = null; - $xfer += $input->readString($elem372); - $this->success []= $elem372; + $elem379 = null; + $xfer += $input->readString($elem379); + $this->success []= $elem379; } $xfer += $input->readListEnd(); } else { @@ -13141,9 +13460,9 @@ { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter373) + foreach ($this->success as $iter380) { - $xfer += $output->writeString($iter373); + $xfer += $output->writeString($iter380); } } $output->writeListEnd(); @@ -13365,15 +13684,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size374 = 0; - $_etype377 = 0; - $xfer += $input->readListBegin($_etype377, $_size374); - for ($_i378 = 0; $_i378 < $_size374; ++$_i378) + $_size381 = 0; + $_etype384 = 0; + $xfer += $input->readListBegin($_etype384, $_size381); + for ($_i385 = 0; $_i385 < $_size381; ++$_i385) { - $elem379 = null; - $elem379 = new Partition(); - $xfer += $elem379->read($input); - $this->success []= $elem379; + $elem386 = null; + $elem386 = new Partition(); + $xfer += $elem386->read($input); + $this->success []= $elem386; } $xfer += $input->readListEnd(); } else { @@ -13417,9 +13736,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter380) + foreach ($this->success as $iter387) { - $xfer += $iter380->write($output); + $xfer += $iter387->write($output); } } $output->writeListEnd(); @@ -13520,14 +13839,14 @@ case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size381 = 0; - $_etype384 = 0; - $xfer += $input->readListBegin($_etype384, $_size381); - for ($_i385 = 0; $_i385 < $_size381; ++$_i385) + $_size388 = 0; + $_etype391 = 0; + $xfer += $input->readListBegin($_etype391, $_size388); + for ($_i392 = 0; $_i392 < $_size388; ++$_i392) { - $elem386 = null; - $xfer += $input->readString($elem386); - $this->names []= $elem386; + $elem393 = null; + $xfer += $input->readString($elem393); + $this->names []= $elem393; } $xfer += $input->readListEnd(); } else { @@ -13565,9 +13884,9 @@ { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter387) + foreach ($this->names as $iter394) { - $xfer += $output->writeString($iter387); + $xfer += $output->writeString($iter394); } } $output->writeListEnd(); @@ -13647,15 +13966,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size388 = 0; - $_etype391 = 0; - $xfer += $input->readListBegin($_etype391, $_size388); - for ($_i392 = 0; $_i392 < $_size388; ++$_i392) + $_size395 = 0; + $_etype398 = 0; + $xfer += $input->readListBegin($_etype398, $_size395); + for ($_i399 = 0; $_i399 < $_size395; ++$_i399) { - $elem393 = null; - $elem393 = new Partition(); - $xfer += $elem393->read($input); - $this->success []= $elem393; + $elem400 = null; + $elem400 = new Partition(); + $xfer += $elem400->read($input); + $this->success []= $elem400; } $xfer += $input->readListEnd(); } else { @@ -13699,9 +14018,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter394) + foreach ($this->success as $iter401) { - $xfer += $iter394->write($output); + $xfer += $iter401->write($output); } } $output->writeListEnd(); @@ -14262,14 +14581,14 @@ case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size395 = 0; - $_etype398 = 0; - $xfer += $input->readListBegin($_etype398, $_size395); - for ($_i399 = 0; $_i399 < $_size395; ++$_i399) + $_size402 = 0; + $_etype405 = 0; + $xfer += $input->readListBegin($_etype405, $_size402); + for ($_i406 = 0; $_i406 < $_size402; ++$_i406) { - $elem400 = null; - $xfer += $input->readString($elem400); - $this->part_vals []= $elem400; + $elem407 = null; + $xfer += $input->readString($elem407); + $this->part_vals []= $elem407; } $xfer += $input->readListEnd(); } else { @@ -14315,9 +14634,9 @@ { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter401) + foreach ($this->part_vals as $iter408) { - $xfer += $output->writeString($iter401); + $xfer += $output->writeString($iter408); } } $output->writeListEnd(); @@ -14749,14 +15068,14 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size402 = 0; - $_etype405 = 0; - $xfer += $input->readListBegin($_etype405, $_size402); - for ($_i406 = 0; $_i406 < $_size402; ++$_i406) + $_size409 = 0; + $_etype412 = 0; + $xfer += $input->readListBegin($_etype412, $_size409); + for ($_i413 = 0; $_i413 < $_size409; ++$_i413) { - $elem407 = null; - $xfer += $input->readString($elem407); - $this->success []= $elem407; + $elem414 = null; + $xfer += $input->readString($elem414); + $this->success []= $elem414; } $xfer += $input->readListEnd(); } else { @@ -14792,9 +15111,9 @@ { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter408) + foreach ($this->success as $iter415) { - $xfer += $output->writeString($iter408); + $xfer += $output->writeString($iter415); } } $output->writeListEnd(); @@ -14945,17 +15264,17 @@ case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size409 = 0; - $_ktype410 = 0; - $_vtype411 = 0; - $xfer += $input->readMapBegin($_ktype410, $_vtype411, $_size409); - for ($_i413 = 0; $_i413 < $_size409; ++$_i413) + $_size416 = 0; + $_ktype417 = 0; + $_vtype418 = 0; + $xfer += $input->readMapBegin($_ktype417, $_vtype418, $_size416); + for ($_i420 = 0; $_i420 < $_size416; ++$_i420) { - $key414 = ''; - $val415 = ''; - $xfer += $input->readString($key414); - $xfer += $input->readString($val415); - $this->success[$key414] = $val415; + $key421 = ''; + $val422 = ''; + $xfer += $input->readString($key421); + $xfer += $input->readString($val422); + $this->success[$key421] = $val422; } $xfer += $input->readMapEnd(); } else { @@ -14991,10 +15310,10 @@ { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter416 => $viter417) + foreach ($this->success as $kiter423 => $viter424) { - $xfer += $output->writeString($kiter416); - $xfer += $output->writeString($viter417); + $xfer += $output->writeString($kiter423); + $xfer += $output->writeString($viter424); } } $output->writeMapEnd(); @@ -15102,17 +15421,17 @@ case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size418 = 0; - $_ktype419 = 0; - $_vtype420 = 0; - $xfer += $input->readMapBegin($_ktype419, $_vtype420, $_size418); - for ($_i422 = 0; $_i422 < $_size418; ++$_i422) + $_size425 = 0; + $_ktype426 = 0; + $_vtype427 = 0; + $xfer += $input->readMapBegin($_ktype426, $_vtype427, $_size425); + for ($_i429 = 0; $_i429 < $_size425; ++$_i429) { - $key423 = ''; - $val424 = ''; - $xfer += $input->readString($key423); - $xfer += $input->readString($val424); - $this->part_vals[$key423] = $val424; + $key430 = ''; + $val431 = ''; + $xfer += $input->readString($key430); + $xfer += $input->readString($val431); + $this->part_vals[$key430] = $val431; } $xfer += $input->readMapEnd(); } else { @@ -15157,10 +15476,10 @@ { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter425 => $viter426) + foreach ($this->part_vals as $kiter432 => $viter433) { - $xfer += $output->writeString($kiter425); - $xfer += $output->writeString($viter426); + $xfer += $output->writeString($kiter432); + $xfer += $output->writeString($viter433); } } $output->writeMapEnd(); @@ -15452,17 +15771,17 @@ case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size427 = 0; - $_ktype428 = 0; - $_vtype429 = 0; - $xfer += $input->readMapBegin($_ktype428, $_vtype429, $_size427); - for ($_i431 = 0; $_i431 < $_size427; ++$_i431) + $_size434 = 0; + $_ktype435 = 0; + $_vtype436 = 0; + $xfer += $input->readMapBegin($_ktype435, $_vtype436, $_size434); + for ($_i438 = 0; $_i438 < $_size434; ++$_i438) { - $key432 = ''; - $val433 = ''; - $xfer += $input->readString($key432); - $xfer += $input->readString($val433); - $this->part_vals[$key432] = $val433; + $key439 = ''; + $val440 = ''; + $xfer += $input->readString($key439); + $xfer += $input->readString($val440); + $this->part_vals[$key439] = $val440; } $xfer += $input->readMapEnd(); } else { @@ -15507,10 +15826,10 @@ { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter434 => $viter435) + foreach ($this->part_vals as $kiter441 => $viter442) { - $xfer += $output->writeString($kiter434); - $xfer += $output->writeString($viter435); + $xfer += $output->writeString($kiter441); + $xfer += $output->writeString($viter442); } } $output->writeMapEnd(); @@ -16870,15 +17189,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size436 = 0; - $_etype439 = 0; - $xfer += $input->readListBegin($_etype439, $_size436); - for ($_i440 = 0; $_i440 < $_size436; ++$_i440) + $_size443 = 0; + $_etype446 = 0; + $xfer += $input->readListBegin($_etype446, $_size443); + for ($_i447 = 0; $_i447 < $_size443; ++$_i447) { - $elem441 = null; - $elem441 = new Index(); - $xfer += $elem441->read($input); - $this->success []= $elem441; + $elem448 = null; + $elem448 = new Index(); + $xfer += $elem448->read($input); + $this->success []= $elem448; } $xfer += $input->readListEnd(); } else { @@ -16922,9 +17241,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter442) + foreach ($this->success as $iter449) { - $xfer += $iter442->write($output); + $xfer += $iter449->write($output); } } $output->writeListEnd(); @@ -17116,14 +17435,14 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size443 = 0; - $_etype446 = 0; - $xfer += $input->readListBegin($_etype446, $_size443); - for ($_i447 = 0; $_i447 < $_size443; ++$_i447) + $_size450 = 0; + $_etype453 = 0; + $xfer += $input->readListBegin($_etype453, $_size450); + for ($_i454 = 0; $_i454 < $_size450; ++$_i454) { - $elem448 = null; - $xfer += $input->readString($elem448); - $this->success []= $elem448; + $elem455 = null; + $xfer += $input->readString($elem455); + $this->success []= $elem455; } $xfer += $input->readListEnd(); } else { @@ -17159,9 +17478,9 @@ { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter449) + foreach ($this->success as $iter456) { - $xfer += $output->writeString($iter449); + $xfer += $output->writeString($iter456); } } $output->writeListEnd(); @@ -17623,14 +17942,14 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size450 = 0; - $_etype453 = 0; - $xfer += $input->readListBegin($_etype453, $_size450); - for ($_i454 = 0; $_i454 < $_size450; ++$_i454) + $_size457 = 0; + $_etype460 = 0; + $xfer += $input->readListBegin($_etype460, $_size457); + for ($_i461 = 0; $_i461 < $_size457; ++$_i461) { - $elem455 = null; - $xfer += $input->readString($elem455); - $this->success []= $elem455; + $elem462 = null; + $xfer += $input->readString($elem462); + $this->success []= $elem462; } $xfer += $input->readListEnd(); } else { @@ -17666,9 +17985,9 @@ { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter456) + foreach ($this->success as $iter463) { - $xfer += $output->writeString($iter456); + $xfer += $output->writeString($iter463); } } $output->writeListEnd(); @@ -18308,15 +18627,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size457 = 0; - $_etype460 = 0; - $xfer += $input->readListBegin($_etype460, $_size457); - for ($_i461 = 0; $_i461 < $_size457; ++$_i461) + $_size464 = 0; + $_etype467 = 0; + $xfer += $input->readListBegin($_etype467, $_size464); + for ($_i468 = 0; $_i468 < $_size464; ++$_i468) { - $elem462 = null; - $elem462 = new Role(); - $xfer += $elem462->read($input); - $this->success []= $elem462; + $elem469 = null; + $elem469 = new Role(); + $xfer += $elem469->read($input); + $this->success []= $elem469; } $xfer += $input->readListEnd(); } else { @@ -18352,9 +18671,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter463) + foreach ($this->success as $iter470) { - $xfer += $iter463->write($output); + $xfer += $iter470->write($output); } } $output->writeListEnd(); @@ -18452,14 +18771,14 @@ case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size464 = 0; - $_etype467 = 0; - $xfer += $input->readListBegin($_etype467, $_size464); - for ($_i468 = 0; $_i468 < $_size464; ++$_i468) + $_size471 = 0; + $_etype474 = 0; + $xfer += $input->readListBegin($_etype474, $_size471); + for ($_i475 = 0; $_i475 < $_size471; ++$_i475) { - $elem469 = null; - $xfer += $input->readString($elem469); - $this->group_names []= $elem469; + $elem476 = null; + $xfer += $input->readString($elem476); + $this->group_names []= $elem476; } $xfer += $input->readListEnd(); } else { @@ -18500,9 +18819,9 @@ { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter470) + foreach ($this->group_names as $iter477) { - $xfer += $output->writeString($iter470); + $xfer += $output->writeString($iter477); } } $output->writeListEnd(); @@ -18789,15 +19108,15 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size471 = 0; - $_etype474 = 0; - $xfer += $input->readListBegin($_etype474, $_size471); - for ($_i475 = 0; $_i475 < $_size471; ++$_i475) + $_size478 = 0; + $_etype481 = 0; + $xfer += $input->readListBegin($_etype481, $_size478); + for ($_i482 = 0; $_i482 < $_size478; ++$_i482) { - $elem476 = null; - $elem476 = new HiveObjectPrivilege(); - $xfer += $elem476->read($input); - $this->success []= $elem476; + $elem483 = null; + $elem483 = new HiveObjectPrivilege(); + $xfer += $elem483->read($input); + $this->success []= $elem483; } $xfer += $input->readListEnd(); } else { @@ -18833,9 +19152,9 @@ { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter477) + foreach ($this->success as $iter484) { - $xfer += $iter477->write($output); + $xfer += $iter484->write($output); } } $output->writeListEnd(); @@ -19258,14 +19577,14 @@ case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size478 = 0; - $_etype481 = 0; - $xfer += $input->readListBegin($_etype481, $_size478); - for ($_i482 = 0; $_i482 < $_size478; ++$_i482) + $_size485 = 0; + $_etype488 = 0; + $xfer += $input->readListBegin($_etype488, $_size485); + for ($_i489 = 0; $_i489 < $_size485; ++$_i489) { - $elem483 = null; - $xfer += $input->readString($elem483); - $this->group_names []= $elem483; + $elem490 = null; + $xfer += $input->readString($elem490); + $this->group_names []= $elem490; } $xfer += $input->readListEnd(); } else { @@ -19298,9 +19617,9 @@ { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter484) + foreach ($this->group_names as $iter491) { - $xfer += $output->writeString($iter484); + $xfer += $output->writeString($iter491); } } $output->writeListEnd(); @@ -19370,14 +19689,14 @@ case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size485 = 0; - $_etype488 = 0; - $xfer += $input->readListBegin($_etype488, $_size485); - for ($_i489 = 0; $_i489 < $_size485; ++$_i489) + $_size492 = 0; + $_etype495 = 0; + $xfer += $input->readListBegin($_etype495, $_size492); + for ($_i496 = 0; $_i496 < $_size492; ++$_i496) { - $elem490 = null; - $xfer += $input->readString($elem490); - $this->success []= $elem490; + $elem497 = null; + $xfer += $input->readString($elem497); + $this->success []= $elem497; } $xfer += $input->readListEnd(); } else { @@ -19413,9 +19732,9 @@ { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter491) + foreach ($this->success as $iter498) { - $xfer += $output->writeString($iter491); + $xfer += $output->writeString($iter498); } } $output->writeListEnd(); Index: metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java =================================================================== --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (revision 1368350) +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (working copy) @@ -86,6 +86,8 @@ public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public Partition get_partition_template(String db_name, String tbl_name, List part_vals) throws InvalidObjectException, MetaException, org.apache.thrift.TException; + public Partition get_partition(String db_name, String tbl_name, List part_vals) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; public Partition get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; @@ -226,6 +228,8 @@ public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_template(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1204,6 +1208,37 @@ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result"); } + public Partition get_partition_template(String db_name, String tbl_name, List part_vals) throws InvalidObjectException, MetaException, org.apache.thrift.TException + { + send_get_partition_template(db_name, tbl_name, part_vals); + return recv_get_partition_template(); + } + + public void send_get_partition_template(String db_name, String tbl_name, List part_vals) throws org.apache.thrift.TException + { + get_partition_template_args args = new get_partition_template_args(); + args.setDb_name(db_name); + args.setTbl_name(tbl_name); + args.setPart_vals(part_vals); + sendBase("get_partition_template", args); + } + + public Partition recv_get_partition_template() throws InvalidObjectException, MetaException, org.apache.thrift.TException + { + get_partition_template_result result = new get_partition_template_result(); + receiveBase(result, "get_partition_template"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_template failed: unknown result"); + } + public Partition get_partition(String db_name, String tbl_name, List part_vals) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partition(db_name, tbl_name, part_vals); @@ -3390,6 +3425,44 @@ } } + public void get_partition_template(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_partition_template_call method_call = new get_partition_template_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_partition_template_call extends org.apache.thrift.async.TAsyncMethodCall { + private String db_name; + private String tbl_name; + private List part_vals; + public get_partition_template_call(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partition_template", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_partition_template_args args = new get_partition_template_args(); + args.setDb_name(db_name); + args.setTbl_name(tbl_name); + args.setPart_vals(part_vals); + args.write(prot); + prot.writeMessageEnd(); + } + + public Partition getResult() throws InvalidObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_partition_template(); + } + } + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_call method_call = new get_partition_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); @@ -4899,6 +4972,7 @@ processMap.put("append_partition_by_name", new append_partition_by_name()); processMap.put("drop_partition", new drop_partition()); processMap.put("drop_partition_by_name", new drop_partition_by_name()); + processMap.put("get_partition_template", new get_partition_template()); processMap.put("get_partition", new get_partition()); processMap.put("get_partition_with_auth", new get_partition_with_auth()); processMap.put("get_partition_by_name", new get_partition_by_name()); @@ -5606,6 +5680,28 @@ } } + private static class get_partition_template extends org.apache.thrift.ProcessFunction { + public get_partition_template() { + super("get_partition_template"); + } + + protected get_partition_template_args getEmptyArgsInstance() { + return new get_partition_template_args(); + } + + protected get_partition_template_result getResult(I iface, get_partition_template_args args) throws org.apache.thrift.TException { + get_partition_template_result result = new get_partition_template_result(); + try { + result.success = iface.get_partition_template(args.db_name, args.tbl_name, args.part_vals); + } catch (InvalidObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + private static class get_partition extends org.apache.thrift.ProcessFunction { public get_partition() { super("get_partition"); @@ -12814,8 +12910,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -13603,8 +13697,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -28329,8 +28421,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -31213,7 +31303,7 @@ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); @@ -31506,7 +31596,7 @@ while (true) { field = iprot.readFieldBegin(); - if (field.type == org.apache.thrift.protocol.TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { @@ -31514,7 +31604,7 @@ if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; @@ -31522,7 +31612,7 @@ if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; @@ -31530,7 +31620,7 @@ if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; @@ -31605,8 +31695,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -31702,13 +31790,13 @@ 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("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); @@ -32067,28 +32155,28 @@ while (true) { field = iprot.readFieldBegin(); - if (field.type == org.apache.thrift.protocol.TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_NAME if (field.type == org.apache.thrift.protocol.TType.STRING) { this.part_name = iprot.readString(); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; @@ -32096,7 +32184,7 @@ if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.deleteData = iprot.readBool(); setDeleteDataIsSet(true); - } else { + } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; @@ -32277,11 +32365,11 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); @@ -32673,8 +32761,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -32683,6 +32769,1017 @@ } + public static class get_partition_template_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_template_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + + private String db_name; // required + private String tbl_name; // required + private List part_vals; // 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 { + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"); + + private static final Map byName = new HashMap(); + + 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: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_template_args.class, metaDataMap); + } + + public get_partition_template_args() { + } + + public get_partition_template_args( + String db_name, + String tbl_name, + List part_vals) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + } + + /** + * Performs a deep copy on other. + */ + public get_partition_template_args(get_partition_template_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } + this.part_vals = __this__part_vals; + } + } + + public get_partition_template_args deepCopy() { + return new get_partition_template_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + } + 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 isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partition_template_args) + return this.equals((get_partition_template_args)that); + return false; + } + + public boolean equals(get_partition_template_args that) { + if (that == null) + return false; + + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + builder.append(present_part_vals); + if (present_part_vals) + builder.append(part_vals); + + return builder.toHashCode(); + } + + public int compareTo(get_partition_template_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_partition_template_args typedOther = (get_partition_template_args)other; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + 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 { + org.apache.thrift.protocol.TField field; + iprot.readStructBegin(); + while (true) + { + field = iprot.readFieldBegin(); + if (field.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (field.id) { + case 1: // DB_NAME + if (field.type == org.apache.thrift.protocol.TType.STRING) { + this.db_name = iprot.readString(); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + break; + case 2: // TBL_NAME + if (field.type == org.apache.thrift.protocol.TType.STRING) { + this.tbl_name = iprot.readString(); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + break; + case 3: // PART_VALS + if (field.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); + this.part_vals = new ArrayList(_list156.size); + for (int _i157 = 0; _i157 < _list156.size; ++_i157) + { + String _elem158; // required + _elem158 = iprot.readString(); + this.part_vals.add(_elem158); + } + iprot.readListEnd(); + } + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (this.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(this.db_name); + oprot.writeFieldEnd(); + } + if (this.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(this.tbl_name); + oprot.writeFieldEnd(); + } + if (this.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); + for (String _iter159 : this.part_vals) + { + oprot.writeString(_iter159); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_partition_template_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + } + + 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); + } + } + + } + + public static class get_partition_template_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_template_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private Partition success; // required + private InvalidObjectException o1; // required + private MetaException o2; // 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 { + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + 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 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; + 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_template_result.class, metaDataMap); + } + + public get_partition_template_result() { + } + + public get_partition_template_result( + Partition success, + InvalidObjectException o1, + MetaException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_partition_template_result(get_partition_template_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } + if (other.isSetO1()) { + this.o1 = new InvalidObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public get_partition_template_result deepCopy() { + return new get_partition_template_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public Partition getSuccess() { + return this.success; + } + + public void setSuccess(Partition success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public InvalidObjectException getO1() { + return this.o1; + } + + public void setO1(InvalidObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Partition)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((InvalidObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + } + 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 SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partition_template_result) + return this.equals((get_partition_template_result)that); + return false; + } + + public boolean equals(get_partition_template_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); + + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); + + boolean present_o2 = true && (isSetO2()); + builder.append(present_o2); + if (present_o2) + builder.append(o2); + + return builder.toHashCode(); + } + + public int compareTo(get_partition_template_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_partition_template_result typedOther = (get_partition_template_result)other; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + 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 { + org.apache.thrift.protocol.TField field; + iprot.readStructBegin(); + while (true) + { + field = iprot.readFieldBegin(); + if (field.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (field.id) { + case 0: // SUCCESS + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { + this.success = new Partition(); + this.success.read(iprot); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + break; + case 1: // O1 + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { + this.o1 = new InvalidObjectException(); + this.o1.read(iprot); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + break; + case 2: // O2 + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { + this.o2 = new MetaException(); + this.o2.read(iprot); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + oprot.writeStructBegin(STRUCT_DESC); + + if (this.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + this.success.write(oprot); + oprot.writeFieldEnd(); + } else if (this.isSetO1()) { + oprot.writeFieldBegin(O1_FIELD_DESC); + this.o1.write(oprot); + oprot.writeFieldEnd(); + } else if (this.isSetO2()) { + oprot.writeFieldBegin(O2_FIELD_DESC); + this.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_partition_template_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + } + + 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); + } + } + + } + public static class get_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_args"); @@ -33100,13 +34197,13 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); - this.part_vals = new ArrayList(_list156.size); - for (int _i157 = 0; _i157 < _list156.size; ++_i157) + org.apache.thrift.protocol.TList _list160 = iprot.readListBegin(); + this.part_vals = new ArrayList(_list160.size); + for (int _i161 = 0; _i161 < _list160.size; ++_i161) { - String _elem158; // required - _elem158 = iprot.readString(); - this.part_vals.add(_elem158); + String _elem162; // required + _elem162 = iprot.readString(); + this.part_vals.add(_elem162); } iprot.readListEnd(); } @@ -33141,9 +34238,9 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (String _iter159 : this.part_vals) + for (String _iter163 : this.part_vals) { - oprot.writeString(_iter159); + oprot.writeString(_iter163); } oprot.writeListEnd(); } @@ -34277,13 +35374,13 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list160 = iprot.readListBegin(); - this.part_vals = new ArrayList(_list160.size); - for (int _i161 = 0; _i161 < _list160.size; ++_i161) + org.apache.thrift.protocol.TList _list164 = iprot.readListBegin(); + this.part_vals = new ArrayList(_list164.size); + for (int _i165 = 0; _i165 < _list164.size; ++_i165) { - String _elem162; // required - _elem162 = iprot.readString(); - this.part_vals.add(_elem162); + String _elem166; // required + _elem166 = iprot.readString(); + this.part_vals.add(_elem166); } iprot.readListEnd(); } @@ -34301,13 +35398,13 @@ case 5: // GROUP_NAMES if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list163 = iprot.readListBegin(); - this.group_names = new ArrayList(_list163.size); - for (int _i164 = 0; _i164 < _list163.size; ++_i164) + org.apache.thrift.protocol.TList _list167 = iprot.readListBegin(); + this.group_names = new ArrayList(_list167.size); + for (int _i168 = 0; _i168 < _list167.size; ++_i168) { - String _elem165; // required - _elem165 = iprot.readString(); - this.group_names.add(_elem165); + String _elem169; // required + _elem169 = iprot.readString(); + this.group_names.add(_elem169); } iprot.readListEnd(); } @@ -34342,9 +35439,9 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (String _iter166 : this.part_vals) + for (String _iter170 : this.part_vals) { - oprot.writeString(_iter166); + oprot.writeString(_iter170); } oprot.writeListEnd(); } @@ -34359,9 +35456,9 @@ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); - for (String _iter167 : this.group_names) + for (String _iter171 : this.group_names) { - oprot.writeString(_iter167); + oprot.writeString(_iter171); } oprot.writeListEnd(); } @@ -36794,14 +37891,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list168 = iprot.readListBegin(); - this.success = new ArrayList(_list168.size); - for (int _i169 = 0; _i169 < _list168.size; ++_i169) + org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); + this.success = new ArrayList(_list172.size); + for (int _i173 = 0; _i173 < _list172.size; ++_i173) { - Partition _elem170; // required - _elem170 = new Partition(); - _elem170.read(iprot); - this.success.add(_elem170); + Partition _elem174; // required + _elem174 = new Partition(); + _elem174.read(iprot); + this.success.add(_elem174); } iprot.readListEnd(); } @@ -36841,9 +37938,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Partition _iter171 : this.success) + for (Partition _iter175 : this.success) { - _iter171.write(oprot); + _iter175.write(oprot); } oprot.writeListEnd(); } @@ -37498,13 +38595,13 @@ case 5: // GROUP_NAMES if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); - this.group_names = new ArrayList(_list172.size); - for (int _i173 = 0; _i173 < _list172.size; ++_i173) + org.apache.thrift.protocol.TList _list176 = iprot.readListBegin(); + this.group_names = new ArrayList(_list176.size); + for (int _i177 = 0; _i177 < _list176.size; ++_i177) { - String _elem174; // required - _elem174 = iprot.readString(); - this.group_names.add(_elem174); + String _elem178; // required + _elem178 = iprot.readString(); + this.group_names.add(_elem178); } iprot.readListEnd(); } @@ -37547,9 +38644,9 @@ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); - for (String _iter175 : this.group_names) + for (String _iter179 : this.group_names) { - oprot.writeString(_iter175); + oprot.writeString(_iter179); } oprot.writeListEnd(); } @@ -38030,14 +39127,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list176 = iprot.readListBegin(); - this.success = new ArrayList(_list176.size); - for (int _i177 = 0; _i177 < _list176.size; ++_i177) + org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); + this.success = new ArrayList(_list180.size); + for (int _i181 = 0; _i181 < _list180.size; ++_i181) { - Partition _elem178; // required - _elem178 = new Partition(); - _elem178.read(iprot); - this.success.add(_elem178); + Partition _elem182; // required + _elem182 = new Partition(); + _elem182.read(iprot); + this.success.add(_elem182); } iprot.readListEnd(); } @@ -38077,9 +39174,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Partition _iter179 : this.success) + for (Partition _iter183 : this.success) { - _iter179.write(oprot); + _iter183.write(oprot); } oprot.writeListEnd(); } @@ -38970,13 +40067,13 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); - this.success = new ArrayList(_list180.size); - for (int _i181 = 0; _i181 < _list180.size; ++_i181) + org.apache.thrift.protocol.TList _list184 = iprot.readListBegin(); + this.success = new ArrayList(_list184.size); + for (int _i185 = 0; _i185 < _list184.size; ++_i185) { - String _elem182; // required - _elem182 = iprot.readString(); - this.success.add(_elem182); + String _elem186; // required + _elem186 = iprot.readString(); + this.success.add(_elem186); } iprot.readListEnd(); } @@ -39008,9 +40105,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); - for (String _iter183 : this.success) + for (String _iter187 : this.success) { - oprot.writeString(_iter183); + oprot.writeString(_iter187); } oprot.writeListEnd(); } @@ -39565,13 +40662,13 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list184 = iprot.readListBegin(); - this.part_vals = new ArrayList(_list184.size); - for (int _i185 = 0; _i185 < _list184.size; ++_i185) + org.apache.thrift.protocol.TList _list188 = iprot.readListBegin(); + this.part_vals = new ArrayList(_list188.size); + for (int _i189 = 0; _i189 < _list188.size; ++_i189) { - String _elem186; // required - _elem186 = iprot.readString(); - this.part_vals.add(_elem186); + String _elem190; // required + _elem190 = iprot.readString(); + this.part_vals.add(_elem190); } iprot.readListEnd(); } @@ -39614,9 +40711,9 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (String _iter187 : this.part_vals) + for (String _iter191 : this.part_vals) { - oprot.writeString(_iter187); + oprot.writeString(_iter191); } oprot.writeListEnd(); } @@ -40092,14 +41189,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list188 = iprot.readListBegin(); - this.success = new ArrayList(_list188.size); - for (int _i189 = 0; _i189 < _list188.size; ++_i189) + org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(); + this.success = new ArrayList(_list192.size); + for (int _i193 = 0; _i193 < _list192.size; ++_i193) { - Partition _elem190; // required - _elem190 = new Partition(); - _elem190.read(iprot); - this.success.add(_elem190); + Partition _elem194; // required + _elem194 = new Partition(); + _elem194.read(iprot); + this.success.add(_elem194); } iprot.readListEnd(); } @@ -40139,9 +41236,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Partition _iter191 : this.success) + for (Partition _iter195 : this.success) { - _iter191.write(oprot); + _iter195.write(oprot); } oprot.writeListEnd(); } @@ -40874,13 +41971,13 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(); - this.part_vals = new ArrayList(_list192.size); - for (int _i193 = 0; _i193 < _list192.size; ++_i193) + org.apache.thrift.protocol.TList _list196 = iprot.readListBegin(); + this.part_vals = new ArrayList(_list196.size); + for (int _i197 = 0; _i197 < _list196.size; ++_i197) { - String _elem194; // required - _elem194 = iprot.readString(); - this.part_vals.add(_elem194); + String _elem198; // required + _elem198 = iprot.readString(); + this.part_vals.add(_elem198); } iprot.readListEnd(); } @@ -40906,13 +42003,13 @@ case 6: // GROUP_NAMES if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list195 = iprot.readListBegin(); - this.group_names = new ArrayList(_list195.size); - for (int _i196 = 0; _i196 < _list195.size; ++_i196) + org.apache.thrift.protocol.TList _list199 = iprot.readListBegin(); + this.group_names = new ArrayList(_list199.size); + for (int _i200 = 0; _i200 < _list199.size; ++_i200) { - String _elem197; // required - _elem197 = iprot.readString(); - this.group_names.add(_elem197); + String _elem201; // required + _elem201 = iprot.readString(); + this.group_names.add(_elem201); } iprot.readListEnd(); } @@ -40947,9 +42044,9 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (String _iter198 : this.part_vals) + for (String _iter202 : this.part_vals) { - oprot.writeString(_iter198); + oprot.writeString(_iter202); } oprot.writeListEnd(); } @@ -40967,9 +42064,9 @@ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); - for (String _iter199 : this.group_names) + for (String _iter203 : this.group_names) { - oprot.writeString(_iter199); + oprot.writeString(_iter203); } oprot.writeListEnd(); } @@ -41458,14 +42555,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(); - this.success = new ArrayList(_list200.size); - for (int _i201 = 0; _i201 < _list200.size; ++_i201) + org.apache.thrift.protocol.TList _list204 = iprot.readListBegin(); + this.success = new ArrayList(_list204.size); + for (int _i205 = 0; _i205 < _list204.size; ++_i205) { - Partition _elem202; // required - _elem202 = new Partition(); - _elem202.read(iprot); - this.success.add(_elem202); + Partition _elem206; // required + _elem206 = new Partition(); + _elem206.read(iprot); + this.success.add(_elem206); } iprot.readListEnd(); } @@ -41505,9 +42602,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Partition _iter203 : this.success) + for (Partition _iter207 : this.success) { - _iter203.write(oprot); + _iter207.write(oprot); } oprot.writeListEnd(); } @@ -42074,13 +43171,13 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list204 = iprot.readListBegin(); - this.part_vals = new ArrayList(_list204.size); - for (int _i205 = 0; _i205 < _list204.size; ++_i205) + org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); + this.part_vals = new ArrayList(_list208.size); + for (int _i209 = 0; _i209 < _list208.size; ++_i209) { - String _elem206; // required - _elem206 = iprot.readString(); - this.part_vals.add(_elem206); + String _elem210; // required + _elem210 = iprot.readString(); + this.part_vals.add(_elem210); } iprot.readListEnd(); } @@ -42123,9 +43220,9 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (String _iter207 : this.part_vals) + for (String _iter211 : this.part_vals) { - oprot.writeString(_iter207); + oprot.writeString(_iter211); } oprot.writeListEnd(); } @@ -42601,13 +43698,13 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); - this.success = new ArrayList(_list208.size); - for (int _i209 = 0; _i209 < _list208.size; ++_i209) + org.apache.thrift.protocol.TList _list212 = iprot.readListBegin(); + this.success = new ArrayList(_list212.size); + for (int _i213 = 0; _i213 < _list212.size; ++_i213) { - String _elem210; // required - _elem210 = iprot.readString(); - this.success.add(_elem210); + String _elem214; // required + _elem214 = iprot.readString(); + this.success.add(_elem214); } iprot.readListEnd(); } @@ -42647,9 +43744,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); - for (String _iter211 : this.success) + for (String _iter215 : this.success) { - oprot.writeString(_iter211); + oprot.writeString(_iter215); } oprot.writeListEnd(); } @@ -43706,14 +44803,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list212 = iprot.readListBegin(); - this.success = new ArrayList(_list212.size); - for (int _i213 = 0; _i213 < _list212.size; ++_i213) + org.apache.thrift.protocol.TList _list216 = iprot.readListBegin(); + this.success = new ArrayList(_list216.size); + for (int _i217 = 0; _i217 < _list216.size; ++_i217) { - Partition _elem214; // required - _elem214 = new Partition(); - _elem214.read(iprot); - this.success.add(_elem214); + Partition _elem218; // required + _elem218 = new Partition(); + _elem218.read(iprot); + this.success.add(_elem218); } iprot.readListEnd(); } @@ -43753,9 +44850,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Partition _iter215 : this.success) + for (Partition _iter219 : this.success) { - _iter215.write(oprot); + _iter219.write(oprot); } oprot.writeListEnd(); } @@ -44244,13 +45341,13 @@ case 3: // NAMES if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list216 = iprot.readListBegin(); - this.names = new ArrayList(_list216.size); - for (int _i217 = 0; _i217 < _list216.size; ++_i217) + org.apache.thrift.protocol.TList _list220 = iprot.readListBegin(); + this.names = new ArrayList(_list220.size); + for (int _i221 = 0; _i221 < _list220.size; ++_i221) { - String _elem218; // required - _elem218 = iprot.readString(); - this.names.add(_elem218); + String _elem222; // required + _elem222 = iprot.readString(); + this.names.add(_elem222); } iprot.readListEnd(); } @@ -44285,9 +45382,9 @@ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.names.size())); - for (String _iter219 : this.names) + for (String _iter223 : this.names) { - oprot.writeString(_iter219); + oprot.writeString(_iter223); } oprot.writeListEnd(); } @@ -44754,14 +45851,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list220 = iprot.readListBegin(); - this.success = new ArrayList(_list220.size); - for (int _i221 = 0; _i221 < _list220.size; ++_i221) + org.apache.thrift.protocol.TList _list224 = iprot.readListBegin(); + this.success = new ArrayList(_list224.size); + for (int _i225 = 0; _i225 < _list224.size; ++_i225) { - Partition _elem222; // required - _elem222 = new Partition(); - _elem222.read(iprot); - this.success.add(_elem222); + Partition _elem226; // required + _elem226 = new Partition(); + _elem226.read(iprot); + this.success.add(_elem226); } iprot.readListEnd(); } @@ -44801,9 +45898,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Partition _iter223 : this.success) + for (Partition _iter227 : this.success) { - _iter223.write(oprot); + _iter227.write(oprot); } oprot.writeListEnd(); } @@ -47223,13 +48320,13 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list224 = iprot.readListBegin(); - this.part_vals = new ArrayList(_list224.size); - for (int _i225 = 0; _i225 < _list224.size; ++_i225) + org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); + this.part_vals = new ArrayList(_list228.size); + for (int _i229 = 0; _i229 < _list228.size; ++_i229) { - String _elem226; // required - _elem226 = iprot.readString(); - this.part_vals.add(_elem226); + String _elem230; // required + _elem230 = iprot.readString(); + this.part_vals.add(_elem230); } iprot.readListEnd(); } @@ -47272,9 +48369,9 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (String _iter227 : this.part_vals) + for (String _iter231 : this.part_vals) { - oprot.writeString(_iter227); + oprot.writeString(_iter231); } oprot.writeListEnd(); } @@ -49163,13 +50260,13 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); - this.success = new ArrayList(_list228.size); - for (int _i229 = 0; _i229 < _list228.size; ++_i229) + org.apache.thrift.protocol.TList _list232 = iprot.readListBegin(); + this.success = new ArrayList(_list232.size); + for (int _i233 = 0; _i233 < _list232.size; ++_i233) { - String _elem230; // required - _elem230 = iprot.readString(); - this.success.add(_elem230); + String _elem234; // required + _elem234 = iprot.readString(); + this.success.add(_elem234); } iprot.readListEnd(); } @@ -49201,9 +50298,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); - for (String _iter231 : this.success) + for (String _iter235 : this.success) { - oprot.writeString(_iter231); + oprot.writeString(_iter235); } oprot.writeListEnd(); } @@ -49899,15 +50996,15 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map232 = iprot.readMapBegin(); - this.success = new HashMap(2*_map232.size); - for (int _i233 = 0; _i233 < _map232.size; ++_i233) + org.apache.thrift.protocol.TMap _map236 = iprot.readMapBegin(); + this.success = new HashMap(2*_map236.size); + for (int _i237 = 0; _i237 < _map236.size; ++_i237) { - String _key234; // required - String _val235; // required - _key234 = iprot.readString(); - _val235 = iprot.readString(); - this.success.put(_key234, _val235); + String _key238; // required + String _val239; // required + _key238 = iprot.readString(); + _val239 = iprot.readString(); + this.success.put(_key238, _val239); } iprot.readMapEnd(); } @@ -49939,10 +51036,10 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size())); - for (Map.Entry _iter236 : this.success.entrySet()) + for (Map.Entry _iter240 : this.success.entrySet()) { - oprot.writeString(_iter236.getKey()); - oprot.writeString(_iter236.getValue()); + oprot.writeString(_iter240.getKey()); + oprot.writeString(_iter240.getValue()); } oprot.writeMapEnd(); } @@ -50509,15 +51606,15 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map237 = iprot.readMapBegin(); - this.part_vals = new HashMap(2*_map237.size); - for (int _i238 = 0; _i238 < _map237.size; ++_i238) + org.apache.thrift.protocol.TMap _map241 = iprot.readMapBegin(); + this.part_vals = new HashMap(2*_map241.size); + for (int _i242 = 0; _i242 < _map241.size; ++_i242) { - String _key239; // required - String _val240; // required - _key239 = iprot.readString(); - _val240 = iprot.readString(); - this.part_vals.put(_key239, _val240); + String _key243; // required + String _val244; // required + _key243 = iprot.readString(); + _val244 = iprot.readString(); + this.part_vals.put(_key243, _val244); } iprot.readMapEnd(); } @@ -50559,10 +51656,10 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (Map.Entry _iter241 : this.part_vals.entrySet()) + for (Map.Entry _iter245 : this.part_vals.entrySet()) { - oprot.writeString(_iter241.getKey()); - oprot.writeString(_iter241.getValue()); + oprot.writeString(_iter245.getKey()); + oprot.writeString(_iter245.getValue()); } oprot.writeMapEnd(); } @@ -51912,15 +53009,15 @@ case 3: // PART_VALS if (field.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map242 = iprot.readMapBegin(); - this.part_vals = new HashMap(2*_map242.size); - for (int _i243 = 0; _i243 < _map242.size; ++_i243) + org.apache.thrift.protocol.TMap _map246 = iprot.readMapBegin(); + this.part_vals = new HashMap(2*_map246.size); + for (int _i247 = 0; _i247 < _map246.size; ++_i247) { - String _key244; // required - String _val245; // required - _key244 = iprot.readString(); - _val245 = iprot.readString(); - this.part_vals.put(_key244, _val245); + String _key248; // required + String _val249; // required + _key248 = iprot.readString(); + _val249 = iprot.readString(); + this.part_vals.put(_key248, _val249); } iprot.readMapEnd(); } @@ -51962,10 +53059,10 @@ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); - for (Map.Entry _iter246 : this.part_vals.entrySet()) + for (Map.Entry _iter250 : this.part_vals.entrySet()) { - oprot.writeString(_iter246.getKey()); - oprot.writeString(_iter246.getValue()); + oprot.writeString(_iter250.getKey()); + oprot.writeString(_iter250.getValue()); } oprot.writeMapEnd(); } @@ -52892,8 +53989,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -55911,8 +57006,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -57787,14 +58880,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list247 = iprot.readListBegin(); - this.success = new ArrayList(_list247.size); - for (int _i248 = 0; _i248 < _list247.size; ++_i248) + org.apache.thrift.protocol.TList _list251 = iprot.readListBegin(); + this.success = new ArrayList(_list251.size); + for (int _i252 = 0; _i252 < _list251.size; ++_i252) { - Index _elem249; // required - _elem249 = new Index(); - _elem249.read(iprot); - this.success.add(_elem249); + Index _elem253; // required + _elem253 = new Index(); + _elem253.read(iprot); + this.success.add(_elem253); } iprot.readListEnd(); } @@ -57834,9 +58927,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Index _iter250 : this.success) + for (Index _iter254 : this.success) { - _iter250.write(oprot); + _iter254.write(oprot); } oprot.writeListEnd(); } @@ -58727,13 +59820,13 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list251 = iprot.readListBegin(); - this.success = new ArrayList(_list251.size); - for (int _i252 = 0; _i252 < _list251.size; ++_i252) + org.apache.thrift.protocol.TList _list255 = iprot.readListBegin(); + this.success = new ArrayList(_list255.size); + for (int _i256 = 0; _i256 < _list255.size; ++_i256) { - String _elem253; // required - _elem253 = iprot.readString(); - this.success.add(_elem253); + String _elem257; // required + _elem257 = iprot.readString(); + this.success.add(_elem257); } iprot.readListEnd(); } @@ -58765,9 +59858,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); - for (String _iter254 : this.success) + for (String _iter258 : this.success) { - oprot.writeString(_iter254); + oprot.writeString(_iter258); } oprot.writeListEnd(); } @@ -59514,8 +60607,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -60210,8 +61301,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -60752,13 +61841,13 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list255 = iprot.readListBegin(); - this.success = new ArrayList(_list255.size); - for (int _i256 = 0; _i256 < _list255.size; ++_i256) + org.apache.thrift.protocol.TList _list259 = iprot.readListBegin(); + this.success = new ArrayList(_list259.size); + for (int _i260 = 0; _i260 < _list259.size; ++_i260) { - String _elem257; // required - _elem257 = iprot.readString(); - this.success.add(_elem257); + String _elem261; // required + _elem261 = iprot.readString(); + this.success.add(_elem261); } iprot.readListEnd(); } @@ -60790,9 +61879,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); - for (String _iter258 : this.success) + for (String _iter262 : this.success) { - oprot.writeString(_iter258); + oprot.writeString(_iter262); } oprot.writeListEnd(); } @@ -62027,8 +63116,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -62921,8 +64008,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -63667,14 +64752,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list259 = iprot.readListBegin(); - this.success = new ArrayList(_list259.size); - for (int _i260 = 0; _i260 < _list259.size; ++_i260) + org.apache.thrift.protocol.TList _list263 = iprot.readListBegin(); + this.success = new ArrayList(_list263.size); + for (int _i264 = 0; _i264 < _list263.size; ++_i264) { - Role _elem261; // required - _elem261 = new Role(); - _elem261.read(iprot); - this.success.add(_elem261); + Role _elem265; // required + _elem265 = new Role(); + _elem265.read(iprot); + this.success.add(_elem265); } iprot.readListEnd(); } @@ -63706,9 +64791,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (Role _iter262 : this.success) + for (Role _iter266 : this.success) { - _iter262.write(oprot); + _iter266.write(oprot); } oprot.writeListEnd(); } @@ -64186,13 +65271,13 @@ case 3: // GROUP_NAMES if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list263 = iprot.readListBegin(); - this.group_names = new ArrayList(_list263.size); - for (int _i264 = 0; _i264 < _list263.size; ++_i264) + org.apache.thrift.protocol.TList _list267 = iprot.readListBegin(); + this.group_names = new ArrayList(_list267.size); + for (int _i268 = 0; _i268 < _list267.size; ++_i268) { - String _elem265; // required - _elem265 = iprot.readString(); - this.group_names.add(_elem265); + String _elem269; // required + _elem269 = iprot.readString(); + this.group_names.add(_elem269); } iprot.readListEnd(); } @@ -64227,9 +65312,9 @@ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); - for (String _iter266 : this.group_names) + for (String _iter270 : this.group_names) { - oprot.writeString(_iter266); + oprot.writeString(_iter270); } oprot.writeListEnd(); } @@ -65517,14 +66602,14 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list267 = iprot.readListBegin(); - this.success = new ArrayList(_list267.size); - for (int _i268 = 0; _i268 < _list267.size; ++_i268) + org.apache.thrift.protocol.TList _list271 = iprot.readListBegin(); + this.success = new ArrayList(_list271.size); + for (int _i272 = 0; _i272 < _list271.size; ++_i272) { - HiveObjectPrivilege _elem269; // required - _elem269 = new HiveObjectPrivilege(); - _elem269.read(iprot); - this.success.add(_elem269); + HiveObjectPrivilege _elem273; // required + _elem273 = new HiveObjectPrivilege(); + _elem273.read(iprot); + this.success.add(_elem273); } iprot.readListEnd(); } @@ -65556,9 +66641,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); - for (HiveObjectPrivilege _iter270 : this.success) + for (HiveObjectPrivilege _iter274 : this.success) { - _iter270.write(oprot); + _iter274.write(oprot); } oprot.writeListEnd(); } @@ -66305,8 +67390,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -67002,8 +68085,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); @@ -67349,13 +68430,13 @@ case 2: // GROUP_NAMES if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list271 = iprot.readListBegin(); - this.group_names = new ArrayList(_list271.size); - for (int _i272 = 0; _i272 < _list271.size; ++_i272) + org.apache.thrift.protocol.TList _list275 = iprot.readListBegin(); + this.group_names = new ArrayList(_list275.size); + for (int _i276 = 0; _i276 < _list275.size; ++_i276) { - String _elem273; // required - _elem273 = iprot.readString(); - this.group_names.add(_elem273); + String _elem277; // required + _elem277 = iprot.readString(); + this.group_names.add(_elem277); } iprot.readListEnd(); } @@ -67385,9 +68466,9 @@ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); - for (String _iter274 : this.group_names) + for (String _iter278 : this.group_names) { - oprot.writeString(_iter274); + oprot.writeString(_iter278); } oprot.writeListEnd(); } @@ -67773,13 +68854,13 @@ case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list275 = iprot.readListBegin(); - this.success = new ArrayList(_list275.size); - for (int _i276 = 0; _i276 < _list275.size; ++_i276) + org.apache.thrift.protocol.TList _list279 = iprot.readListBegin(); + this.success = new ArrayList(_list279.size); + for (int _i280 = 0; _i280 < _list279.size; ++_i280) { - String _elem277; // required - _elem277 = iprot.readString(); - this.success.add(_elem277); + String _elem281; // required + _elem281 = iprot.readString(); + this.success.add(_elem281); } iprot.readListEnd(); } @@ -67811,9 +68892,9 @@ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); - for (String _iter278 : this.success) + for (String _iter282 : this.success) { - oprot.writeString(_iter278); + oprot.writeString(_iter282); } oprot.writeListEnd(); } @@ -69346,8 +70427,6 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bit_vector = new BitSet(1); 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); Index: metastore/if/hive_metastore.thrift =================================================================== --- metastore/if/hive_metastore.thrift (revision 1368350) +++ metastore/if/hive_metastore.thrift (working copy) @@ -359,6 +359,17 @@ throws(1:NoSuchObjectException o1, 2:MetaException o2) bool drop_partition_by_name(1:string db_name, 2:string tbl_name, 3:string part_name, 4:bool deleteData) throws(1:NoSuchObjectException o1, 2:MetaException o2) + + // Gets a new partition object with the given parameters. Similar to append_partition, + // but does not add the partition to metastore + // It only works for tables; does not work for other objects like views. + // The table is fetched from the metastore using the db name and the table name. + // However, the actual partition is not fetched from the metastore. + // It does not matter whether the partition exists or not. + // The partition values are used to construct a new partition. + + Partition get_partition_template(1:string db_name, 2:string tbl_name, 3:list part_vals) + throws (1:InvalidObjectException o1, 2:MetaException o2) Partition get_partition(1:string db_name, 2:string tbl_name, 3:list part_vals) throws(1:MetaException o1, 2:NoSuchObjectException o2)