diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreUtils.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreUtils.java index 3bb654de53..3eb7a81bfa 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreUtils.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreUtils.java @@ -244,5 +244,4 @@ public static IMetaStoreClient getHiveMetastoreClient(HiveConf hiveConf) throw new IOException("Couldn't create hiveMetaStoreClient, Error getting UGI for user", e); } } - } diff --git ql/src/java/org/apache/hadoop/hive/ql/lib/Utils.java ql/src/java/org/apache/hadoop/hive/ql/lib/Utils.java index ef0d5b422f..9b6d1e8307 100644 --- ql/src/java/org/apache/hadoop/hive/ql/lib/Utils.java +++ ql/src/java/org/apache/hadoop/hive/ql/lib/Utils.java @@ -18,6 +18,9 @@ package org.apache.hadoop.hive.ql.lib; +import org.apache.hadoop.hive.metastore.api.CompactionRequest; +import org.apache.hadoop.hive.metastore.txn.CompactionInfo; + import java.util.Stack; /** diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java index 3bc1f8a563..049c3faba6 100644 --- ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java @@ -62,7 +62,7 @@ /** * A class to clean directories after compactions. This will run in a separate thread. */ -public class Cleaner extends CompactorThread { +public class Cleaner extends MetaStoreCompactorThread { static final private String CLASS_NAME = Cleaner.class.getName(); static final private Logger LOG = LoggerFactory.getLogger(CLASS_NAME); private long cleanerCheckInterval = 0; diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java index 92c74e1d06..a439f5790a 100644 --- ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java @@ -46,6 +46,7 @@ import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; +import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.FieldSchema; @@ -100,6 +101,7 @@ import org.apache.hadoop.util.StringUtils; import org.apache.hive.common.util.HiveStringUtils; import org.apache.hive.common.util.Ref; +import org.apache.thrift.TException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -230,7 +232,7 @@ private void overrideMRProps(JobConf job, Map properties) { * @throws java.io.IOException if the job fails */ void run(HiveConf conf, String jobName, Table t, Partition p, StorageDescriptor sd, ValidWriteIdList writeIds, - CompactionInfo ci, Worker.StatsUpdater su, TxnStore txnHandler) throws IOException { + CompactionInfo ci, Worker.StatsUpdater su, IMetaStoreClient msc) throws IOException { if(conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST) && conf.getBoolVar(HiveConf.ConfVars.HIVETESTMODEFAILCOMPACTION)) { throw new RuntimeException(HiveConf.ConfVars.HIVETESTMODEFAILCOMPACTION.name() + "=true"); @@ -272,7 +274,7 @@ void run(HiveConf conf, String jobName, Table t, Partition p, StorageDescriptor launchCompactionJob(jobMinorCompact, null, CompactionType.MINOR, null, parsedDeltas.subList(jobSubId * maxDeltastoHandle, (jobSubId + 1) * maxDeltastoHandle), - maxDeltastoHandle, -1, conf, txnHandler, ci.id, jobName); + maxDeltastoHandle, -1, conf, msc, ci.id, jobName); } //now recompute state since we've done minor compactions and have different 'best' set of deltas dir = AcidUtils.getAcidState(new Path(sd.getLocation()), conf, writeIds); @@ -316,7 +318,7 @@ void run(HiveConf conf, String jobName, Table t, Partition p, StorageDescriptor } launchCompactionJob(job, baseDir, ci.type, dirsToSearch, dir.getCurrentDirectories(), - dir.getCurrentDirectories().size(), dir.getObsolete().size(), conf, txnHandler, ci.id, jobName); + dir.getCurrentDirectories().size(), dir.getObsolete().size(), conf, msc, ci.id, jobName); su.gatherStats(); } @@ -542,7 +544,7 @@ private void launchCompactionJob(JobConf job, Path baseDir, CompactionType compa StringableList dirsToSearch, List parsedDeltas, int curDirNumber, int obsoleteDirNumber, HiveConf hiveConf, - TxnStore txnHandler, long id, String jobName) throws IOException { + IMetaStoreClient msc, long id, String jobName) throws IOException { job.setBoolean(IS_MAJOR, compactionType == CompactionType.MAJOR); if(dirsToSearch == null) { dirsToSearch = new StringableList(); @@ -582,7 +584,11 @@ private void launchCompactionJob(JobConf job, Path baseDir, CompactionType compa RunningJob rj = jc.submitJob(job); LOG.info("Submitted compaction job '" + job.getJobName() + "' with jobID=" + rj.getID() + " compaction ID=" + id); - txnHandler.setHadoopJobId(rj.getID().toString(), id); + try { + msc.setHadoopJobid(rj.getID().toString(), id); + } catch (TException e) { + LOG.warn("Error setting hadoop jobId=rj.getID().toString(), compactionId=" + id, e); + } rj.waitForCompletion(); if (!rj.isSuccessful()) { throw new IOException((compactionType == CompactionType.MAJOR ? "Major" : "Minor") + diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorThread.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorThread.java index dd0929f2b9..920da94cb1 100644 --- ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorThread.java +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorThread.java @@ -17,25 +17,23 @@ */ package org.apache.hadoop.hive.ql.txn.compactor; +import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.MetaStoreThread; +import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.RawStore; -import org.apache.hadoop.hive.metastore.RawStoreProxy; import org.apache.hadoop.hive.metastore.Warehouse; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.txn.CompactionInfo; -import org.apache.hadoop.hive.metastore.txn.TxnStore; -import org.apache.hadoop.hive.metastore.txn.TxnUtils; import org.apache.hadoop.security.AccessControlException; import org.apache.hadoop.security.UserGroupInformation; +import org.apache.thrift.TException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,22 +43,29 @@ import java.util.Collections; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.getDefaultCatalog; /** * Superclass for all threads in the compactor. */ -abstract class CompactorThread extends Thread implements MetaStoreThread { +public abstract class CompactorThread extends Thread implements Configurable { static final private String CLASS_NAME = CompactorThread.class.getName(); static final private Logger LOG = LoggerFactory.getLogger(CLASS_NAME); protected HiveConf conf; - protected TxnStore txnHandler; protected RawStore rs; - protected int threadId; protected AtomicBoolean stop; protected AtomicBoolean looped; + protected IMetaStoreClient msc; + + protected int threadId; + + public void setThreadId(int threadId) { + this.threadId = threadId; + } @Override public void setConf(Configuration configuration) { @@ -76,24 +81,17 @@ public Configuration getConf() { return conf; } - @Override - public void setThreadId(int threadId) { - this.threadId = threadId; + public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { + init(stop, looped, null); } - @Override - public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { - this.stop = stop; - this.looped = looped; + public void init(AtomicBoolean stop, AtomicBoolean looped, IMetaStoreClient msc) { setPriority(MIN_PRIORITY); setDaemon(true); // this means the process will exit without waiting for this thread + this.stop = stop; + this.looped = looped; - // Get our own instance of the transaction handler - txnHandler = TxnUtils.getTxnStore(conf); - - // Get our own connection to the database so we can get table and partition information. - rs = RawStoreProxy.getProxy(conf, conf, - MetastoreConf.getVar(conf, MetastoreConf.ConfVars.RAW_STORE_IMPL), threadId); + this.msc = msc; } /** @@ -102,9 +100,10 @@ public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException * @return metastore table * @throws org.apache.hadoop.hive.metastore.api.MetaException if the table cannot be found. */ - protected Table resolveTable(CompactionInfo ci) throws MetaException { + protected Table resolveTable(CompactionInfo ci) throws MetaException, + TException { try { - return rs.getTable(getDefaultCatalog(conf), ci.dbname, ci.tableName); + return msc.getTable(getDefaultCatalog(conf), ci.dbname, ci.tableName); } catch (MetaException e) { LOG.error("Unable to find table " + ci.getFullTableName() + ", " + e.getMessage()); throw e; @@ -122,7 +121,7 @@ protected Partition resolvePartition(CompactionInfo ci) throws Exception { if (ci.partName != null) { List parts; try { - parts = rs.getPartitionsByNames(getDefaultCatalog(conf), ci.dbname, ci.tableName, + parts = msc.getPartitionsByNames(getDefaultCatalog(conf), ci.dbname, ci.tableName, Collections.singletonList(ci.partName)); if (parts == null || parts.size() == 0) { // The partition got dropped before we went looking for it. @@ -219,4 +218,43 @@ protected boolean runJobAsSelf(String owner) { protected String tableName(Table t) { return Warehouse.getQualifiedName(t); } + + + public static CompactorThread instantiateThread(String classname) throws Exception { + Class c = Class.forName(classname); + Object o = c.newInstance(); + if (CompactorThread.class.isAssignableFrom(o.getClass())) { + return (CompactorThread) o; + } else { + String s = classname + " is not an instance of CompactorThread."; + LOG.error(s); + throw new IOException(s); + } + } + + private static int nextThreadId = 1000000; + private static Lock threadIdL = new ReentrantLock(); + + public static void initializeAndStartThread(CompactorThread thread, Configuration conf, IMetaStoreClient msc) { + LOG.info("Starting compactor thread of type " + thread.getClass().getName()); + thread.setConf(conf); + thread.setThreadId(getNextThreadId()); + thread.init(new AtomicBoolean(), new AtomicBoolean(), msc); + thread.start(); + } + + public static void initializeAndStartThread(CompactorThread thread, Configuration conf) { + initializeAndStartThread(thread, conf, null); + } + + private static int getNextThreadId() { + try { + threadIdL.lock(); + return nextThreadId++; + } finally { + threadIdL.unlock(); + } + + } + } diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java index beb6902d7d..b8240aad56 100644 --- ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java @@ -58,7 +58,7 @@ * A class to initiate compactions. This will run in a separate thread. * It's critical that there exactly 1 of these in a given warehouse. */ -public class Initiator extends CompactorThread { +public class Initiator extends MetaStoreCompactorThread { static final private String CLASS_NAME = Initiator.class.getName(); static final private Logger LOG = LoggerFactory.getLogger(CLASS_NAME); diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java index d9f186cd03..b70f2691bc 100644 --- ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java @@ -18,12 +18,17 @@ package org.apache.hadoop.hive.ql.txn.compactor; import org.apache.hadoop.fs.FileSystem; -import org.apache.hadoop.hive.metastore.api.GetValidWriteIdsRequest; +import org.apache.hadoop.hive.common.ValidReaderWriteIdList; +import org.apache.hadoop.hive.metastore.HiveMetaStoreUtils; +import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TableValidWriteIds; +import org.apache.hadoop.hive.metastore.utils.MetaStoreServerUtils; import org.apache.hadoop.mapred.JobConf; +import org.apache.zookeeper.txn.Txn; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.hive.common.ValidWriteIdList; @@ -83,7 +88,11 @@ public void run() { // Make sure nothing escapes this run method and kills the metastore at large, // so wrap it in a big catch Throwable statement. try { - final CompactionInfo ci = txnHandler.findNextToCompact(name); + if (msc == null) { + msc = HiveMetaStoreUtils.getHiveMetastoreClient(conf); + } + final CompactionInfo ci = MetaStoreServerUtils.compactionStructToInfo( + msc.findNextCompact(name)); LOG.debug("Processing compaction request " + ci); if (ci == null && !stop.get()) { @@ -103,11 +112,11 @@ public void run() { if (t1 == null) { LOG.info("Unable to find table " + ci.getFullTableName() + ", assuming it was dropped and moving on."); - txnHandler.markCleaned(ci); + msc.markCleaned(MetaStoreServerUtils.compactionInfoToStruct(ci)); continue; } } catch (MetaException e) { - txnHandler.markCleaned(ci); + msc.markCleaned(MetaStoreServerUtils.compactionInfoToStruct(ci)); continue; } // This chicanery is to get around the fact that the table needs to be final in order to @@ -121,11 +130,11 @@ public void run() { if (p == null && ci.partName != null) { LOG.info("Unable to find partition " + ci.getFullPartitionName() + ", assuming it was dropped and moving on."); - txnHandler.markCleaned(ci); + msc.markCleaned(MetaStoreServerUtils.compactionInfoToStruct(ci)); continue; } } catch (Exception e) { - txnHandler.markCleaned(ci); + msc.markCleaned(MetaStoreServerUtils.compactionInfoToStruct(ci)); continue; } @@ -135,7 +144,7 @@ public void run() { // Check that the table or partition isn't sorted, as we don't yet support that. if (sd.getSortCols() != null && !sd.getSortCols().isEmpty()) { LOG.error("Attempt to compact sorted table, which is not yet supported!"); - txnHandler.markCleaned(ci); + msc.markCleaned(MetaStoreServerUtils.compactionInfoToStruct(ci)); continue; } @@ -144,11 +153,11 @@ public void run() { // Compaction doesn't work under a transaction and hence pass 0 for current txn Id // The response will have one entry per table and hence we get only one OpenWriteIds String fullTableName = TxnUtils.getFullTableName(t.getDbName(), t.getTableName()); - GetValidWriteIdsRequest rqst = new GetValidWriteIdsRequest(Collections.singletonList(fullTableName)); - final ValidWriteIdList tblValidWriteIds = - TxnUtils.createValidCompactWriteIdList(txnHandler.getValidWriteIds(rqst).getTblValidWriteIds().get(0)); + final ValidWriteIdList tblValidWriteIds = TxnUtils.updateForCompactionQuery( + (ValidReaderWriteIdList)msc.getValidWriteIds(fullTableName)); LOG.debug("ValidCompactWriteIdList: " + tblValidWriteIds.writeToString()); - txnHandler.setCompactionHighestWriteId(ci, tblValidWriteIds.getHighWatermark()); + msc.setCompactionHighestWriteid(MetaStoreServerUtils.compactionInfoToStruct(ci), + tblValidWriteIds.getHighWatermark()); final StringBuilder jobName = new StringBuilder(name); jobName.append("-compactor-"); jobName.append(ci.getFullPartitionName()); @@ -157,7 +166,7 @@ public void run() { String runAs; if (ci.runAs == null) { runAs = findUserToRunAs(sd.getLocation(), t); - txnHandler.setRunAs(ci.id, runAs); + msc.setRunAs(ci.id, runAs); } else { runAs = ci.runAs; } @@ -165,13 +174,14 @@ public void run() { LOG.info("Starting " + ci.type.toString() + " compaction for " + ci.getFullPartitionName()); - final StatsUpdater su = StatsUpdater.init(ci, txnHandler.findColumnsWithStats(ci), conf, + final StatsUpdater su = StatsUpdater.init(ci, msc.findColumnsWithStats( + MetaStoreServerUtils.compactionInfoToStruct(ci)), conf, runJobAsSelf(runAs) ? runAs : t.getOwner()); final CompactorMR mr = new CompactorMR(); launchedJob = true; try { if (runJobAsSelf(runAs)) { - mr.run(conf, jobName.toString(), t, p, sd, tblValidWriteIds, ci, su, txnHandler); + mr.run(conf, jobName.toString(), t, p, sd, tblValidWriteIds, ci, su, msc); } else { UserGroupInformation ugi = UserGroupInformation.createProxyUser(t.getOwner(), UserGroupInformation.getLoginUser()); @@ -179,7 +189,7 @@ public void run() { ugi.doAs(new PrivilegedExceptionAction() { @Override public Object run() throws Exception { - mr.run(conf, jobName.toString(), t, fp, sd, tblValidWriteIds, ci, su, txnHandler); + mr.run(conf, jobName.toString(), t, fp, sd, tblValidWriteIds, ci, su, msc); return null; } }); @@ -190,14 +200,14 @@ public Object run() throws Exception { ci.getFullPartitionName(), exception); } } - txnHandler.markCompacted(ci); + msc.markCompacted(MetaStoreServerUtils.compactionInfoToStruct(ci)); if (conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST)) { mrJob = mr.getMrJob(); } } catch (Exception e) { LOG.error("Caught exception while trying to compact " + ci + ". Marking failed to avoid repeated failures, " + StringUtils.stringifyException(e)); - txnHandler.markFailed(ci); + msc.markFailed(MetaStoreServerUtils.compactionInfoToStruct(ci)); } } catch (Throwable t) { LOG.error("Caught an exception in the main loop of compactor worker " + name + ", " + @@ -217,8 +227,8 @@ public Object run() throws Exception { } @Override - public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { - super.init(stop, looped); + public void init(AtomicBoolean stop, AtomicBoolean looped, IMetaStoreClient msc) { + super.init(stop, looped, msc); StringBuilder name = new StringBuilder(hostname()); name.append("-"); diff --git service/src/java/org/apache/hive/service/server/HiveServer2.java service/src/java/org/apache/hive/service/server/HiveServer2.java index 9376e87531..f4ec2da37c 100644 --- service/src/java/org/apache/hive/service/server/HiveServer2.java +++ service/src/java/org/apache/hive/service/server/HiveServer2.java @@ -62,6 +62,7 @@ import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.llap.coordinator.LlapCoordinator; import org.apache.hadoop.hive.llap.registry.impl.LlapRegistryService; +import org.apache.hadoop.hive.metastore.MetaStoreThread; import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; import org.apache.hadoop.hive.metastore.api.WMPool; import org.apache.hadoop.hive.metastore.api.WMResourcePlan; @@ -82,6 +83,7 @@ import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizer; import org.apache.hadoop.hive.ql.session.ClearDanglingScratchDir; import org.apache.hadoop.hive.ql.session.SessionState; +import org.apache.hadoop.hive.ql.txn.compactor.CompactorThread; import org.apache.hadoop.hive.ql.util.ZooKeeperHiveHelper; import org.apache.hadoop.hive.shims.ShimLoader; import org.apache.hadoop.hive.shims.Utils; @@ -291,6 +293,12 @@ public void run() { throw new ServiceException(e); } + try { + maybeStartCompactorThreads(hiveConf); + } catch (Exception e) { + throw new RuntimeException(e); + } + // Setup web UI final int webUIPort; final String webHost; @@ -1084,6 +1092,17 @@ private static void startHiveServer2() throws Throwable { } } + private void maybeStartCompactorThreads(HiveConf hiveConf) throws Exception { + if (MetastoreConf.getBoolVar(hiveConf, MetastoreConf.ConfVars.HIVE_MAPREDUCE_AVAILABLE)) { + int numWorkers = MetastoreConf.getIntVar(hiveConf, MetastoreConf.ConfVars.COMPACTOR_WORKER_THREADS); + for (int i = 0; i < numWorkers; i++) { + CompactorThread worker = CompactorThread.instantiateThread( + "org.apache.hadoop.hive.ql.txn.compactor.Worker"); + CompactorThread.initializeAndStartThread(worker, hiveConf); + } + } + } + /** * Remove all znodes corresponding to the given version number from ZooKeeper * diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index 45618e781c..333b1ee477 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -816,13 +816,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 5: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list716.size); - String _elem717; - for (int _i718 = 0; _i718 < _list716.size; ++_i718) + org.apache.thrift.protocol.TList _list726 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list726.size); + String _elem727; + for (int _i728 = 0; _i728 < _list726.size; ++_i728) { - _elem717 = iprot.readString(); - struct.partitionnames.add(_elem717); + _elem727 = iprot.readString(); + struct.partitionnames.add(_elem727); } iprot.readListEnd(); } @@ -872,9 +872,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter719 : struct.partitionnames) + for (String _iter729 : struct.partitionnames) { - oprot.writeString(_iter719); + oprot.writeString(_iter729); } oprot.writeListEnd(); } @@ -910,9 +910,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter720 : struct.partitionnames) + for (String _iter730 : struct.partitionnames) { - oprot.writeString(_iter720); + oprot.writeString(_iter730); } } BitSet optionals = new BitSet(); @@ -937,13 +937,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list721.size); - String _elem722; - for (int _i723 = 0; _i723 < _list721.size; ++_i723) + org.apache.thrift.protocol.TList _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list731.size); + String _elem732; + for (int _i733 = 0; _i733 < _list731.size; ++_i733) { - _elem722 = iprot.readString(); - struct.partitionnames.add(_elem722); + _elem732 = iprot.readString(); + struct.partitionnames.add(_elem732); } } struct.setPartitionnamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java index 4d4595a429..f2f6863c27 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java @@ -877,14 +877,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AlterPartitionsRequ case 4: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list952.size); - Partition _elem953; - for (int _i954 = 0; _i954 < _list952.size; ++_i954) + org.apache.thrift.protocol.TList _list962 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list962.size); + Partition _elem963; + for (int _i964 = 0; _i964 < _list962.size; ++_i964) { - _elem953 = new Partition(); - _elem953.read(iprot); - struct.partitions.add(_elem953); + _elem963 = new Partition(); + _elem963.read(iprot); + struct.partitions.add(_elem963); } iprot.readListEnd(); } @@ -952,9 +952,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AlterPartitionsReq oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter955 : struct.partitions) + for (Partition _iter965 : struct.partitions) { - _iter955.write(oprot); + _iter965.write(oprot); } oprot.writeListEnd(); } @@ -1000,9 +1000,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AlterPartitionsRequ oprot.writeString(struct.tableName); { oprot.writeI32(struct.partitions.size()); - for (Partition _iter956 : struct.partitions) + for (Partition _iter966 : struct.partitions) { - _iter956.write(oprot); + _iter966.write(oprot); } } BitSet optionals = new BitSet(); @@ -1041,14 +1041,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AlterPartitionsReque struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); { - org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list957.size); - Partition _elem958; - for (int _i959 = 0; _i959 < _list957.size; ++_i959) + org.apache.thrift.protocol.TList _list967 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list967.size); + Partition _elem968; + for (int _i969 = 0; _i969 < _list967.size; ++_i969) { - _elem958 = new Partition(); - _elem958.read(iprot); - struct.partitions.add(_elem958); + _elem968 = new Partition(); + _elem968.read(iprot); + struct.partitions.add(_elem968); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 3fdd295fb1..668b7d3f61 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClearFileMetadataRe case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list832 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list832.size); - long _elem833; - for (int _i834 = 0; _i834 < _list832.size; ++_i834) + org.apache.thrift.protocol.TList _list842 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list842.size); + long _elem843; + for (int _i844 = 0; _i844 < _list842.size; ++_i844) { - _elem833 = iprot.readI64(); - struct.fileIds.add(_elem833); + _elem843 = iprot.readI64(); + struct.fileIds.add(_elem843); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClearFileMetadataR oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter835 : struct.fileIds) + for (long _iter845 : struct.fileIds) { - oprot.writeI64(_iter835); + oprot.writeI64(_iter845); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter836 : struct.fileIds) + for (long _iter846 : struct.fileIds) { - oprot.writeI64(_iter836); + oprot.writeI64(_iter846); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list837 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list837.size); - long _elem838; - for (int _i839 = 0; _i839 < _list837.size; ++_i839) + org.apache.thrift.protocol.TList _list847 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list847.size); + long _elem848; + for (int _i849 = 0; _i849 < _list847.size; ++_i849) { - _elem838 = iprot.readI64(); - struct.fileIds.add(_elem838); + _elem848 = iprot.readI64(); + struct.fileIds.add(_elem848); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index f5c9582fa9..75b9d31751 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java @@ -354,13 +354,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClientCapabilities case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); - struct.values = new ArrayList(_list848.size); - ClientCapability _elem849; - for (int _i850 = 0; _i850 < _list848.size; ++_i850) + org.apache.thrift.protocol.TList _list858 = iprot.readListBegin(); + struct.values = new ArrayList(_list858.size); + ClientCapability _elem859; + for (int _i860 = 0; _i860 < _list858.size; ++_i860) { - _elem849 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem849); + _elem859 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem859); } iprot.readListEnd(); } @@ -386,9 +386,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClientCapabilities oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.values.size())); - for (ClientCapability _iter851 : struct.values) + for (ClientCapability _iter861 : struct.values) { - oprot.writeI32(_iter851.getValue()); + oprot.writeI32(_iter861.getValue()); } oprot.writeListEnd(); } @@ -413,9 +413,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.values.size()); - for (ClientCapability _iter852 : struct.values) + for (ClientCapability _iter862 : struct.values) { - oprot.writeI32(_iter852.getValue()); + oprot.writeI32(_iter862.getValue()); } } } @@ -424,13 +424,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities public void read(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list853.size); - ClientCapability _elem854; - for (int _i855 = 0; _i855 < _list853.size; ++_i855) + org.apache.thrift.protocol.TList _list863 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list863.size); + ClientCapability _elem864; + for (int _i865 = 0; _i865 < _list863.size; ++_i865) { - _elem854 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem854); + _elem864 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem864); } } struct.setValuesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java index d631e21cec..adf719097a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java @@ -792,13 +792,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreationMetadata st case 4: // TABLES_USED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set724 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set724.size); - String _elem725; - for (int _i726 = 0; _i726 < _set724.size; ++_i726) + org.apache.thrift.protocol.TSet _set734 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set734.size); + String _elem735; + for (int _i736 = 0; _i736 < _set734.size; ++_i736) { - _elem725 = iprot.readString(); - struct.tablesUsed.add(_elem725); + _elem735 = iprot.readString(); + struct.tablesUsed.add(_elem735); } iprot.readSetEnd(); } @@ -855,9 +855,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreationMetadata s oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); - for (String _iter727 : struct.tablesUsed) + for (String _iter737 : struct.tablesUsed) { - oprot.writeString(_iter727); + oprot.writeString(_iter737); } oprot.writeSetEnd(); } @@ -897,9 +897,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CreationMetadata st oprot.writeString(struct.tblName); { oprot.writeI32(struct.tablesUsed.size()); - for (String _iter728 : struct.tablesUsed) + for (String _iter738 : struct.tablesUsed) { - oprot.writeString(_iter728); + oprot.writeString(_iter738); } } BitSet optionals = new BitSet(); @@ -928,13 +928,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CreationMetadata str struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TSet _set729 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set729.size); - String _elem730; - for (int _i731 = 0; _i731 < _set729.size; ++_i731) + org.apache.thrift.protocol.TSet _set739 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set739.size); + String _elem740; + for (int _i741 = 0; _i741 < _set739.size; ++_i741) { - _elem730 = iprot.readString(); - struct.tablesUsed.add(_elem730); + _elem740 = iprot.readString(); + struct.tablesUsed.add(_elem740); } } struct.setTablesUsedIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java index 8f5b4e5bb4..bcff0f4957 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FindSchemasByColsRe case 1: // SCHEMA_VERSIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list944.size); - SchemaVersionDescriptor _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list954 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list954.size); + SchemaVersionDescriptor _elem955; + for (int _i956 = 0; _i956 < _list954.size; ++_i956) { - _elem945 = new SchemaVersionDescriptor(); - _elem945.read(iprot); - struct.schemaVersions.add(_elem945); + _elem955 = new SchemaVersionDescriptor(); + _elem955.read(iprot); + struct.schemaVersions.add(_elem955); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FindSchemasByColsR oprot.writeFieldBegin(SCHEMA_VERSIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.schemaVersions.size())); - for (SchemaVersionDescriptor _iter947 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter957 : struct.schemaVersions) { - _iter947.write(oprot); + _iter957.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRe if (struct.isSetSchemaVersions()) { { oprot.writeI32(struct.schemaVersions.size()); - for (SchemaVersionDescriptor _iter948 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter958 : struct.schemaVersions) { - _iter948.write(oprot); + _iter958.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRes BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list949.size); - SchemaVersionDescriptor _elem950; - for (int _i951 = 0; _i951 < _list949.size; ++_i951) + org.apache.thrift.protocol.TList _list959 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.schemaVersions = new ArrayList(_list959.size); + SchemaVersionDescriptor _elem960; + for (int _i961 = 0; _i961 < _list959.size; ++_i961) { - _elem950 = new SchemaVersionDescriptor(); - _elem950.read(iprot); - struct.schemaVersions.add(_elem950); + _elem960 = new SchemaVersionDescriptor(); + _elem960.read(iprot); + struct.schemaVersions.add(_elem960); } } struct.setSchemaVersionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index dc2627a1fb..c0231a29f6 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -794,13 +794,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FireEventRequest st case 5: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list764.size); - String _elem765; - for (int _i766 = 0; _i766 < _list764.size; ++_i766) + org.apache.thrift.protocol.TList _list774 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list774.size); + String _elem775; + for (int _i776 = 0; _i776 < _list774.size; ++_i776) { - _elem765 = iprot.readString(); - struct.partitionVals.add(_elem765); + _elem775 = iprot.readString(); + struct.partitionVals.add(_elem775); } iprot.readListEnd(); } @@ -857,9 +857,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FireEventRequest s oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size())); - for (String _iter767 : struct.partitionVals) + for (String _iter777 : struct.partitionVals) { - oprot.writeString(_iter767); + oprot.writeString(_iter777); } oprot.writeListEnd(); } @@ -915,9 +915,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FireEventRequest st if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter768 : struct.partitionVals) + for (String _iter778 : struct.partitionVals) { - oprot.writeString(_iter768); + oprot.writeString(_iter778); } } } @@ -945,13 +945,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list769.size); - String _elem770; - for (int _i771 = 0; _i771 < _list769.size; ++_i771) + org.apache.thrift.protocol.TList _list779 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list779.size); + String _elem780; + for (int _i781 = 0; _i781 < _list779.size; ++_i781) { - _elem770 = iprot.readString(); - struct.partitionVals.add(_elem770); + _elem780 = iprot.readString(); + struct.partitionVals.add(_elem780); } } struct.setPartitionValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 13fe5fa6d5..631abfed9d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list840 = iprot.readListBegin(); - struct.functions = new ArrayList(_list840.size); - Function _elem841; - for (int _i842 = 0; _i842 < _list840.size; ++_i842) + org.apache.thrift.protocol.TList _list850 = iprot.readListBegin(); + struct.functions = new ArrayList(_list850.size); + Function _elem851; + for (int _i852 = 0; _i852 < _list850.size; ++_i852) { - _elem841 = new Function(); - _elem841.read(iprot); - struct.functions.add(_elem841); + _elem851 = new Function(); + _elem851.read(iprot); + struct.functions.add(_elem851); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetAllFunctionsRes oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size())); - for (Function _iter843 : struct.functions) + for (Function _iter853 : struct.functions) { - _iter843.write(oprot); + _iter853.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsResp if (struct.isSetFunctions()) { { oprot.writeI32(struct.functions.size()); - for (Function _iter844 : struct.functions) + for (Function _iter854 : struct.functions) { - _iter844.write(oprot); + _iter854.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsRespo BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list845.size); - Function _elem846; - for (int _i847 = 0; _i847 < _list845.size; ++_i847) + org.apache.thrift.protocol.TList _list855 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list855.size); + Function _elem856; + for (int _i857 = 0; _i857 < _list855.size; ++_i857) { - _elem846 = new Function(); - _elem846.read(iprot); - struct.functions.add(_elem846); + _elem856 = new Function(); + _elem856.read(iprot); + struct.functions.add(_elem856); } } struct.setFunctionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 976bf001a0..3cb7793485 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java @@ -619,13 +619,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list790 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list790.size); - long _elem791; - for (int _i792 = 0; _i792 < _list790.size; ++_i792) + org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list800.size); + long _elem801; + for (int _i802 = 0; _i802 < _list800.size; ++_i802) { - _elem791 = iprot.readI64(); - struct.fileIds.add(_elem791); + _elem801 = iprot.readI64(); + struct.fileIds.add(_elem801); } iprot.readListEnd(); } @@ -675,9 +675,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter793 : struct.fileIds) + for (long _iter803 : struct.fileIds) { - oprot.writeI64(_iter793); + oprot.writeI64(_iter803); } oprot.writeListEnd(); } @@ -719,9 +719,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter794 : struct.fileIds) + for (long _iter804 : struct.fileIds) { - oprot.writeI64(_iter794); + oprot.writeI64(_iter804); } } oprot.writeBinary(struct.expr); @@ -745,13 +745,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list795 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list795.size); - long _elem796; - for (int _i797 = 0; _i797 < _list795.size; ++_i797) + org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list805.size); + long _elem806; + for (int _i807 = 0; _i807 < _list805.size; ++_i807) { - _elem796 = iprot.readI64(); - struct.fileIds.add(_elem796); + _elem806 = iprot.readI64(); + struct.fileIds.add(_elem806); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index 16a0113ac0..5237e12d1f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java @@ -444,16 +444,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map780 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map780.size); - long _key781; - MetadataPpdResult _val782; - for (int _i783 = 0; _i783 < _map780.size; ++_i783) + org.apache.thrift.protocol.TMap _map790 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map790.size); + long _key791; + MetadataPpdResult _val792; + for (int _i793 = 0; _i793 < _map790.size; ++_i793) { - _key781 = iprot.readI64(); - _val782 = new MetadataPpdResult(); - _val782.read(iprot); - struct.metadata.put(_key781, _val782); + _key791 = iprot.readI64(); + _val792 = new MetadataPpdResult(); + _val792.read(iprot); + struct.metadata.put(_key791, _val792); } iprot.readMapEnd(); } @@ -487,10 +487,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.metadata.size())); - for (Map.Entry _iter784 : struct.metadata.entrySet()) + for (Map.Entry _iter794 : struct.metadata.entrySet()) { - oprot.writeI64(_iter784.getKey()); - _iter784.getValue().write(oprot); + oprot.writeI64(_iter794.getKey()); + _iter794.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -518,10 +518,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter785 : struct.metadata.entrySet()) + for (Map.Entry _iter795 : struct.metadata.entrySet()) { - oprot.writeI64(_iter785.getKey()); - _iter785.getValue().write(oprot); + oprot.writeI64(_iter795.getKey()); + _iter795.getValue().write(oprot); } } oprot.writeBool(struct.isSupported); @@ -531,16 +531,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map786 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.metadata = new HashMap(2*_map786.size); - long _key787; - MetadataPpdResult _val788; - for (int _i789 = 0; _i789 < _map786.size; ++_i789) + org.apache.thrift.protocol.TMap _map796 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.metadata = new HashMap(2*_map796.size); + long _key797; + MetadataPpdResult _val798; + for (int _i799 = 0; _i799 < _map796.size; ++_i799) { - _key787 = iprot.readI64(); - _val788 = new MetadataPpdResult(); - _val788.read(iprot); - struct.metadata.put(_key787, _val788); + _key797 = iprot.readI64(); + _val798 = new MetadataPpdResult(); + _val798.read(iprot); + struct.metadata.put(_key797, _val798); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index 9e3ed8b282..ae3706e785 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list808 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list808.size); - long _elem809; - for (int _i810 = 0; _i810 < _list808.size; ++_i810) + org.apache.thrift.protocol.TList _list818 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list818.size); + long _elem819; + for (int _i820 = 0; _i820 < _list818.size; ++_i820) { - _elem809 = iprot.readI64(); - struct.fileIds.add(_elem809); + _elem819 = iprot.readI64(); + struct.fileIds.add(_elem819); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter811 : struct.fileIds) + for (long _iter821 : struct.fileIds) { - oprot.writeI64(_iter811); + oprot.writeI64(_iter821); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter812 : struct.fileIds) + for (long _iter822 : struct.fileIds) { - oprot.writeI64(_iter812); + oprot.writeI64(_iter822); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list813.size); - long _elem814; - for (int _i815 = 0; _i815 < _list813.size; ++_i815) + org.apache.thrift.protocol.TList _list823 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list823.size); + long _elem824; + for (int _i825 = 0; _i825 < _list823.size; ++_i825) { - _elem814 = iprot.readI64(); - struct.fileIds.add(_elem814); + _elem824 = iprot.readI64(); + struct.fileIds.add(_elem824); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index bc73f1ec27..f98f6261c6 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java @@ -433,15 +433,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataResu case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map798 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map798.size); - long _key799; - ByteBuffer _val800; - for (int _i801 = 0; _i801 < _map798.size; ++_i801) + org.apache.thrift.protocol.TMap _map808 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map808.size); + long _key809; + ByteBuffer _val810; + for (int _i811 = 0; _i811 < _map808.size; ++_i811) { - _key799 = iprot.readI64(); - _val800 = iprot.readBinary(); - struct.metadata.put(_key799, _val800); + _key809 = iprot.readI64(); + _val810 = iprot.readBinary(); + struct.metadata.put(_key809, _val810); } iprot.readMapEnd(); } @@ -475,10 +475,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataRes oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (Map.Entry _iter802 : struct.metadata.entrySet()) + for (Map.Entry _iter812 : struct.metadata.entrySet()) { - oprot.writeI64(_iter802.getKey()); - oprot.writeBinary(_iter802.getValue()); + oprot.writeI64(_iter812.getKey()); + oprot.writeBinary(_iter812.getValue()); } oprot.writeMapEnd(); } @@ -506,10 +506,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter803 : struct.metadata.entrySet()) + for (Map.Entry _iter813 : struct.metadata.entrySet()) { - oprot.writeI64(_iter803.getKey()); - oprot.writeBinary(_iter803.getValue()); + oprot.writeI64(_iter813.getKey()); + oprot.writeBinary(_iter813.getValue()); } } oprot.writeBool(struct.isSupported); @@ -519,15 +519,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map804 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new HashMap(2*_map804.size); - long _key805; - ByteBuffer _val806; - for (int _i807 = 0; _i807 < _map804.size; ++_i807) + org.apache.thrift.protocol.TMap _map814 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new HashMap(2*_map814.size); + long _key815; + ByteBuffer _val816; + for (int _i817 = 0; _i817 < _map814.size; ++_i817) { - _key805 = iprot.readI64(); - _val806 = iprot.readBinary(); - struct.metadata.put(_key805, _val806); + _key815 = iprot.readI64(); + _val816 = iprot.readBinary(); + struct.metadata.put(_key815, _val816); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java index 57511ce780..06640f90a7 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java @@ -444,13 +444,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsFilter case 8: // FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); - struct.filters = new ArrayList(_list976.size); - String _elem977; - for (int _i978 = 0; _i978 < _list976.size; ++_i978) + org.apache.thrift.protocol.TList _list986 = iprot.readListBegin(); + struct.filters = new ArrayList(_list986.size); + String _elem987; + for (int _i988 = 0; _i988 < _list986.size; ++_i988) { - _elem977 = iprot.readString(); - struct.filters.add(_elem977); + _elem987 = iprot.readString(); + struct.filters.add(_elem987); } iprot.readListEnd(); } @@ -484,9 +484,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsFilte oprot.writeFieldBegin(FILTERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filters.size())); - for (String _iter979 : struct.filters) + for (String _iter989 : struct.filters) { - oprot.writeString(_iter979); + oprot.writeString(_iter989); } oprot.writeListEnd(); } @@ -524,9 +524,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilter if (struct.isSetFilters()) { { oprot.writeI32(struct.filters.size()); - for (String _iter980 : struct.filters) + for (String _iter990 : struct.filters) { - oprot.writeString(_iter980); + oprot.writeString(_iter990); } } } @@ -542,13 +542,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilterS } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filters = new ArrayList(_list981.size); - String _elem982; - for (int _i983 = 0; _i983 < _list981.size; ++_i983) + org.apache.thrift.protocol.TList _list991 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filters = new ArrayList(_list991.size); + String _elem992; + for (int _i993 = 0; _i993 < _list991.size; ++_i993) { - _elem982 = iprot.readString(); - struct.filters.add(_elem982); + _elem992 = iprot.readString(); + struct.filters.add(_elem992); } } struct.setFiltersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java index bf7b6b7812..023c22ed42 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java @@ -509,13 +509,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsProjec case 1: // FIELD_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); - struct.fieldList = new ArrayList(_list968.size); - String _elem969; - for (int _i970 = 0; _i970 < _list968.size; ++_i970) + org.apache.thrift.protocol.TList _list978 = iprot.readListBegin(); + struct.fieldList = new ArrayList(_list978.size); + String _elem979; + for (int _i980 = 0; _i980 < _list978.size; ++_i980) { - _elem969 = iprot.readString(); - struct.fieldList.add(_elem969); + _elem979 = iprot.readString(); + struct.fieldList.add(_elem979); } iprot.readListEnd(); } @@ -557,9 +557,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsProje oprot.writeFieldBegin(FIELD_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.fieldList.size())); - for (String _iter971 : struct.fieldList) + for (String _iter981 : struct.fieldList) { - oprot.writeString(_iter971); + oprot.writeString(_iter981); } oprot.writeListEnd(); } @@ -606,9 +606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsProjec if (struct.isSetFieldList()) { { oprot.writeI32(struct.fieldList.size()); - for (String _iter972 : struct.fieldList) + for (String _iter982 : struct.fieldList) { - oprot.writeString(_iter972); + oprot.writeString(_iter982); } } } @@ -626,13 +626,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsProject BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fieldList = new ArrayList(_list973.size); - String _elem974; - for (int _i975 = 0; _i975 < _list973.size; ++_i975) + org.apache.thrift.protocol.TList _list983 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fieldList = new ArrayList(_list983.size); + String _elem984; + for (int _i985 = 0; _i985 < _list983.size; ++_i985) { - _elem974 = iprot.readString(); - struct.fieldList.add(_elem974); + _elem984 = iprot.readString(); + struct.fieldList.add(_elem984); } } struct.setFieldListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java index 6aa8de83ff..defdd27304 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java @@ -960,13 +960,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsReques case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list992 = iprot.readListBegin(); - struct.groupNames = new ArrayList(_list992.size); - String _elem993; - for (int _i994 = 0; _i994 < _list992.size; ++_i994) + org.apache.thrift.protocol.TList _list1002 = iprot.readListBegin(); + struct.groupNames = new ArrayList(_list1002.size); + String _elem1003; + for (int _i1004 = 0; _i1004 < _list1002.size; ++_i1004) { - _elem993 = iprot.readString(); - struct.groupNames.add(_elem993); + _elem1003 = iprot.readString(); + struct.groupNames.add(_elem1003); } iprot.readListEnd(); } @@ -1040,9 +1040,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsReque oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.groupNames.size())); - for (String _iter995 : struct.groupNames) + for (String _iter1005 : struct.groupNames) { - oprot.writeString(_iter995); + oprot.writeString(_iter1005); } oprot.writeListEnd(); } @@ -1120,9 +1120,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetGroupNames()) { { oprot.writeI32(struct.groupNames.size()); - for (String _iter996 : struct.groupNames) + for (String _iter1006 : struct.groupNames) { - oprot.writeString(_iter996); + oprot.writeString(_iter1006); } } } @@ -1160,13 +1160,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.groupNames = new ArrayList(_list997.size); - String _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + org.apache.thrift.protocol.TList _list1007 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.groupNames = new ArrayList(_list1007.size); + String _elem1008; + for (int _i1009 = 0; _i1009 < _list1007.size; ++_i1009) { - _elem998 = iprot.readString(); - struct.groupNames.add(_elem998); + _elem1008 = iprot.readString(); + struct.groupNames.add(_elem1008); } } struct.setGroupNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java index 2c374b868a..034df7cfed 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsRespon case 1: // PARTITION_SPEC if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list984 = iprot.readListBegin(); - struct.partitionSpec = new ArrayList(_list984.size); - PartitionSpec _elem985; - for (int _i986 = 0; _i986 < _list984.size; ++_i986) + org.apache.thrift.protocol.TList _list994 = iprot.readListBegin(); + struct.partitionSpec = new ArrayList(_list994.size); + PartitionSpec _elem995; + for (int _i996 = 0; _i996 < _list994.size; ++_i996) { - _elem985 = new PartitionSpec(); - _elem985.read(iprot); - struct.partitionSpec.add(_elem985); + _elem995 = new PartitionSpec(); + _elem995.read(iprot); + struct.partitionSpec.add(_elem995); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsRespo oprot.writeFieldBegin(PARTITION_SPEC_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionSpec.size())); - for (PartitionSpec _iter987 : struct.partitionSpec) + for (PartitionSpec _iter997 : struct.partitionSpec) { - _iter987.write(oprot); + _iter997.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRespon if (struct.isSetPartitionSpec()) { { oprot.writeI32(struct.partitionSpec.size()); - for (PartitionSpec _iter988 : struct.partitionSpec) + for (PartitionSpec _iter998 : struct.partitionSpec) { - _iter988.write(oprot); + _iter998.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRespons BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionSpec = new ArrayList(_list989.size); - PartitionSpec _elem990; - for (int _i991 = 0; _i991 < _list989.size; ++_i991) + org.apache.thrift.protocol.TList _list999 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionSpec = new ArrayList(_list999.size); + PartitionSpec _elem1000; + for (int _i1001 = 0; _i1001 < _list999.size; ++_i1001) { - _elem990 = new PartitionSpec(); - _elem990.read(iprot); - struct.partitionSpec.add(_elem990); + _elem1000 = new PartitionSpec(); + _elem1000.read(iprot); + struct.partitionSpec.add(_elem1000); } } struct.setPartitionSpecIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index f241b5aa79..5218597791 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -606,13 +606,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesRequest st case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list856 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list856.size); - String _elem857; - for (int _i858 = 0; _i858 < _list856.size; ++_i858) + org.apache.thrift.protocol.TList _list866 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list866.size); + String _elem867; + for (int _i868 = 0; _i868 < _list866.size; ++_i868) { - _elem857 = iprot.readString(); - struct.tblNames.add(_elem857); + _elem867 = iprot.readString(); + struct.tblNames.add(_elem867); } iprot.readListEnd(); } @@ -661,9 +661,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesRequest s oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tblNames.size())); - for (String _iter859 : struct.tblNames) + for (String _iter869 : struct.tblNames) { - oprot.writeString(_iter859); + oprot.writeString(_iter869); } oprot.writeListEnd(); } @@ -716,9 +716,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetTblNames()) { { oprot.writeI32(struct.tblNames.size()); - for (String _iter860 : struct.tblNames) + for (String _iter870 : struct.tblNames) { - oprot.writeString(_iter860); + oprot.writeString(_iter870); } } } @@ -738,13 +738,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list861 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list861.size); - String _elem862; - for (int _i863 = 0; _i863 < _list861.size; ++_i863) + org.apache.thrift.protocol.TList _list871 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list871.size); + String _elem872; + for (int _i873 = 0; _i873 < _list871.size; ++_i873) { - _elem862 = iprot.readString(); - struct.tblNames.add(_elem862); + _elem872 = iprot.readString(); + struct.tblNames.add(_elem872); } } struct.setTblNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index b351c40f97..cbb0b651d5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesResult str case 1: // TABLES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list864 = iprot.readListBegin(); - struct.tables = new ArrayList(_list864.size); - Table _elem865; - for (int _i866 = 0; _i866 < _list864.size; ++_i866) + org.apache.thrift.protocol.TList _list874 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list874.size); + Table _elem875; + for (int _i876 = 0; _i876 < _list874.size; ++_i876) { - _elem865 = new Table(); - _elem865.read(iprot); - struct.tables.add(_elem865); + _elem875 = new Table(); + _elem875.read(iprot); + struct.tables.add(_elem875); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult st oprot.writeFieldBegin(TABLES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size())); - for (Table _iter867 : struct.tables) + for (Table _iter877 : struct.tables) { - _iter867.write(oprot); + _iter877.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tables.size()); - for (Table _iter868 : struct.tables) + for (Table _iter878 : struct.tables) { - _iter868.write(oprot); + _iter878.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list869.size); - Table _elem870; - for (int _i871 = 0; _i871 < _list869.size; ++_i871) + org.apache.thrift.protocol.TList _list879 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list879.size); + Table _elem880; + for (int _i881 = 0; _i881 < _list879.size; ++_i881) { - _elem870 = new Table(); - _elem870.read(iprot); - struct.tables.add(_elem870); + _elem880 = new Table(); + _elem880.read(iprot); + struct.tables.add(_elem880); } } struct.setTablesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 70690a4e0a..ee877dc98a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -636,13 +636,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 2: // FILES_ADDED if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list740.size); - String _elem741; - for (int _i742 = 0; _i742 < _list740.size; ++_i742) + org.apache.thrift.protocol.TList _list750 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list750.size); + String _elem751; + for (int _i752 = 0; _i752 < _list750.size; ++_i752) { - _elem741 = iprot.readString(); - struct.filesAdded.add(_elem741); + _elem751 = iprot.readString(); + struct.filesAdded.add(_elem751); } iprot.readListEnd(); } @@ -654,13 +654,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 3: // FILES_ADDED_CHECKSUM if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list743 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list743.size); - String _elem744; - for (int _i745 = 0; _i745 < _list743.size; ++_i745) + org.apache.thrift.protocol.TList _list753 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list753.size); + String _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem744 = iprot.readString(); - struct.filesAddedChecksum.add(_elem744); + _elem754 = iprot.readString(); + struct.filesAddedChecksum.add(_elem754); } iprot.readListEnd(); } @@ -672,13 +672,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 4: // SUB_DIRECTORY_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list746 = iprot.readListBegin(); - struct.subDirectoryList = new ArrayList(_list746.size); - String _elem747; - for (int _i748 = 0; _i748 < _list746.size; ++_i748) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.subDirectoryList = new ArrayList(_list756.size); + String _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) { - _elem747 = iprot.readString(); - struct.subDirectoryList.add(_elem747); + _elem757 = iprot.readString(); + struct.subDirectoryList.add(_elem757); } iprot.readListEnd(); } @@ -709,9 +709,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAdded.size())); - for (String _iter749 : struct.filesAdded) + for (String _iter759 : struct.filesAdded) { - oprot.writeString(_iter749); + oprot.writeString(_iter759); } oprot.writeListEnd(); } @@ -722,9 +722,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_CHECKSUM_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAddedChecksum.size())); - for (String _iter750 : struct.filesAddedChecksum) + for (String _iter760 : struct.filesAddedChecksum) { - oprot.writeString(_iter750); + oprot.writeString(_iter760); } oprot.writeListEnd(); } @@ -736,9 +736,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(SUB_DIRECTORY_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.subDirectoryList.size())); - for (String _iter751 : struct.subDirectoryList) + for (String _iter761 : struct.subDirectoryList) { - oprot.writeString(_iter751); + oprot.writeString(_iter761); } oprot.writeListEnd(); } @@ -764,9 +764,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.filesAdded.size()); - for (String _iter752 : struct.filesAdded) + for (String _iter762 : struct.filesAdded) { - oprot.writeString(_iter752); + oprot.writeString(_iter762); } } BitSet optionals = new BitSet(); @@ -786,18 +786,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD if (struct.isSetFilesAddedChecksum()) { { oprot.writeI32(struct.filesAddedChecksum.size()); - for (String _iter753 : struct.filesAddedChecksum) + for (String _iter763 : struct.filesAddedChecksum) { - oprot.writeString(_iter753); + oprot.writeString(_iter763); } } } if (struct.isSetSubDirectoryList()) { { oprot.writeI32(struct.subDirectoryList.size()); - for (String _iter754 : struct.subDirectoryList) + for (String _iter764 : struct.subDirectoryList) { - oprot.writeString(_iter754); + oprot.writeString(_iter764); } } } @@ -807,13 +807,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestData struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list755 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list755.size); - String _elem756; - for (int _i757 = 0; _i757 < _list755.size; ++_i757) + org.apache.thrift.protocol.TList _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list765.size); + String _elem766; + for (int _i767 = 0; _i767 < _list765.size; ++_i767) { - _elem756 = iprot.readString(); - struct.filesAdded.add(_elem756); + _elem766 = iprot.readString(); + struct.filesAdded.add(_elem766); } } struct.setFilesAddedIsSet(true); @@ -824,26 +824,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestDa } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list758 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list758.size); - String _elem759; - for (int _i760 = 0; _i760 < _list758.size; ++_i760) + org.apache.thrift.protocol.TList _list768 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list768.size); + String _elem769; + for (int _i770 = 0; _i770 < _list768.size; ++_i770) { - _elem759 = iprot.readString(); - struct.filesAddedChecksum.add(_elem759); + _elem769 = iprot.readString(); + struct.filesAddedChecksum.add(_elem769); } } struct.setFilesAddedChecksumIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.subDirectoryList = new ArrayList(_list761.size); - String _elem762; - for (int _i763 = 0; _i763 < _list761.size; ++_i763) + org.apache.thrift.protocol.TList _list771 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.subDirectoryList = new ArrayList(_list771.size); + String _elem772; + for (int _i773 = 0; _i773 < _list771.size; ++_i773) { - _elem762 = iprot.readString(); - struct.subDirectoryList.add(_elem762); + _elem772 = iprot.readString(); + struct.subDirectoryList.add(_elem772); } } struct.setSubDirectoryListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index e86c9f6608..0801929fa7 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 1: // EVENTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); - struct.events = new ArrayList(_list732.size); - NotificationEvent _elem733; - for (int _i734 = 0; _i734 < _list732.size; ++_i734) + org.apache.thrift.protocol.TList _list742 = iprot.readListBegin(); + struct.events = new ArrayList(_list742.size); + NotificationEvent _elem743; + for (int _i744 = 0; _i744 < _list742.size; ++_i744) { - _elem733 = new NotificationEvent(); - _elem733.read(iprot); - struct.events.add(_elem733); + _elem743 = new NotificationEvent(); + _elem743.read(iprot); + struct.events.add(_elem743); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.events.size())); - for (NotificationEvent _iter735 : struct.events) + for (NotificationEvent _iter745 : struct.events) { - _iter735.write(oprot); + _iter745.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.events.size()); - for (NotificationEvent _iter736 : struct.events) + for (NotificationEvent _iter746 : struct.events) { - _iter736.write(oprot); + _iter746.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list737.size); - NotificationEvent _elem738; - for (int _i739 = 0; _i739 < _list737.size; ++_i739) + org.apache.thrift.protocol.TList _list747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list747.size); + NotificationEvent _elem748; + for (int _i749 = 0; _i749 < _list747.size; ++_i749) { - _elem738 = new NotificationEvent(); - _elem738.read(iprot); - struct.events.add(_elem738); + _elem748 = new NotificationEvent(); + _elem748.read(iprot); + struct.events.add(_elem748); } } struct.setEventsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index e19034c630..deff8597aa 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java @@ -547,13 +547,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list816 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list816.size); - long _elem817; - for (int _i818 = 0; _i818 < _list816.size; ++_i818) + org.apache.thrift.protocol.TList _list826 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list826.size); + long _elem827; + for (int _i828 = 0; _i828 < _list826.size; ++_i828) { - _elem817 = iprot.readI64(); - struct.fileIds.add(_elem817); + _elem827 = iprot.readI64(); + struct.fileIds.add(_elem827); } iprot.readListEnd(); } @@ -565,13 +565,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 2: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list819 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list819.size); - ByteBuffer _elem820; - for (int _i821 = 0; _i821 < _list819.size; ++_i821) + org.apache.thrift.protocol.TList _list829 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list829.size); + ByteBuffer _elem830; + for (int _i831 = 0; _i831 < _list829.size; ++_i831) { - _elem820 = iprot.readBinary(); - struct.metadata.add(_elem820); + _elem830 = iprot.readBinary(); + struct.metadata.add(_elem830); } iprot.readListEnd(); } @@ -605,9 +605,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter822 : struct.fileIds) + for (long _iter832 : struct.fileIds) { - oprot.writeI64(_iter822); + oprot.writeI64(_iter832); } oprot.writeListEnd(); } @@ -617,9 +617,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (ByteBuffer _iter823 : struct.metadata) + for (ByteBuffer _iter833 : struct.metadata) { - oprot.writeBinary(_iter823); + oprot.writeBinary(_iter833); } oprot.writeListEnd(); } @@ -651,16 +651,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter824 : struct.fileIds) + for (long _iter834 : struct.fileIds) { - oprot.writeI64(_iter824); + oprot.writeI64(_iter834); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter825 : struct.metadata) + for (ByteBuffer _iter835 : struct.metadata) { - oprot.writeBinary(_iter825); + oprot.writeBinary(_iter835); } } BitSet optionals = new BitSet(); @@ -677,24 +677,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list826 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list826.size); - long _elem827; - for (int _i828 = 0; _i828 < _list826.size; ++_i828) + org.apache.thrift.protocol.TList _list836 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list836.size); + long _elem837; + for (int _i838 = 0; _i838 < _list836.size; ++_i838) { - _elem827 = iprot.readI64(); - struct.fileIds.add(_elem827); + _elem837 = iprot.readI64(); + struct.fileIds.add(_elem837); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list829.size); - ByteBuffer _elem830; - for (int _i831 = 0; _i831 < _list829.size; ++_i831) + org.apache.thrift.protocol.TList _list839 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list839.size); + ByteBuffer _elem840; + for (int _i841 = 0; _i841 < _list839.size; ++_i841) { - _elem830 = iprot.readBinary(); - struct.metadata.add(_elem830); + _elem840 = iprot.readBinary(); + struct.metadata.add(_elem840); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java index 3540e99336..5b3853a038 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java @@ -796,13 +796,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RenamePartitionRequ case 4: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); - struct.partVals = new ArrayList(_list960.size); - String _elem961; - for (int _i962 = 0; _i962 < _list960.size; ++_i962) + org.apache.thrift.protocol.TList _list970 = iprot.readListBegin(); + struct.partVals = new ArrayList(_list970.size); + String _elem971; + for (int _i972 = 0; _i972 < _list970.size; ++_i972) { - _elem961 = iprot.readString(); - struct.partVals.add(_elem961); + _elem971 = iprot.readString(); + struct.partVals.add(_elem971); } iprot.readListEnd(); } @@ -862,9 +862,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, RenamePartitionReq oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partVals.size())); - for (String _iter963 : struct.partVals) + for (String _iter973 : struct.partVals) { - oprot.writeString(_iter963); + oprot.writeString(_iter973); } oprot.writeListEnd(); } @@ -903,9 +903,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, RenamePartitionRequ oprot.writeString(struct.tableName); { oprot.writeI32(struct.partVals.size()); - for (String _iter964 : struct.partVals) + for (String _iter974 : struct.partVals) { - oprot.writeString(_iter964); + oprot.writeString(_iter974); } } struct.newPart.write(oprot); @@ -933,13 +933,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RenamePartitionReque struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); { - org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partVals = new ArrayList(_list965.size); - String _elem966; - for (int _i967 = 0; _i967 < _list965.size; ++_i967) + org.apache.thrift.protocol.TList _list975 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partVals = new ArrayList(_list975.size); + String _elem976; + for (int _i977 = 0; _i977 < _list975.size; ++_i977) { - _elem966 = iprot.readString(); - struct.partVals.add(_elem966); + _elem976 = iprot.readString(); + struct.partVals.add(_elem976); } } struct.setPartValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java index 88d7e3fedf..703ff70486 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java @@ -1119,14 +1119,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SchemaVersion struc case 4: // COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); - struct.cols = new ArrayList(_list936.size); - FieldSchema _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list946 = iprot.readListBegin(); + struct.cols = new ArrayList(_list946.size); + FieldSchema _elem947; + for (int _i948 = 0; _i948 < _list946.size; ++_i948) { - _elem937 = new FieldSchema(); - _elem937.read(iprot); - struct.cols.add(_elem937); + _elem947 = new FieldSchema(); + _elem947.read(iprot); + struct.cols.add(_elem947); } iprot.readListEnd(); } @@ -1212,9 +1212,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SchemaVersion stru oprot.writeFieldBegin(COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.cols.size())); - for (FieldSchema _iter939 : struct.cols) + for (FieldSchema _iter949 : struct.cols) { - _iter939.write(oprot); + _iter949.write(oprot); } oprot.writeListEnd(); } @@ -1323,9 +1323,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struc if (struct.isSetCols()) { { oprot.writeI32(struct.cols.size()); - for (FieldSchema _iter940 : struct.cols) + for (FieldSchema _iter950 : struct.cols) { - _iter940.write(oprot); + _iter950.write(oprot); } } } @@ -1368,14 +1368,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struct } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list941.size); - FieldSchema _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list951 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list951.size); + FieldSchema _elem952; + for (int _i953 = 0; _i953 < _list951.size; ++_i953) { - _elem942 = new FieldSchema(); - _elem942.read(iprot); - struct.cols.add(_elem942); + _elem952 = new FieldSchema(); + _elem952.read(iprot); + struct.cols.add(_elem952); } } struct.setColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index c58885f22a..49f22bd01d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse case 1: // COMPACTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list708.size); - ShowCompactResponseElement _elem709; - for (int _i710 = 0; _i710 < _list708.size; ++_i710) + org.apache.thrift.protocol.TList _list718 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list718.size); + ShowCompactResponseElement _elem719; + for (int _i720 = 0; _i720 < _list718.size; ++_i720) { - _elem709 = new ShowCompactResponseElement(); - _elem709.read(iprot); - struct.compacts.add(_elem709); + _elem719 = new ShowCompactResponseElement(); + _elem719.read(iprot); + struct.compacts.add(_elem719); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowCompactRespons oprot.writeFieldBegin(COMPACTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.compacts.size())); - for (ShowCompactResponseElement _iter711 : struct.compacts) + for (ShowCompactResponseElement _iter721 : struct.compacts) { - _iter711.write(oprot); + _iter721.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.compacts.size()); - for (ShowCompactResponseElement _iter712 : struct.compacts) + for (ShowCompactResponseElement _iter722 : struct.compacts) { - _iter712.write(oprot); + _iter722.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list713.size); - ShowCompactResponseElement _elem714; - for (int _i715 = 0; _i715 < _list713.size; ++_i715) + org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list723.size); + ShowCompactResponseElement _elem724; + for (int _i725 = 0; _i725 < _list723.size; ++_i725) { - _elem714 = new ShowCompactResponseElement(); - _elem714.read(iprot); - struct.compacts.add(_elem714); + _elem724 = new ShowCompactResponseElement(); + _elem724.read(iprot); + struct.compacts.add(_elem724); } } struct.setCompactsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 52a2b71cc4..3be23e9f0c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -472,6 +472,22 @@ public GetPartitionsResponse get_partitions_with_specs(GetPartitionsRequest request) throws MetaException, org.apache.thrift.TException; + public CompactionInfoStruct find_next_compact(String workerId) throws MetaException, org.apache.thrift.TException; + + public void set_compaction_highest_writeid(CompactionInfoStruct cr, long high_watermark) throws org.apache.thrift.TException; + + public void set_run_as(long cq_id, String user) throws org.apache.thrift.TException; + + public List find_columns_with_stats(CompactionInfoStruct cr) throws org.apache.thrift.TException; + + public void mark_cleaned(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException; + + public void mark_compacted(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException; + + public void mark_failed(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException; + + public void set_hadoop_jobid(String jobId, long cq_id) throws org.apache.thrift.TException; + } @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface { @@ -906,6 +922,22 @@ public void get_partitions_with_specs(GetPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void find_next_compact(String workerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void set_compaction_highest_writeid(CompactionInfoStruct cr, long high_watermark, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void set_run_as(long cq_id, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void find_columns_with_stats(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void mark_cleaned(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void mark_compacted(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void mark_failed(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void set_hadoop_jobid(String jobId, long cq_id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class Client extends com.facebook.fb303.FacebookService.Client implements Iface { @@ -7102,6 +7134,187 @@ public GetPartitionsResponse recv_get_partitions_with_specs() throws MetaExcepti throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_with_specs failed: unknown result"); } + public CompactionInfoStruct find_next_compact(String workerId) throws MetaException, org.apache.thrift.TException + { + send_find_next_compact(workerId); + return recv_find_next_compact(); + } + + public void send_find_next_compact(String workerId) throws org.apache.thrift.TException + { + find_next_compact_args args = new find_next_compact_args(); + args.setWorkerId(workerId); + sendBase("find_next_compact", args); + } + + public CompactionInfoStruct recv_find_next_compact() throws MetaException, org.apache.thrift.TException + { + find_next_compact_result result = new find_next_compact_result(); + receiveBase(result, "find_next_compact"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "find_next_compact failed: unknown result"); + } + + public void set_compaction_highest_writeid(CompactionInfoStruct cr, long high_watermark) throws org.apache.thrift.TException + { + send_set_compaction_highest_writeid(cr, high_watermark); + recv_set_compaction_highest_writeid(); + } + + public void send_set_compaction_highest_writeid(CompactionInfoStruct cr, long high_watermark) throws org.apache.thrift.TException + { + set_compaction_highest_writeid_args args = new set_compaction_highest_writeid_args(); + args.setCr(cr); + args.setHigh_watermark(high_watermark); + sendBase("set_compaction_highest_writeid", args); + } + + public void recv_set_compaction_highest_writeid() throws org.apache.thrift.TException + { + set_compaction_highest_writeid_result result = new set_compaction_highest_writeid_result(); + receiveBase(result, "set_compaction_highest_writeid"); + return; + } + + public void set_run_as(long cq_id, String user) throws org.apache.thrift.TException + { + send_set_run_as(cq_id, user); + recv_set_run_as(); + } + + public void send_set_run_as(long cq_id, String user) throws org.apache.thrift.TException + { + set_run_as_args args = new set_run_as_args(); + args.setCq_id(cq_id); + args.setUser(user); + sendBase("set_run_as", args); + } + + public void recv_set_run_as() throws org.apache.thrift.TException + { + set_run_as_result result = new set_run_as_result(); + receiveBase(result, "set_run_as"); + return; + } + + public List find_columns_with_stats(CompactionInfoStruct cr) throws org.apache.thrift.TException + { + send_find_columns_with_stats(cr); + return recv_find_columns_with_stats(); + } + + public void send_find_columns_with_stats(CompactionInfoStruct cr) throws org.apache.thrift.TException + { + find_columns_with_stats_args args = new find_columns_with_stats_args(); + args.setCr(cr); + sendBase("find_columns_with_stats", args); + } + + public List recv_find_columns_with_stats() throws org.apache.thrift.TException + { + find_columns_with_stats_result result = new find_columns_with_stats_result(); + receiveBase(result, "find_columns_with_stats"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "find_columns_with_stats failed: unknown result"); + } + + public void mark_cleaned(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException + { + send_mark_cleaned(cr); + recv_mark_cleaned(); + } + + public void send_mark_cleaned(CompactionInfoStruct cr) throws org.apache.thrift.TException + { + mark_cleaned_args args = new mark_cleaned_args(); + args.setCr(cr); + sendBase("mark_cleaned", args); + } + + public void recv_mark_cleaned() throws MetaException, org.apache.thrift.TException + { + mark_cleaned_result result = new mark_cleaned_result(); + receiveBase(result, "mark_cleaned"); + if (result.o1 != null) { + throw result.o1; + } + return; + } + + public void mark_compacted(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException + { + send_mark_compacted(cr); + recv_mark_compacted(); + } + + public void send_mark_compacted(CompactionInfoStruct cr) throws org.apache.thrift.TException + { + mark_compacted_args args = new mark_compacted_args(); + args.setCr(cr); + sendBase("mark_compacted", args); + } + + public void recv_mark_compacted() throws MetaException, org.apache.thrift.TException + { + mark_compacted_result result = new mark_compacted_result(); + receiveBase(result, "mark_compacted"); + if (result.o1 != null) { + throw result.o1; + } + return; + } + + public void mark_failed(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException + { + send_mark_failed(cr); + recv_mark_failed(); + } + + public void send_mark_failed(CompactionInfoStruct cr) throws org.apache.thrift.TException + { + mark_failed_args args = new mark_failed_args(); + args.setCr(cr); + sendBase("mark_failed", args); + } + + public void recv_mark_failed() throws MetaException, org.apache.thrift.TException + { + mark_failed_result result = new mark_failed_result(); + receiveBase(result, "mark_failed"); + if (result.o1 != null) { + throw result.o1; + } + return; + } + + public void set_hadoop_jobid(String jobId, long cq_id) throws org.apache.thrift.TException + { + send_set_hadoop_jobid(jobId, cq_id); + recv_set_hadoop_jobid(); + } + + public void send_set_hadoop_jobid(String jobId, long cq_id) throws org.apache.thrift.TException + { + set_hadoop_jobid_args args = new set_hadoop_jobid_args(); + args.setJobId(jobId); + args.setCq_id(cq_id); + sendBase("set_hadoop_jobid", args); + } + + public void recv_set_hadoop_jobid() throws org.apache.thrift.TException + { + set_hadoop_jobid_result result = new set_hadoop_jobid_result(); + receiveBase(result, "set_hadoop_jobid"); + return; + } + } @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class AsyncClient extends com.facebook.fb303.FacebookService.AsyncClient implements AsyncIface { @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -14492,6 +14705,271 @@ public GetPartitionsResponse getResult() throws MetaException, org.apache.thrift } } + public void find_next_compact(String workerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + find_next_compact_call method_call = new find_next_compact_call(workerId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_next_compact_call extends org.apache.thrift.async.TAsyncMethodCall { + private String workerId; + public find_next_compact_call(String workerId, 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.workerId = workerId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("find_next_compact", org.apache.thrift.protocol.TMessageType.CALL, 0)); + find_next_compact_args args = new find_next_compact_args(); + args.setWorkerId(workerId); + args.write(prot); + prot.writeMessageEnd(); + } + + public CompactionInfoStruct getResult() throws 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_find_next_compact(); + } + } + + public void set_compaction_highest_writeid(CompactionInfoStruct cr, long high_watermark, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + set_compaction_highest_writeid_call method_call = new set_compaction_highest_writeid_call(cr, high_watermark, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_compaction_highest_writeid_call extends org.apache.thrift.async.TAsyncMethodCall { + private CompactionInfoStruct cr; + private long high_watermark; + public set_compaction_highest_writeid_call(CompactionInfoStruct cr, long high_watermark, 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.cr = cr; + this.high_watermark = high_watermark; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("set_compaction_highest_writeid", org.apache.thrift.protocol.TMessageType.CALL, 0)); + set_compaction_highest_writeid_args args = new set_compaction_highest_writeid_args(); + args.setCr(cr); + args.setHigh_watermark(high_watermark); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws 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); + (new Client(prot)).recv_set_compaction_highest_writeid(); + } + } + + public void set_run_as(long cq_id, String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + set_run_as_call method_call = new set_run_as_call(cq_id, user, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_run_as_call extends org.apache.thrift.async.TAsyncMethodCall { + private long cq_id; + private String user; + public set_run_as_call(long cq_id, String user, 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.cq_id = cq_id; + this.user = user; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("set_run_as", org.apache.thrift.protocol.TMessageType.CALL, 0)); + set_run_as_args args = new set_run_as_args(); + args.setCq_id(cq_id); + args.setUser(user); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws 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); + (new Client(prot)).recv_set_run_as(); + } + } + + public void find_columns_with_stats(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + find_columns_with_stats_call method_call = new find_columns_with_stats_call(cr, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_columns_with_stats_call extends org.apache.thrift.async.TAsyncMethodCall { + private CompactionInfoStruct cr; + public find_columns_with_stats_call(CompactionInfoStruct cr, 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.cr = cr; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("find_columns_with_stats", org.apache.thrift.protocol.TMessageType.CALL, 0)); + find_columns_with_stats_args args = new find_columns_with_stats_args(); + args.setCr(cr); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws 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_find_columns_with_stats(); + } + } + + public void mark_cleaned(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + mark_cleaned_call method_call = new mark_cleaned_call(cr, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_cleaned_call extends org.apache.thrift.async.TAsyncMethodCall { + private CompactionInfoStruct cr; + public mark_cleaned_call(CompactionInfoStruct cr, 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.cr = cr; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mark_cleaned", org.apache.thrift.protocol.TMessageType.CALL, 0)); + mark_cleaned_args args = new mark_cleaned_args(); + args.setCr(cr); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws 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); + (new Client(prot)).recv_mark_cleaned(); + } + } + + public void mark_compacted(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + mark_compacted_call method_call = new mark_compacted_call(cr, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_compacted_call extends org.apache.thrift.async.TAsyncMethodCall { + private CompactionInfoStruct cr; + public mark_compacted_call(CompactionInfoStruct cr, 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.cr = cr; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mark_compacted", org.apache.thrift.protocol.TMessageType.CALL, 0)); + mark_compacted_args args = new mark_compacted_args(); + args.setCr(cr); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws 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); + (new Client(prot)).recv_mark_compacted(); + } + } + + public void mark_failed(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + mark_failed_call method_call = new mark_failed_call(cr, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_failed_call extends org.apache.thrift.async.TAsyncMethodCall { + private CompactionInfoStruct cr; + public mark_failed_call(CompactionInfoStruct cr, 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.cr = cr; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mark_failed", org.apache.thrift.protocol.TMessageType.CALL, 0)); + mark_failed_args args = new mark_failed_args(); + args.setCr(cr); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws 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); + (new Client(prot)).recv_mark_failed(); + } + } + + public void set_hadoop_jobid(String jobId, long cq_id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + set_hadoop_jobid_call method_call = new set_hadoop_jobid_call(jobId, cq_id, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_hadoop_jobid_call extends org.apache.thrift.async.TAsyncMethodCall { + private String jobId; + private long cq_id; + public set_hadoop_jobid_call(String jobId, long cq_id, 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.jobId = jobId; + this.cq_id = cq_id; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("set_hadoop_jobid", org.apache.thrift.protocol.TMessageType.CALL, 0)); + set_hadoop_jobid_args args = new set_hadoop_jobid_args(); + args.setJobId(jobId); + args.setCq_id(cq_id); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws 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); + (new Client(prot)).recv_set_hadoop_jobid(); + } + } + } @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class Processor extends com.facebook.fb303.FacebookService.Processor implements org.apache.thrift.TProcessor { @@ -14720,6 +15198,14 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public find_next_compact() { + super("find_next_compact"); + } + + public find_next_compact_args getEmptyArgsInstance() { + return new find_next_compact_args(); + } + + protected boolean isOneway() { + return false; + } + + public find_next_compact_result getResult(I iface, find_next_compact_args args) throws org.apache.thrift.TException { + find_next_compact_result result = new find_next_compact_result(); + try { + result.success = iface.find_next_compact(args.workerId); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_compaction_highest_writeid extends org.apache.thrift.ProcessFunction { + public set_compaction_highest_writeid() { + super("set_compaction_highest_writeid"); + } + + public set_compaction_highest_writeid_args getEmptyArgsInstance() { + return new set_compaction_highest_writeid_args(); + } + + protected boolean isOneway() { + return false; + } + + public set_compaction_highest_writeid_result getResult(I iface, set_compaction_highest_writeid_args args) throws org.apache.thrift.TException { + set_compaction_highest_writeid_result result = new set_compaction_highest_writeid_result(); + iface.set_compaction_highest_writeid(args.cr, args.high_watermark); + return result; + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_run_as extends org.apache.thrift.ProcessFunction { + public set_run_as() { + super("set_run_as"); + } + + public set_run_as_args getEmptyArgsInstance() { + return new set_run_as_args(); + } + + protected boolean isOneway() { + return false; + } + + public set_run_as_result getResult(I iface, set_run_as_args args) throws org.apache.thrift.TException { + set_run_as_result result = new set_run_as_result(); + iface.set_run_as(args.cq_id, args.user); + return result; + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_columns_with_stats extends org.apache.thrift.ProcessFunction { + public find_columns_with_stats() { + super("find_columns_with_stats"); + } + + public find_columns_with_stats_args getEmptyArgsInstance() { + return new find_columns_with_stats_args(); + } + + protected boolean isOneway() { + return false; + } + + public find_columns_with_stats_result getResult(I iface, find_columns_with_stats_args args) throws org.apache.thrift.TException { + find_columns_with_stats_result result = new find_columns_with_stats_result(); + result.success = iface.find_columns_with_stats(args.cr); + return result; + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_cleaned extends org.apache.thrift.ProcessFunction { + public mark_cleaned() { + super("mark_cleaned"); + } + + public mark_cleaned_args getEmptyArgsInstance() { + return new mark_cleaned_args(); + } + + protected boolean isOneway() { + return false; + } + + public mark_cleaned_result getResult(I iface, mark_cleaned_args args) throws org.apache.thrift.TException { + mark_cleaned_result result = new mark_cleaned_result(); + try { + iface.mark_cleaned(args.cr); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_compacted extends org.apache.thrift.ProcessFunction { + public mark_compacted() { + super("mark_compacted"); + } + + public mark_compacted_args getEmptyArgsInstance() { + return new mark_compacted_args(); + } + + protected boolean isOneway() { + return false; + } + + public mark_compacted_result getResult(I iface, mark_compacted_args args) throws org.apache.thrift.TException { + mark_compacted_result result = new mark_compacted_result(); + try { + iface.mark_compacted(args.cr); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_failed extends org.apache.thrift.ProcessFunction { + public mark_failed() { + super("mark_failed"); + } + + public mark_failed_args getEmptyArgsInstance() { + return new mark_failed_args(); + } + + protected boolean isOneway() { + return false; + } + + public mark_failed_result getResult(I iface, mark_failed_args args) throws org.apache.thrift.TException { + mark_failed_result result = new mark_failed_result(); + try { + iface.mark_failed(args.cr); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_hadoop_jobid extends org.apache.thrift.ProcessFunction { + public set_hadoop_jobid() { + super("set_hadoop_jobid"); + } + + public set_hadoop_jobid_args getEmptyArgsInstance() { + return new set_hadoop_jobid_args(); + } + + protected boolean isOneway() { + return false; + } + + public set_hadoop_jobid_result getResult(I iface, set_hadoop_jobid_args args) throws org.apache.thrift.TException { + set_hadoop_jobid_result result = new set_hadoop_jobid_result(); + iface.set_hadoop_jobid(args.jobId, args.cq_id); + return result; + } + } + } @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class AsyncProcessor extends com.facebook.fb303.FacebookService.AsyncProcessor { @@ -20467,6 +21129,14 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { + public find_next_compact() { + super("find_next_compact"); + } + + public find_next_compact_args getEmptyArgsInstance() { + return new find_next_compact_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CompactionInfoStruct o) { + find_next_compact_result result = new find_next_compact_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + find_next_compact_result result = new find_next_compact_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, find_next_compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.find_next_compact(args.workerId,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_compaction_highest_writeid extends org.apache.thrift.AsyncProcessFunction { + public set_compaction_highest_writeid() { + super("set_compaction_highest_writeid"); + } + + public set_compaction_highest_writeid_args getEmptyArgsInstance() { + return new set_compaction_highest_writeid_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + set_compaction_highest_writeid_result result = new set_compaction_highest_writeid_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + set_compaction_highest_writeid_result result = new set_compaction_highest_writeid_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, set_compaction_highest_writeid_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.set_compaction_highest_writeid(args.cr, args.high_watermark,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_run_as extends org.apache.thrift.AsyncProcessFunction { + public set_run_as() { + super("set_run_as"); + } + + public set_run_as_args getEmptyArgsInstance() { + return new set_run_as_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + set_run_as_result result = new set_run_as_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + set_run_as_result result = new set_run_as_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, set_run_as_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.set_run_as(args.cq_id, args.user,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_columns_with_stats extends org.apache.thrift.AsyncProcessFunction> { + public find_columns_with_stats() { + super("find_columns_with_stats"); + } + + public find_columns_with_stats_args getEmptyArgsInstance() { + return new find_columns_with_stats_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + find_columns_with_stats_result result = new find_columns_with_stats_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + find_columns_with_stats_result result = new find_columns_with_stats_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, find_columns_with_stats_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.find_columns_with_stats(args.cr,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_cleaned extends org.apache.thrift.AsyncProcessFunction { + public mark_cleaned() { + super("mark_cleaned"); + } + + public mark_cleaned_args getEmptyArgsInstance() { + return new mark_cleaned_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mark_cleaned_result result = new mark_cleaned_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mark_cleaned_result result = new mark_cleaned_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, mark_cleaned_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mark_cleaned(args.cr,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_compacted extends org.apache.thrift.AsyncProcessFunction { + public mark_compacted() { + super("mark_compacted"); + } + + public mark_compacted_args getEmptyArgsInstance() { + return new mark_compacted_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mark_compacted_result result = new mark_compacted_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mark_compacted_result result = new mark_compacted_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, mark_compacted_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mark_compacted(args.cr,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_failed extends org.apache.thrift.AsyncProcessFunction { + public mark_failed() { + super("mark_failed"); + } + + public mark_failed_args getEmptyArgsInstance() { + return new mark_failed_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + mark_failed_result result = new mark_failed_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + mark_failed_result result = new mark_failed_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, mark_failed_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.mark_failed(args.cr,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_hadoop_jobid extends org.apache.thrift.AsyncProcessFunction { + public set_hadoop_jobid() { + super("set_hadoop_jobid"); + } + + public set_hadoop_jobid_args getEmptyArgsInstance() { + return new set_hadoop_jobid_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + set_hadoop_jobid_result result = new set_hadoop_jobid_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + set_hadoop_jobid_result result = new set_hadoop_jobid_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, set_hadoop_jobid_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.set_hadoop_jobid(args.jobId, args.cq_id,resultHandler); + } + } + } @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class getMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -43489,13 +44585,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); - struct.success = new ArrayList(_list1000.size); - String _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list1010 = iprot.readListBegin(); + struct.success = new ArrayList(_list1010.size); + String _elem1011; + for (int _i1012 = 0; _i1012 < _list1010.size; ++_i1012) { - _elem1001 = iprot.readString(); - struct.success.add(_elem1001); + _elem1011 = iprot.readString(); + struct.success.add(_elem1011); } iprot.readListEnd(); } @@ -43530,9 +44626,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1003 : struct.success) + for (String _iter1013 : struct.success) { - oprot.writeString(_iter1003); + oprot.writeString(_iter1013); } oprot.writeListEnd(); } @@ -43571,9 +44667,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1004 : struct.success) + for (String _iter1014 : struct.success) { - oprot.writeString(_iter1004); + oprot.writeString(_iter1014); } } } @@ -43588,13 +44684,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1005.size); - String _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + org.apache.thrift.protocol.TList _list1015 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1015.size); + String _elem1016; + for (int _i1017 = 0; _i1017 < _list1015.size; ++_i1017) { - _elem1006 = iprot.readString(); - struct.success.add(_elem1006); + _elem1016 = iprot.readString(); + struct.success.add(_elem1016); } } struct.setSuccessIsSet(true); @@ -44248,13 +45344,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); - struct.success = new ArrayList(_list1008.size); - String _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1018 = iprot.readListBegin(); + struct.success = new ArrayList(_list1018.size); + String _elem1019; + for (int _i1020 = 0; _i1020 < _list1018.size; ++_i1020) { - _elem1009 = iprot.readString(); - struct.success.add(_elem1009); + _elem1019 = iprot.readString(); + struct.success.add(_elem1019); } iprot.readListEnd(); } @@ -44289,9 +45385,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1011 : struct.success) + for (String _iter1021 : struct.success) { - oprot.writeString(_iter1011); + oprot.writeString(_iter1021); } oprot.writeListEnd(); } @@ -44330,9 +45426,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1012 : struct.success) + for (String _iter1022 : struct.success) { - oprot.writeString(_iter1012); + oprot.writeString(_iter1022); } } } @@ -44347,13 +45443,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1013.size); - String _elem1014; - for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) + org.apache.thrift.protocol.TList _list1023 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1023.size); + String _elem1024; + for (int _i1025 = 0; _i1025 < _list1023.size; ++_i1025) { - _elem1014 = iprot.readString(); - struct.success.add(_elem1014); + _elem1024 = iprot.readString(); + struct.success.add(_elem1024); } } struct.setSuccessIsSet(true); @@ -48960,16 +50056,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1016 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1016.size); - String _key1017; - Type _val1018; - for (int _i1019 = 0; _i1019 < _map1016.size; ++_i1019) + org.apache.thrift.protocol.TMap _map1026 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1026.size); + String _key1027; + Type _val1028; + for (int _i1029 = 0; _i1029 < _map1026.size; ++_i1029) { - _key1017 = iprot.readString(); - _val1018 = new Type(); - _val1018.read(iprot); - struct.success.put(_key1017, _val1018); + _key1027 = iprot.readString(); + _val1028 = new Type(); + _val1028.read(iprot); + struct.success.put(_key1027, _val1028); } iprot.readMapEnd(); } @@ -49004,10 +50100,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_resul oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter1020 : struct.success.entrySet()) + for (Map.Entry _iter1030 : struct.success.entrySet()) { - oprot.writeString(_iter1020.getKey()); - _iter1020.getValue().write(oprot); + oprot.writeString(_iter1030.getKey()); + _iter1030.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -49046,10 +50142,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1021 : struct.success.entrySet()) + for (Map.Entry _iter1031 : struct.success.entrySet()) { - oprot.writeString(_iter1021.getKey()); - _iter1021.getValue().write(oprot); + oprot.writeString(_iter1031.getKey()); + _iter1031.getValue().write(oprot); } } } @@ -49064,16 +50160,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1022 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map1022.size); - String _key1023; - Type _val1024; - for (int _i1025 = 0; _i1025 < _map1022.size; ++_i1025) + org.apache.thrift.protocol.TMap _map1032 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map1032.size); + String _key1033; + Type _val1034; + for (int _i1035 = 0; _i1035 < _map1032.size; ++_i1035) { - _key1023 = iprot.readString(); - _val1024 = new Type(); - _val1024.read(iprot); - struct.success.put(_key1023, _val1024); + _key1033 = iprot.readString(); + _val1034 = new Type(); + _val1034.read(iprot); + struct.success.put(_key1033, _val1034); } } struct.setSuccessIsSet(true); @@ -50108,14 +51204,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1026 = iprot.readListBegin(); - struct.success = new ArrayList(_list1026.size); - FieldSchema _elem1027; - for (int _i1028 = 0; _i1028 < _list1026.size; ++_i1028) + org.apache.thrift.protocol.TList _list1036 = iprot.readListBegin(); + struct.success = new ArrayList(_list1036.size); + FieldSchema _elem1037; + for (int _i1038 = 0; _i1038 < _list1036.size; ++_i1038) { - _elem1027 = new FieldSchema(); - _elem1027.read(iprot); - struct.success.add(_elem1027); + _elem1037 = new FieldSchema(); + _elem1037.read(iprot); + struct.success.add(_elem1037); } iprot.readListEnd(); } @@ -50168,9 +51264,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1029 : struct.success) + for (FieldSchema _iter1039 : struct.success) { - _iter1029.write(oprot); + _iter1039.write(oprot); } oprot.writeListEnd(); } @@ -50225,9 +51321,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1030 : struct.success) + for (FieldSchema _iter1040 : struct.success) { - _iter1030.write(oprot); + _iter1040.write(oprot); } } } @@ -50248,14 +51344,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1031 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1031.size); - FieldSchema _elem1032; - for (int _i1033 = 0; _i1033 < _list1031.size; ++_i1033) + org.apache.thrift.protocol.TList _list1041 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1041.size); + FieldSchema _elem1042; + for (int _i1043 = 0; _i1043 < _list1041.size; ++_i1043) { - _elem1032 = new FieldSchema(); - _elem1032.read(iprot); - struct.success.add(_elem1032); + _elem1042 = new FieldSchema(); + _elem1042.read(iprot); + struct.success.add(_elem1042); } } struct.setSuccessIsSet(true); @@ -51409,14 +52505,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1034 = iprot.readListBegin(); - struct.success = new ArrayList(_list1034.size); - FieldSchema _elem1035; - for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) + org.apache.thrift.protocol.TList _list1044 = iprot.readListBegin(); + struct.success = new ArrayList(_list1044.size); + FieldSchema _elem1045; + for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) { - _elem1035 = new FieldSchema(); - _elem1035.read(iprot); - struct.success.add(_elem1035); + _elem1045 = new FieldSchema(); + _elem1045.read(iprot); + struct.success.add(_elem1045); } iprot.readListEnd(); } @@ -51469,9 +52565,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1037 : struct.success) + for (FieldSchema _iter1047 : struct.success) { - _iter1037.write(oprot); + _iter1047.write(oprot); } oprot.writeListEnd(); } @@ -51526,9 +52622,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1038 : struct.success) + for (FieldSchema _iter1048 : struct.success) { - _iter1038.write(oprot); + _iter1048.write(oprot); } } } @@ -51549,14 +52645,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1039 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1039.size); - FieldSchema _elem1040; - for (int _i1041 = 0; _i1041 < _list1039.size; ++_i1041) + org.apache.thrift.protocol.TList _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1049.size); + FieldSchema _elem1050; + for (int _i1051 = 0; _i1051 < _list1049.size; ++_i1051) { - _elem1040 = new FieldSchema(); - _elem1040.read(iprot); - struct.success.add(_elem1040); + _elem1050 = new FieldSchema(); + _elem1050.read(iprot); + struct.success.add(_elem1050); } } struct.setSuccessIsSet(true); @@ -52601,14 +53697,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1042 = iprot.readListBegin(); - struct.success = new ArrayList(_list1042.size); - FieldSchema _elem1043; - for (int _i1044 = 0; _i1044 < _list1042.size; ++_i1044) + org.apache.thrift.protocol.TList _list1052 = iprot.readListBegin(); + struct.success = new ArrayList(_list1052.size); + FieldSchema _elem1053; + for (int _i1054 = 0; _i1054 < _list1052.size; ++_i1054) { - _elem1043 = new FieldSchema(); - _elem1043.read(iprot); - struct.success.add(_elem1043); + _elem1053 = new FieldSchema(); + _elem1053.read(iprot); + struct.success.add(_elem1053); } iprot.readListEnd(); } @@ -52661,9 +53757,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1045 : struct.success) + for (FieldSchema _iter1055 : struct.success) { - _iter1045.write(oprot); + _iter1055.write(oprot); } oprot.writeListEnd(); } @@ -52718,9 +53814,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1046 : struct.success) + for (FieldSchema _iter1056 : struct.success) { - _iter1046.write(oprot); + _iter1056.write(oprot); } } } @@ -52741,14 +53837,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1047 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1047.size); - FieldSchema _elem1048; - for (int _i1049 = 0; _i1049 < _list1047.size; ++_i1049) + org.apache.thrift.protocol.TList _list1057 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1057.size); + FieldSchema _elem1058; + for (int _i1059 = 0; _i1059 < _list1057.size; ++_i1059) { - _elem1048 = new FieldSchema(); - _elem1048.read(iprot); - struct.success.add(_elem1048); + _elem1058 = new FieldSchema(); + _elem1058.read(iprot); + struct.success.add(_elem1058); } } struct.setSuccessIsSet(true); @@ -53902,14 +54998,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1050 = iprot.readListBegin(); - struct.success = new ArrayList(_list1050.size); - FieldSchema _elem1051; - for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) + org.apache.thrift.protocol.TList _list1060 = iprot.readListBegin(); + struct.success = new ArrayList(_list1060.size); + FieldSchema _elem1061; + for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) { - _elem1051 = new FieldSchema(); - _elem1051.read(iprot); - struct.success.add(_elem1051); + _elem1061 = new FieldSchema(); + _elem1061.read(iprot); + struct.success.add(_elem1061); } iprot.readListEnd(); } @@ -53962,9 +55058,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter1053 : struct.success) + for (FieldSchema _iter1063 : struct.success) { - _iter1053.write(oprot); + _iter1063.write(oprot); } oprot.writeListEnd(); } @@ -54019,9 +55115,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1054 : struct.success) + for (FieldSchema _iter1064 : struct.success) { - _iter1054.write(oprot); + _iter1064.write(oprot); } } } @@ -54042,14 +55138,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1055 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1055.size); - FieldSchema _elem1056; - for (int _i1057 = 0; _i1057 < _list1055.size; ++_i1057) + org.apache.thrift.protocol.TList _list1065 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1065.size); + FieldSchema _elem1066; + for (int _i1067 = 0; _i1067 < _list1065.size; ++_i1067) { - _elem1056 = new FieldSchema(); - _elem1056.read(iprot); - struct.success.add(_elem1056); + _elem1066 = new FieldSchema(); + _elem1066.read(iprot); + struct.success.add(_elem1066); } } struct.setSuccessIsSet(true); @@ -57178,14 +58274,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 2: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1058 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list1058.size); - SQLPrimaryKey _elem1059; - for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) + org.apache.thrift.protocol.TList _list1068 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1068.size); + SQLPrimaryKey _elem1069; + for (int _i1070 = 0; _i1070 < _list1068.size; ++_i1070) { - _elem1059 = new SQLPrimaryKey(); - _elem1059.read(iprot); - struct.primaryKeys.add(_elem1059); + _elem1069 = new SQLPrimaryKey(); + _elem1069.read(iprot); + struct.primaryKeys.add(_elem1069); } iprot.readListEnd(); } @@ -57197,14 +58293,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 3: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1061 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list1061.size); - SQLForeignKey _elem1062; - for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) + org.apache.thrift.protocol.TList _list1071 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1071.size); + SQLForeignKey _elem1072; + for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) { - _elem1062 = new SQLForeignKey(); - _elem1062.read(iprot); - struct.foreignKeys.add(_elem1062); + _elem1072 = new SQLForeignKey(); + _elem1072.read(iprot); + struct.foreignKeys.add(_elem1072); } iprot.readListEnd(); } @@ -57216,14 +58312,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 4: // UNIQUE_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1064 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list1064.size); - SQLUniqueConstraint _elem1065; - for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) + org.apache.thrift.protocol.TList _list1074 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1074.size); + SQLUniqueConstraint _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem1065 = new SQLUniqueConstraint(); - _elem1065.read(iprot); - struct.uniqueConstraints.add(_elem1065); + _elem1075 = new SQLUniqueConstraint(); + _elem1075.read(iprot); + struct.uniqueConstraints.add(_elem1075); } iprot.readListEnd(); } @@ -57235,14 +58331,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 5: // NOT_NULL_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1067 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list1067.size); - SQLNotNullConstraint _elem1068; - for (int _i1069 = 0; _i1069 < _list1067.size; ++_i1069) + org.apache.thrift.protocol.TList _list1077 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1077.size); + SQLNotNullConstraint _elem1078; + for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) { - _elem1068 = new SQLNotNullConstraint(); - _elem1068.read(iprot); - struct.notNullConstraints.add(_elem1068); + _elem1078 = new SQLNotNullConstraint(); + _elem1078.read(iprot); + struct.notNullConstraints.add(_elem1078); } iprot.readListEnd(); } @@ -57254,14 +58350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 6: // DEFAULT_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1070 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list1070.size); - SQLDefaultConstraint _elem1071; - for (int _i1072 = 0; _i1072 < _list1070.size; ++_i1072) + org.apache.thrift.protocol.TList _list1080 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1080.size); + SQLDefaultConstraint _elem1081; + for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) { - _elem1071 = new SQLDefaultConstraint(); - _elem1071.read(iprot); - struct.defaultConstraints.add(_elem1071); + _elem1081 = new SQLDefaultConstraint(); + _elem1081.read(iprot); + struct.defaultConstraints.add(_elem1081); } iprot.readListEnd(); } @@ -57273,14 +58369,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 7: // CHECK_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1073 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1073.size); - SQLCheckConstraint _elem1074; - for (int _i1075 = 0; _i1075 < _list1073.size; ++_i1075) + org.apache.thrift.protocol.TList _list1083 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1083.size); + SQLCheckConstraint _elem1084; + for (int _i1085 = 0; _i1085 < _list1083.size; ++_i1085) { - _elem1074 = new SQLCheckConstraint(); - _elem1074.read(iprot); - struct.checkConstraints.add(_elem1074); + _elem1084 = new SQLCheckConstraint(); + _elem1084.read(iprot); + struct.checkConstraints.add(_elem1084); } iprot.readListEnd(); } @@ -57311,9 +58407,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); - for (SQLPrimaryKey _iter1076 : struct.primaryKeys) + for (SQLPrimaryKey _iter1086 : struct.primaryKeys) { - _iter1076.write(oprot); + _iter1086.write(oprot); } oprot.writeListEnd(); } @@ -57323,9 +58419,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter1077 : struct.foreignKeys) + for (SQLForeignKey _iter1087 : struct.foreignKeys) { - _iter1077.write(oprot); + _iter1087.write(oprot); } oprot.writeListEnd(); } @@ -57335,9 +58431,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); - for (SQLUniqueConstraint _iter1078 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1088 : struct.uniqueConstraints) { - _iter1078.write(oprot); + _iter1088.write(oprot); } oprot.writeListEnd(); } @@ -57347,9 +58443,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter1079 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1089 : struct.notNullConstraints) { - _iter1079.write(oprot); + _iter1089.write(oprot); } oprot.writeListEnd(); } @@ -57359,9 +58455,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); - for (SQLDefaultConstraint _iter1080 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1090 : struct.defaultConstraints) { - _iter1080.write(oprot); + _iter1090.write(oprot); } oprot.writeListEnd(); } @@ -57371,9 +58467,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); - for (SQLCheckConstraint _iter1081 : struct.checkConstraints) + for (SQLCheckConstraint _iter1091 : struct.checkConstraints) { - _iter1081.write(oprot); + _iter1091.write(oprot); } oprot.writeListEnd(); } @@ -57425,54 +58521,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1082 : struct.primaryKeys) + for (SQLPrimaryKey _iter1092 : struct.primaryKeys) { - _iter1082.write(oprot); + _iter1092.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1083 : struct.foreignKeys) + for (SQLForeignKey _iter1093 : struct.foreignKeys) { - _iter1083.write(oprot); + _iter1093.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1084 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1094 : struct.uniqueConstraints) { - _iter1084.write(oprot); + _iter1094.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1085 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1095 : struct.notNullConstraints) { - _iter1085.write(oprot); + _iter1095.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1086 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1096 : struct.defaultConstraints) { - _iter1086.write(oprot); + _iter1096.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1087 : struct.checkConstraints) + for (SQLCheckConstraint _iter1097 : struct.checkConstraints) { - _iter1087.write(oprot); + _iter1097.write(oprot); } } } @@ -57489,84 +58585,84 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1088 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1088.size); - SQLPrimaryKey _elem1089; - for (int _i1090 = 0; _i1090 < _list1088.size; ++_i1090) + org.apache.thrift.protocol.TList _list1098 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1098.size); + SQLPrimaryKey _elem1099; + for (int _i1100 = 0; _i1100 < _list1098.size; ++_i1100) { - _elem1089 = new SQLPrimaryKey(); - _elem1089.read(iprot); - struct.primaryKeys.add(_elem1089); + _elem1099 = new SQLPrimaryKey(); + _elem1099.read(iprot); + struct.primaryKeys.add(_elem1099); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1091 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1091.size); - SQLForeignKey _elem1092; - for (int _i1093 = 0; _i1093 < _list1091.size; ++_i1093) + org.apache.thrift.protocol.TList _list1101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1101.size); + SQLForeignKey _elem1102; + for (int _i1103 = 0; _i1103 < _list1101.size; ++_i1103) { - _elem1092 = new SQLForeignKey(); - _elem1092.read(iprot); - struct.foreignKeys.add(_elem1092); + _elem1102 = new SQLForeignKey(); + _elem1102.read(iprot); + struct.foreignKeys.add(_elem1102); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1094 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1094.size); - SQLUniqueConstraint _elem1095; - for (int _i1096 = 0; _i1096 < _list1094.size; ++_i1096) + org.apache.thrift.protocol.TList _list1104 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1104.size); + SQLUniqueConstraint _elem1105; + for (int _i1106 = 0; _i1106 < _list1104.size; ++_i1106) { - _elem1095 = new SQLUniqueConstraint(); - _elem1095.read(iprot); - struct.uniqueConstraints.add(_elem1095); + _elem1105 = new SQLUniqueConstraint(); + _elem1105.read(iprot); + struct.uniqueConstraints.add(_elem1105); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1097 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1097.size); - SQLNotNullConstraint _elem1098; - for (int _i1099 = 0; _i1099 < _list1097.size; ++_i1099) + org.apache.thrift.protocol.TList _list1107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1107.size); + SQLNotNullConstraint _elem1108; + for (int _i1109 = 0; _i1109 < _list1107.size; ++_i1109) { - _elem1098 = new SQLNotNullConstraint(); - _elem1098.read(iprot); - struct.notNullConstraints.add(_elem1098); + _elem1108 = new SQLNotNullConstraint(); + _elem1108.read(iprot); + struct.notNullConstraints.add(_elem1108); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1100 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1100.size); - SQLDefaultConstraint _elem1101; - for (int _i1102 = 0; _i1102 < _list1100.size; ++_i1102) + org.apache.thrift.protocol.TList _list1110 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1110.size); + SQLDefaultConstraint _elem1111; + for (int _i1112 = 0; _i1112 < _list1110.size; ++_i1112) { - _elem1101 = new SQLDefaultConstraint(); - _elem1101.read(iprot); - struct.defaultConstraints.add(_elem1101); + _elem1111 = new SQLDefaultConstraint(); + _elem1111.read(iprot); + struct.defaultConstraints.add(_elem1111); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1103.size); - SQLCheckConstraint _elem1104; - for (int _i1105 = 0; _i1105 < _list1103.size; ++_i1105) + org.apache.thrift.protocol.TList _list1113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1113.size); + SQLCheckConstraint _elem1114; + for (int _i1115 = 0; _i1115 < _list1113.size; ++_i1115) { - _elem1104 = new SQLCheckConstraint(); - _elem1104.read(iprot); - struct.checkConstraints.add(_elem1104); + _elem1114 = new SQLCheckConstraint(); + _elem1114.read(iprot); + struct.checkConstraints.add(_elem1114); } } struct.setCheckConstraintsIsSet(true); @@ -66716,13 +67812,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args case 3: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1106 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1106.size); - String _elem1107; - for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) + org.apache.thrift.protocol.TList _list1116 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1116.size); + String _elem1117; + for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) { - _elem1107 = iprot.readString(); - struct.partNames.add(_elem1107); + _elem1117 = iprot.readString(); + struct.partNames.add(_elem1117); } iprot.readListEnd(); } @@ -66758,9 +67854,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_arg oprot.writeFieldBegin(PART_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size())); - for (String _iter1109 : struct.partNames) + for (String _iter1119 : struct.partNames) { - oprot.writeString(_iter1109); + oprot.writeString(_iter1119); } oprot.writeListEnd(); } @@ -66803,9 +67899,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter1110 : struct.partNames) + for (String _iter1120 : struct.partNames) { - oprot.writeString(_iter1110); + oprot.writeString(_iter1120); } } } @@ -66825,13 +67921,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1111.size); - String _elem1112; - for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) + org.apache.thrift.protocol.TList _list1121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1121.size); + String _elem1122; + for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) { - _elem1112 = iprot.readString(); - struct.partNames.add(_elem1112); + _elem1122 = iprot.readString(); + struct.partNames.add(_elem1122); } } struct.setPartNamesIsSet(true); @@ -68888,13 +69984,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1114 = iprot.readListBegin(); - struct.success = new ArrayList(_list1114.size); - String _elem1115; - for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) + org.apache.thrift.protocol.TList _list1124 = iprot.readListBegin(); + struct.success = new ArrayList(_list1124.size); + String _elem1125; + for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) { - _elem1115 = iprot.readString(); - struct.success.add(_elem1115); + _elem1125 = iprot.readString(); + struct.success.add(_elem1125); } iprot.readListEnd(); } @@ -68929,9 +70025,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1117 : struct.success) + for (String _iter1127 : struct.success) { - oprot.writeString(_iter1117); + oprot.writeString(_iter1127); } oprot.writeListEnd(); } @@ -68970,9 +70066,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1118 : struct.success) + for (String _iter1128 : struct.success) { - oprot.writeString(_iter1118); + oprot.writeString(_iter1128); } } } @@ -68987,13 +70083,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1119.size); - String _elem1120; - for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) + org.apache.thrift.protocol.TList _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1129.size); + String _elem1130; + for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) { - _elem1120 = iprot.readString(); - struct.success.add(_elem1120); + _elem1130 = iprot.readString(); + struct.success.add(_elem1130); } } struct.setSuccessIsSet(true); @@ -69967,13 +71063,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1122 = iprot.readListBegin(); - struct.success = new ArrayList(_list1122.size); - String _elem1123; - for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) + org.apache.thrift.protocol.TList _list1132 = iprot.readListBegin(); + struct.success = new ArrayList(_list1132.size); + String _elem1133; + for (int _i1134 = 0; _i1134 < _list1132.size; ++_i1134) { - _elem1123 = iprot.readString(); - struct.success.add(_elem1123); + _elem1133 = iprot.readString(); + struct.success.add(_elem1133); } iprot.readListEnd(); } @@ -70008,9 +71104,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1125 : struct.success) + for (String _iter1135 : struct.success) { - oprot.writeString(_iter1125); + oprot.writeString(_iter1135); } oprot.writeListEnd(); } @@ -70049,9 +71145,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1126 : struct.success) + for (String _iter1136 : struct.success) { - oprot.writeString(_iter1126); + oprot.writeString(_iter1136); } } } @@ -70066,13 +71162,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1127.size); - String _elem1128; - for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) + org.apache.thrift.protocol.TList _list1137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1137.size); + String _elem1138; + for (int _i1139 = 0; _i1139 < _list1137.size; ++_i1139) { - _elem1128 = iprot.readString(); - struct.success.add(_elem1128); + _elem1138 = iprot.readString(); + struct.success.add(_elem1138); } } struct.setSuccessIsSet(true); @@ -70838,13 +71934,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1130 = iprot.readListBegin(); - struct.success = new ArrayList(_list1130.size); - String _elem1131; - for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) + org.apache.thrift.protocol.TList _list1140 = iprot.readListBegin(); + struct.success = new ArrayList(_list1140.size); + String _elem1141; + for (int _i1142 = 0; _i1142 < _list1140.size; ++_i1142) { - _elem1131 = iprot.readString(); - struct.success.add(_elem1131); + _elem1141 = iprot.readString(); + struct.success.add(_elem1141); } iprot.readListEnd(); } @@ -70879,9 +71975,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1133 : struct.success) + for (String _iter1143 : struct.success) { - oprot.writeString(_iter1133); + oprot.writeString(_iter1143); } oprot.writeListEnd(); } @@ -70920,9 +72016,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1134 : struct.success) + for (String _iter1144 : struct.success) { - oprot.writeString(_iter1134); + oprot.writeString(_iter1144); } } } @@ -70937,13 +72033,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1135.size); - String _elem1136; - for (int _i1137 = 0; _i1137 < _list1135.size; ++_i1137) + org.apache.thrift.protocol.TList _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1145.size); + String _elem1146; + for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147) { - _elem1136 = iprot.readString(); - struct.success.add(_elem1136); + _elem1146 = iprot.readString(); + struct.success.add(_elem1146); } } struct.setSuccessIsSet(true); @@ -71448,13 +72544,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args case 3: // TBL_TYPES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1138 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1138.size); - String _elem1139; - for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) + org.apache.thrift.protocol.TList _list1148 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1148.size); + String _elem1149; + for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150) { - _elem1139 = iprot.readString(); - struct.tbl_types.add(_elem1139); + _elem1149 = iprot.readString(); + struct.tbl_types.add(_elem1149); } iprot.readListEnd(); } @@ -71490,9 +72586,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); - for (String _iter1141 : struct.tbl_types) + for (String _iter1151 : struct.tbl_types) { - oprot.writeString(_iter1141); + oprot.writeString(_iter1151); } oprot.writeListEnd(); } @@ -71535,9 +72631,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args if (struct.isSetTbl_types()) { { oprot.writeI32(struct.tbl_types.size()); - for (String _iter1142 : struct.tbl_types) + for (String _iter1152 : struct.tbl_types) { - oprot.writeString(_iter1142); + oprot.writeString(_iter1152); } } } @@ -71557,13 +72653,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1143.size); - String _elem1144; - for (int _i1145 = 0; _i1145 < _list1143.size; ++_i1145) + org.apache.thrift.protocol.TList _list1153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1153.size); + String _elem1154; + for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) { - _elem1144 = iprot.readString(); - struct.tbl_types.add(_elem1144); + _elem1154 = iprot.readString(); + struct.tbl_types.add(_elem1154); } } struct.setTbl_typesIsSet(true); @@ -71969,14 +73065,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1146 = iprot.readListBegin(); - struct.success = new ArrayList(_list1146.size); - TableMeta _elem1147; - for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) + org.apache.thrift.protocol.TList _list1156 = iprot.readListBegin(); + struct.success = new ArrayList(_list1156.size); + TableMeta _elem1157; + for (int _i1158 = 0; _i1158 < _list1156.size; ++_i1158) { - _elem1147 = new TableMeta(); - _elem1147.read(iprot); - struct.success.add(_elem1147); + _elem1157 = new TableMeta(); + _elem1157.read(iprot); + struct.success.add(_elem1157); } iprot.readListEnd(); } @@ -72011,9 +73107,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter1149 : struct.success) + for (TableMeta _iter1159 : struct.success) { - _iter1149.write(oprot); + _iter1159.write(oprot); } oprot.writeListEnd(); } @@ -72052,9 +73148,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1150 : struct.success) + for (TableMeta _iter1160 : struct.success) { - _iter1150.write(oprot); + _iter1160.write(oprot); } } } @@ -72069,14 +73165,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1151.size); - TableMeta _elem1152; - for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) + org.apache.thrift.protocol.TList _list1161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1161.size); + TableMeta _elem1162; + for (int _i1163 = 0; _i1163 < _list1161.size; ++_i1163) { - _elem1152 = new TableMeta(); - _elem1152.read(iprot); - struct.success.add(_elem1152); + _elem1162 = new TableMeta(); + _elem1162.read(iprot); + struct.success.add(_elem1162); } } struct.setSuccessIsSet(true); @@ -72842,13 +73938,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1154 = iprot.readListBegin(); - struct.success = new ArrayList(_list1154.size); - String _elem1155; - for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) + org.apache.thrift.protocol.TList _list1164 = iprot.readListBegin(); + struct.success = new ArrayList(_list1164.size); + String _elem1165; + for (int _i1166 = 0; _i1166 < _list1164.size; ++_i1166) { - _elem1155 = iprot.readString(); - struct.success.add(_elem1155); + _elem1165 = iprot.readString(); + struct.success.add(_elem1165); } iprot.readListEnd(); } @@ -72883,9 +73979,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1157 : struct.success) + for (String _iter1167 : struct.success) { - oprot.writeString(_iter1157); + oprot.writeString(_iter1167); } oprot.writeListEnd(); } @@ -72924,9 +74020,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1158 : struct.success) + for (String _iter1168 : struct.success) { - oprot.writeString(_iter1158); + oprot.writeString(_iter1168); } } } @@ -72941,13 +74037,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1159.size); - String _elem1160; - for (int _i1161 = 0; _i1161 < _list1159.size; ++_i1161) + org.apache.thrift.protocol.TList _list1169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1169.size); + String _elem1170; + for (int _i1171 = 0; _i1171 < _list1169.size; ++_i1171) { - _elem1160 = iprot.readString(); - struct.success.add(_elem1160); + _elem1170 = iprot.readString(); + struct.success.add(_elem1170); } } struct.setSuccessIsSet(true); @@ -74400,13 +75496,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1162 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1162.size); - String _elem1163; - for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) + org.apache.thrift.protocol.TList _list1172 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1172.size); + String _elem1173; + for (int _i1174 = 0; _i1174 < _list1172.size; ++_i1174) { - _elem1163 = iprot.readString(); - struct.tbl_names.add(_elem1163); + _elem1173 = iprot.readString(); + struct.tbl_names.add(_elem1173); } iprot.readListEnd(); } @@ -74437,9 +75533,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter1165 : struct.tbl_names) + for (String _iter1175 : struct.tbl_names) { - oprot.writeString(_iter1165); + oprot.writeString(_iter1175); } oprot.writeListEnd(); } @@ -74476,9 +75572,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter1166 : struct.tbl_names) + for (String _iter1176 : struct.tbl_names) { - oprot.writeString(_iter1166); + oprot.writeString(_iter1176); } } } @@ -74494,13 +75590,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1167.size); - String _elem1168; - for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169) + org.apache.thrift.protocol.TList _list1177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1177.size); + String _elem1178; + for (int _i1179 = 0; _i1179 < _list1177.size; ++_i1179) { - _elem1168 = iprot.readString(); - struct.tbl_names.add(_elem1168); + _elem1178 = iprot.readString(); + struct.tbl_names.add(_elem1178); } } struct.setTbl_namesIsSet(true); @@ -74825,14 +75921,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1170 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1170.size); - Table _elem1171; - for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) + org.apache.thrift.protocol.TList _list1180 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1180.size); + Table _elem1181; + for (int _i1182 = 0; _i1182 < _list1180.size; ++_i1182) { - _elem1171 = new Table(); - _elem1171.read(iprot); - struct.success.add(_elem1171); + _elem1181 = new Table(); + _elem1181.read(iprot); + struct.success.add(_elem1181); } iprot.readListEnd(); } @@ -74858,9 +75954,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter1173 : struct.success) + for (Table _iter1183 : struct.success) { - _iter1173.write(oprot); + _iter1183.write(oprot); } oprot.writeListEnd(); } @@ -74891,9 +75987,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1174 : struct.success) + for (Table _iter1184 : struct.success) { - _iter1174.write(oprot); + _iter1184.write(oprot); } } } @@ -74905,14 +76001,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1175.size); - Table _elem1176; - for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) + org.apache.thrift.protocol.TList _list1185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1185.size); + Table _elem1186; + for (int _i1187 = 0; _i1187 < _list1185.size; ++_i1187) { - _elem1176 = new Table(); - _elem1176.read(iprot); - struct.success.add(_elem1176); + _elem1186 = new Table(); + _elem1186.read(iprot); + struct.success.add(_elem1186); } } struct.setSuccessIsSet(true); @@ -80420,13 +81516,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1178 = iprot.readListBegin(); - struct.success = new ArrayList(_list1178.size); - String _elem1179; - for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) + org.apache.thrift.protocol.TList _list1188 = iprot.readListBegin(); + struct.success = new ArrayList(_list1188.size); + String _elem1189; + for (int _i1190 = 0; _i1190 < _list1188.size; ++_i1190) { - _elem1179 = iprot.readString(); - struct.success.add(_elem1179); + _elem1189 = iprot.readString(); + struct.success.add(_elem1189); } iprot.readListEnd(); } @@ -80479,9 +81575,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1181 : struct.success) + for (String _iter1191 : struct.success) { - oprot.writeString(_iter1181); + oprot.writeString(_iter1191); } oprot.writeListEnd(); } @@ -80536,9 +81632,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1182 : struct.success) + for (String _iter1192 : struct.success) { - oprot.writeString(_iter1182); + oprot.writeString(_iter1192); } } } @@ -80559,13 +81655,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1183.size); - String _elem1184; - for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) + org.apache.thrift.protocol.TList _list1193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1193.size); + String _elem1194; + for (int _i1195 = 0; _i1195 < _list1193.size; ++_i1195) { - _elem1184 = iprot.readString(); - struct.success.add(_elem1184); + _elem1194 = iprot.readString(); + struct.success.add(_elem1194); } } struct.setSuccessIsSet(true); @@ -87362,14 +88458,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1186.size); - Partition _elem1187; - for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) + org.apache.thrift.protocol.TList _list1196 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1196.size); + Partition _elem1197; + for (int _i1198 = 0; _i1198 < _list1196.size; ++_i1198) { - _elem1187 = new Partition(); - _elem1187.read(iprot); - struct.new_parts.add(_elem1187); + _elem1197 = new Partition(); + _elem1197.read(iprot); + struct.new_parts.add(_elem1197); } iprot.readListEnd(); } @@ -87395,9 +88491,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1189 : struct.new_parts) + for (Partition _iter1199 : struct.new_parts) { - _iter1189.write(oprot); + _iter1199.write(oprot); } oprot.writeListEnd(); } @@ -87428,9 +88524,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1190 : struct.new_parts) + for (Partition _iter1200 : struct.new_parts) { - _iter1190.write(oprot); + _iter1200.write(oprot); } } } @@ -87442,14 +88538,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1191.size); - Partition _elem1192; - for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) + org.apache.thrift.protocol.TList _list1201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1201.size); + Partition _elem1202; + for (int _i1203 = 0; _i1203 < _list1201.size; ++_i1203) { - _elem1192 = new Partition(); - _elem1192.read(iprot); - struct.new_parts.add(_elem1192); + _elem1202 = new Partition(); + _elem1202.read(iprot); + struct.new_parts.add(_elem1202); } } struct.setNew_partsIsSet(true); @@ -88450,14 +89546,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1194.size); - PartitionSpec _elem1195; - for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) + org.apache.thrift.protocol.TList _list1204 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1204.size); + PartitionSpec _elem1205; + for (int _i1206 = 0; _i1206 < _list1204.size; ++_i1206) { - _elem1195 = new PartitionSpec(); - _elem1195.read(iprot); - struct.new_parts.add(_elem1195); + _elem1205 = new PartitionSpec(); + _elem1205.read(iprot); + struct.new_parts.add(_elem1205); } iprot.readListEnd(); } @@ -88483,9 +89579,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (PartitionSpec _iter1197 : struct.new_parts) + for (PartitionSpec _iter1207 : struct.new_parts) { - _iter1197.write(oprot); + _iter1207.write(oprot); } oprot.writeListEnd(); } @@ -88516,9 +89612,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter1198 : struct.new_parts) + for (PartitionSpec _iter1208 : struct.new_parts) { - _iter1198.write(oprot); + _iter1208.write(oprot); } } } @@ -88530,14 +89626,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1199.size); - PartitionSpec _elem1200; - for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) + org.apache.thrift.protocol.TList _list1209 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1209.size); + PartitionSpec _elem1210; + for (int _i1211 = 0; _i1211 < _list1209.size; ++_i1211) { - _elem1200 = new PartitionSpec(); - _elem1200.read(iprot); - struct.new_parts.add(_elem1200); + _elem1210 = new PartitionSpec(); + _elem1210.read(iprot); + struct.new_parts.add(_elem1210); } } struct.setNew_partsIsSet(true); @@ -89713,13 +90809,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1202.size); - String _elem1203; - for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) + org.apache.thrift.protocol.TList _list1212 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1212.size); + String _elem1213; + for (int _i1214 = 0; _i1214 < _list1212.size; ++_i1214) { - _elem1203 = iprot.readString(); - struct.part_vals.add(_elem1203); + _elem1213 = iprot.readString(); + struct.part_vals.add(_elem1213); } iprot.readListEnd(); } @@ -89755,9 +90851,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1205 : struct.part_vals) + for (String _iter1215 : struct.part_vals) { - oprot.writeString(_iter1205); + oprot.writeString(_iter1215); } oprot.writeListEnd(); } @@ -89800,9 +90896,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1206 : struct.part_vals) + for (String _iter1216 : struct.part_vals) { - oprot.writeString(_iter1206); + oprot.writeString(_iter1216); } } } @@ -89822,13 +90918,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1207.size); - String _elem1208; - for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) + org.apache.thrift.protocol.TList _list1217 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1217.size); + String _elem1218; + for (int _i1219 = 0; _i1219 < _list1217.size; ++_i1219) { - _elem1208 = iprot.readString(); - struct.part_vals.add(_elem1208); + _elem1218 = iprot.readString(); + struct.part_vals.add(_elem1218); } } struct.setPart_valsIsSet(true); @@ -92137,13 +93233,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1210.size); - String _elem1211; - for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) + org.apache.thrift.protocol.TList _list1220 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1220.size); + String _elem1221; + for (int _i1222 = 0; _i1222 < _list1220.size; ++_i1222) { - _elem1211 = iprot.readString(); - struct.part_vals.add(_elem1211); + _elem1221 = iprot.readString(); + struct.part_vals.add(_elem1221); } iprot.readListEnd(); } @@ -92188,9 +93284,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1213 : struct.part_vals) + for (String _iter1223 : struct.part_vals) { - oprot.writeString(_iter1213); + oprot.writeString(_iter1223); } oprot.writeListEnd(); } @@ -92241,9 +93337,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1214 : struct.part_vals) + for (String _iter1224 : struct.part_vals) { - oprot.writeString(_iter1214); + oprot.writeString(_iter1224); } } } @@ -92266,13 +93362,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1215.size); - String _elem1216; - for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) + org.apache.thrift.protocol.TList _list1225 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1225.size); + String _elem1226; + for (int _i1227 = 0; _i1227 < _list1225.size; ++_i1227) { - _elem1216 = iprot.readString(); - struct.part_vals.add(_elem1216); + _elem1226 = iprot.readString(); + struct.part_vals.add(_elem1226); } } struct.setPart_valsIsSet(true); @@ -96142,13 +97238,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1218.size); - String _elem1219; - for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) + org.apache.thrift.protocol.TList _list1228 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1228.size); + String _elem1229; + for (int _i1230 = 0; _i1230 < _list1228.size; ++_i1230) { - _elem1219 = iprot.readString(); - struct.part_vals.add(_elem1219); + _elem1229 = iprot.readString(); + struct.part_vals.add(_elem1229); } iprot.readListEnd(); } @@ -96192,9 +97288,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1221 : struct.part_vals) + for (String _iter1231 : struct.part_vals) { - oprot.writeString(_iter1221); + oprot.writeString(_iter1231); } oprot.writeListEnd(); } @@ -96243,9 +97339,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1222 : struct.part_vals) + for (String _iter1232 : struct.part_vals) { - oprot.writeString(_iter1222); + oprot.writeString(_iter1232); } } } @@ -96268,13 +97364,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1223.size); - String _elem1224; - for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) + org.apache.thrift.protocol.TList _list1233 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1233.size); + String _elem1234; + for (int _i1235 = 0; _i1235 < _list1233.size; ++_i1235) { - _elem1224 = iprot.readString(); - struct.part_vals.add(_elem1224); + _elem1234 = iprot.readString(); + struct.part_vals.add(_elem1234); } } struct.setPart_valsIsSet(true); @@ -97513,13 +98609,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1226.size); - String _elem1227; - for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) + org.apache.thrift.protocol.TList _list1236 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1236.size); + String _elem1237; + for (int _i1238 = 0; _i1238 < _list1236.size; ++_i1238) { - _elem1227 = iprot.readString(); - struct.part_vals.add(_elem1227); + _elem1237 = iprot.readString(); + struct.part_vals.add(_elem1237); } iprot.readListEnd(); } @@ -97572,9 +98668,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1229 : struct.part_vals) + for (String _iter1239 : struct.part_vals) { - oprot.writeString(_iter1229); + oprot.writeString(_iter1239); } oprot.writeListEnd(); } @@ -97631,9 +98727,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1230 : struct.part_vals) + for (String _iter1240 : struct.part_vals) { - oprot.writeString(_iter1230); + oprot.writeString(_iter1240); } } } @@ -97659,13 +98755,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1231.size); - String _elem1232; - for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) + org.apache.thrift.protocol.TList _list1241 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1241.size); + String _elem1242; + for (int _i1243 = 0; _i1243 < _list1241.size; ++_i1243) { - _elem1232 = iprot.readString(); - struct.part_vals.add(_elem1232); + _elem1242 = iprot.readString(); + struct.part_vals.add(_elem1242); } } struct.setPart_valsIsSet(true); @@ -102267,13 +103363,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1234.size); - String _elem1235; - for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) + org.apache.thrift.protocol.TList _list1244 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1244.size); + String _elem1245; + for (int _i1246 = 0; _i1246 < _list1244.size; ++_i1246) { - _elem1235 = iprot.readString(); - struct.part_vals.add(_elem1235); + _elem1245 = iprot.readString(); + struct.part_vals.add(_elem1245); } iprot.readListEnd(); } @@ -102309,9 +103405,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1237 : struct.part_vals) + for (String _iter1247 : struct.part_vals) { - oprot.writeString(_iter1237); + oprot.writeString(_iter1247); } oprot.writeListEnd(); } @@ -102354,9 +103450,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1238 : struct.part_vals) + for (String _iter1248 : struct.part_vals) { - oprot.writeString(_iter1238); + oprot.writeString(_iter1248); } } } @@ -102376,13 +103472,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1239.size); - String _elem1240; - for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) + org.apache.thrift.protocol.TList _list1249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1249.size); + String _elem1250; + for (int _i1251 = 0; _i1251 < _list1249.size; ++_i1251) { - _elem1240 = iprot.readString(); - struct.part_vals.add(_elem1240); + _elem1250 = iprot.readString(); + struct.part_vals.add(_elem1250); } } struct.setPart_valsIsSet(true); @@ -103600,15 +104696,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1242 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1242.size); - String _key1243; - String _val1244; - for (int _i1245 = 0; _i1245 < _map1242.size; ++_i1245) + org.apache.thrift.protocol.TMap _map1252 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1252.size); + String _key1253; + String _val1254; + for (int _i1255 = 0; _i1255 < _map1252.size; ++_i1255) { - _key1243 = iprot.readString(); - _val1244 = iprot.readString(); - struct.partitionSpecs.put(_key1243, _val1244); + _key1253 = iprot.readString(); + _val1254 = iprot.readString(); + struct.partitionSpecs.put(_key1253, _val1254); } iprot.readMapEnd(); } @@ -103666,10 +104762,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter1246 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1256 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1246.getKey()); - oprot.writeString(_iter1246.getValue()); + oprot.writeString(_iter1256.getKey()); + oprot.writeString(_iter1256.getValue()); } oprot.writeMapEnd(); } @@ -103732,10 +104828,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1247 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1257 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1247.getKey()); - oprot.writeString(_iter1247.getValue()); + oprot.writeString(_iter1257.getKey()); + oprot.writeString(_iter1257.getValue()); } } } @@ -103759,15 +104855,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1248 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map1248.size); - String _key1249; - String _val1250; - for (int _i1251 = 0; _i1251 < _map1248.size; ++_i1251) + org.apache.thrift.protocol.TMap _map1258 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map1258.size); + String _key1259; + String _val1260; + for (int _i1261 = 0; _i1261 < _map1258.size; ++_i1261) { - _key1249 = iprot.readString(); - _val1250 = iprot.readString(); - struct.partitionSpecs.put(_key1249, _val1250); + _key1259 = iprot.readString(); + _val1260 = iprot.readString(); + struct.partitionSpecs.put(_key1259, _val1260); } } struct.setPartitionSpecsIsSet(true); @@ -105213,15 +106309,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1252 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1252.size); - String _key1253; - String _val1254; - for (int _i1255 = 0; _i1255 < _map1252.size; ++_i1255) + org.apache.thrift.protocol.TMap _map1262 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1262.size); + String _key1263; + String _val1264; + for (int _i1265 = 0; _i1265 < _map1262.size; ++_i1265) { - _key1253 = iprot.readString(); - _val1254 = iprot.readString(); - struct.partitionSpecs.put(_key1253, _val1254); + _key1263 = iprot.readString(); + _val1264 = iprot.readString(); + struct.partitionSpecs.put(_key1263, _val1264); } iprot.readMapEnd(); } @@ -105279,10 +106375,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter1256 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1266 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1256.getKey()); - oprot.writeString(_iter1256.getValue()); + oprot.writeString(_iter1266.getKey()); + oprot.writeString(_iter1266.getValue()); } oprot.writeMapEnd(); } @@ -105345,10 +106441,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1257 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1267 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1257.getKey()); - oprot.writeString(_iter1257.getValue()); + oprot.writeString(_iter1267.getKey()); + oprot.writeString(_iter1267.getValue()); } } } @@ -105372,15 +106468,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1258 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map1258.size); - String _key1259; - String _val1260; - for (int _i1261 = 0; _i1261 < _map1258.size; ++_i1261) + org.apache.thrift.protocol.TMap _map1268 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map1268.size); + String _key1269; + String _val1270; + for (int _i1271 = 0; _i1271 < _map1268.size; ++_i1271) { - _key1259 = iprot.readString(); - _val1260 = iprot.readString(); - struct.partitionSpecs.put(_key1259, _val1260); + _key1269 = iprot.readString(); + _val1270 = iprot.readString(); + struct.partitionSpecs.put(_key1269, _val1270); } } struct.setPartitionSpecsIsSet(true); @@ -106045,14 +107141,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1262 = iprot.readListBegin(); - struct.success = new ArrayList(_list1262.size); - Partition _elem1263; - for (int _i1264 = 0; _i1264 < _list1262.size; ++_i1264) + org.apache.thrift.protocol.TList _list1272 = iprot.readListBegin(); + struct.success = new ArrayList(_list1272.size); + Partition _elem1273; + for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) { - _elem1263 = new Partition(); - _elem1263.read(iprot); - struct.success.add(_elem1263); + _elem1273 = new Partition(); + _elem1273.read(iprot); + struct.success.add(_elem1273); } iprot.readListEnd(); } @@ -106114,9 +107210,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1265 : struct.success) + for (Partition _iter1275 : struct.success) { - _iter1265.write(oprot); + _iter1275.write(oprot); } oprot.writeListEnd(); } @@ -106179,9 +107275,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1266 : struct.success) + for (Partition _iter1276 : struct.success) { - _iter1266.write(oprot); + _iter1276.write(oprot); } } } @@ -106205,14 +107301,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1267.size); - Partition _elem1268; - for (int _i1269 = 0; _i1269 < _list1267.size; ++_i1269) + org.apache.thrift.protocol.TList _list1277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1277.size); + Partition _elem1278; + for (int _i1279 = 0; _i1279 < _list1277.size; ++_i1279) { - _elem1268 = new Partition(); - _elem1268.read(iprot); - struct.success.add(_elem1268); + _elem1278 = new Partition(); + _elem1278.read(iprot); + struct.success.add(_elem1278); } } struct.setSuccessIsSet(true); @@ -106911,13 +108007,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1270 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1270.size); - String _elem1271; - for (int _i1272 = 0; _i1272 < _list1270.size; ++_i1272) + org.apache.thrift.protocol.TList _list1280 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1280.size); + String _elem1281; + for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) { - _elem1271 = iprot.readString(); - struct.part_vals.add(_elem1271); + _elem1281 = iprot.readString(); + struct.part_vals.add(_elem1281); } iprot.readListEnd(); } @@ -106937,13 +108033,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1273 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1273.size); - String _elem1274; - for (int _i1275 = 0; _i1275 < _list1273.size; ++_i1275) + org.apache.thrift.protocol.TList _list1283 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1283.size); + String _elem1284; + for (int _i1285 = 0; _i1285 < _list1283.size; ++_i1285) { - _elem1274 = iprot.readString(); - struct.group_names.add(_elem1274); + _elem1284 = iprot.readString(); + struct.group_names.add(_elem1284); } iprot.readListEnd(); } @@ -106979,9 +108075,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1276 : struct.part_vals) + for (String _iter1286 : struct.part_vals) { - oprot.writeString(_iter1276); + oprot.writeString(_iter1286); } oprot.writeListEnd(); } @@ -106996,9 +108092,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1277 : struct.group_names) + for (String _iter1287 : struct.group_names) { - oprot.writeString(_iter1277); + oprot.writeString(_iter1287); } oprot.writeListEnd(); } @@ -107047,9 +108143,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1278 : struct.part_vals) + for (String _iter1288 : struct.part_vals) { - oprot.writeString(_iter1278); + oprot.writeString(_iter1288); } } } @@ -107059,9 +108155,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1279 : struct.group_names) + for (String _iter1289 : struct.group_names) { - oprot.writeString(_iter1279); + oprot.writeString(_iter1289); } } } @@ -107081,13 +108177,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1280 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1280.size); - String _elem1281; - for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) + org.apache.thrift.protocol.TList _list1290 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1290.size); + String _elem1291; + for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) { - _elem1281 = iprot.readString(); - struct.part_vals.add(_elem1281); + _elem1291 = iprot.readString(); + struct.part_vals.add(_elem1291); } } struct.setPart_valsIsSet(true); @@ -107098,13 +108194,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1283.size); - String _elem1284; - for (int _i1285 = 0; _i1285 < _list1283.size; ++_i1285) + org.apache.thrift.protocol.TList _list1293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1293.size); + String _elem1294; + for (int _i1295 = 0; _i1295 < _list1293.size; ++_i1295) { - _elem1284 = iprot.readString(); - struct.group_names.add(_elem1284); + _elem1294 = iprot.readString(); + struct.group_names.add(_elem1294); } } struct.setGroup_namesIsSet(true); @@ -109873,14 +110969,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1286 = iprot.readListBegin(); - struct.success = new ArrayList(_list1286.size); - Partition _elem1287; - for (int _i1288 = 0; _i1288 < _list1286.size; ++_i1288) + org.apache.thrift.protocol.TList _list1296 = iprot.readListBegin(); + struct.success = new ArrayList(_list1296.size); + Partition _elem1297; + for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) { - _elem1287 = new Partition(); - _elem1287.read(iprot); - struct.success.add(_elem1287); + _elem1297 = new Partition(); + _elem1297.read(iprot); + struct.success.add(_elem1297); } iprot.readListEnd(); } @@ -109924,9 +111020,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1289 : struct.success) + for (Partition _iter1299 : struct.success) { - _iter1289.write(oprot); + _iter1299.write(oprot); } oprot.writeListEnd(); } @@ -109973,9 +111069,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1290 : struct.success) + for (Partition _iter1300 : struct.success) { - _iter1290.write(oprot); + _iter1300.write(oprot); } } } @@ -109993,14 +111089,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1291.size); - Partition _elem1292; - for (int _i1293 = 0; _i1293 < _list1291.size; ++_i1293) + org.apache.thrift.protocol.TList _list1301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1301.size); + Partition _elem1302; + for (int _i1303 = 0; _i1303 < _list1301.size; ++_i1303) { - _elem1292 = new Partition(); - _elem1292.read(iprot); - struct.success.add(_elem1292); + _elem1302 = new Partition(); + _elem1302.read(iprot); + struct.success.add(_elem1302); } } struct.setSuccessIsSet(true); @@ -110690,13 +111786,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1294 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1294.size); - String _elem1295; - for (int _i1296 = 0; _i1296 < _list1294.size; ++_i1296) + org.apache.thrift.protocol.TList _list1304 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1304.size); + String _elem1305; + for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) { - _elem1295 = iprot.readString(); - struct.group_names.add(_elem1295); + _elem1305 = iprot.readString(); + struct.group_names.add(_elem1305); } iprot.readListEnd(); } @@ -110740,9 +111836,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1297 : struct.group_names) + for (String _iter1307 : struct.group_names) { - oprot.writeString(_iter1297); + oprot.writeString(_iter1307); } oprot.writeListEnd(); } @@ -110797,9 +111893,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1298 : struct.group_names) + for (String _iter1308 : struct.group_names) { - oprot.writeString(_iter1298); + oprot.writeString(_iter1308); } } } @@ -110827,13 +111923,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1299 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1299.size); - String _elem1300; - for (int _i1301 = 0; _i1301 < _list1299.size; ++_i1301) + org.apache.thrift.protocol.TList _list1309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1309.size); + String _elem1310; + for (int _i1311 = 0; _i1311 < _list1309.size; ++_i1311) { - _elem1300 = iprot.readString(); - struct.group_names.add(_elem1300); + _elem1310 = iprot.readString(); + struct.group_names.add(_elem1310); } } struct.setGroup_namesIsSet(true); @@ -111320,14 +112416,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1302 = iprot.readListBegin(); - struct.success = new ArrayList(_list1302.size); - Partition _elem1303; - for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304) + org.apache.thrift.protocol.TList _list1312 = iprot.readListBegin(); + struct.success = new ArrayList(_list1312.size); + Partition _elem1313; + for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) { - _elem1303 = new Partition(); - _elem1303.read(iprot); - struct.success.add(_elem1303); + _elem1313 = new Partition(); + _elem1313.read(iprot); + struct.success.add(_elem1313); } iprot.readListEnd(); } @@ -111371,9 +112467,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1305 : struct.success) + for (Partition _iter1315 : struct.success) { - _iter1305.write(oprot); + _iter1315.write(oprot); } oprot.writeListEnd(); } @@ -111420,9 +112516,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1306 : struct.success) + for (Partition _iter1316 : struct.success) { - _iter1306.write(oprot); + _iter1316.write(oprot); } } } @@ -111440,14 +112536,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1307.size); - Partition _elem1308; - for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309) + org.apache.thrift.protocol.TList _list1317 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1317.size); + Partition _elem1318; + for (int _i1319 = 0; _i1319 < _list1317.size; ++_i1319) { - _elem1308 = new Partition(); - _elem1308.read(iprot); - struct.success.add(_elem1308); + _elem1318 = new Partition(); + _elem1318.read(iprot); + struct.success.add(_elem1318); } } struct.setSuccessIsSet(true); @@ -112510,14 +113606,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1310 = iprot.readListBegin(); - struct.success = new ArrayList(_list1310.size); - PartitionSpec _elem1311; - for (int _i1312 = 0; _i1312 < _list1310.size; ++_i1312) + org.apache.thrift.protocol.TList _list1320 = iprot.readListBegin(); + struct.success = new ArrayList(_list1320.size); + PartitionSpec _elem1321; + for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) { - _elem1311 = new PartitionSpec(); - _elem1311.read(iprot); - struct.success.add(_elem1311); + _elem1321 = new PartitionSpec(); + _elem1321.read(iprot); + struct.success.add(_elem1321); } iprot.readListEnd(); } @@ -112561,9 +113657,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter1313 : struct.success) + for (PartitionSpec _iter1323 : struct.success) { - _iter1313.write(oprot); + _iter1323.write(oprot); } oprot.writeListEnd(); } @@ -112610,9 +113706,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1314 : struct.success) + for (PartitionSpec _iter1324 : struct.success) { - _iter1314.write(oprot); + _iter1324.write(oprot); } } } @@ -112630,14 +113726,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1315.size); - PartitionSpec _elem1316; - for (int _i1317 = 0; _i1317 < _list1315.size; ++_i1317) + org.apache.thrift.protocol.TList _list1325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1325.size); + PartitionSpec _elem1326; + for (int _i1327 = 0; _i1327 < _list1325.size; ++_i1327) { - _elem1316 = new PartitionSpec(); - _elem1316.read(iprot); - struct.success.add(_elem1316); + _elem1326 = new PartitionSpec(); + _elem1326.read(iprot); + struct.success.add(_elem1326); } } struct.setSuccessIsSet(true); @@ -113697,13 +114793,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1318 = iprot.readListBegin(); - struct.success = new ArrayList(_list1318.size); - String _elem1319; - for (int _i1320 = 0; _i1320 < _list1318.size; ++_i1320) + org.apache.thrift.protocol.TList _list1328 = iprot.readListBegin(); + struct.success = new ArrayList(_list1328.size); + String _elem1329; + for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) { - _elem1319 = iprot.readString(); - struct.success.add(_elem1319); + _elem1329 = iprot.readString(); + struct.success.add(_elem1329); } iprot.readListEnd(); } @@ -113747,9 +114843,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1321 : struct.success) + for (String _iter1331 : struct.success) { - oprot.writeString(_iter1321); + oprot.writeString(_iter1331); } oprot.writeListEnd(); } @@ -113796,9 +114892,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1322 : struct.success) + for (String _iter1332 : struct.success) { - oprot.writeString(_iter1322); + oprot.writeString(_iter1332); } } } @@ -113816,13 +114912,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1323.size); - String _elem1324; - for (int _i1325 = 0; _i1325 < _list1323.size; ++_i1325) + org.apache.thrift.protocol.TList _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1333.size); + String _elem1334; + for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) { - _elem1324 = iprot.readString(); - struct.success.add(_elem1324); + _elem1334 = iprot.readString(); + struct.success.add(_elem1334); } } struct.setSuccessIsSet(true); @@ -115353,13 +116449,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1326 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1326.size); - String _elem1327; - for (int _i1328 = 0; _i1328 < _list1326.size; ++_i1328) + org.apache.thrift.protocol.TList _list1336 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1336.size); + String _elem1337; + for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) { - _elem1327 = iprot.readString(); - struct.part_vals.add(_elem1327); + _elem1337 = iprot.readString(); + struct.part_vals.add(_elem1337); } iprot.readListEnd(); } @@ -115403,9 +116499,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1329 : struct.part_vals) + for (String _iter1339 : struct.part_vals) { - oprot.writeString(_iter1329); + oprot.writeString(_iter1339); } oprot.writeListEnd(); } @@ -115454,9 +116550,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1330 : struct.part_vals) + for (String _iter1340 : struct.part_vals) { - oprot.writeString(_iter1330); + oprot.writeString(_iter1340); } } } @@ -115479,13 +116575,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1331.size); - String _elem1332; - for (int _i1333 = 0; _i1333 < _list1331.size; ++_i1333) + org.apache.thrift.protocol.TList _list1341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1341.size); + String _elem1342; + for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) { - _elem1332 = iprot.readString(); - struct.part_vals.add(_elem1332); + _elem1342 = iprot.readString(); + struct.part_vals.add(_elem1342); } } struct.setPart_valsIsSet(true); @@ -115976,14 +117072,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1334 = iprot.readListBegin(); - struct.success = new ArrayList(_list1334.size); - Partition _elem1335; - for (int _i1336 = 0; _i1336 < _list1334.size; ++_i1336) + org.apache.thrift.protocol.TList _list1344 = iprot.readListBegin(); + struct.success = new ArrayList(_list1344.size); + Partition _elem1345; + for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) { - _elem1335 = new Partition(); - _elem1335.read(iprot); - struct.success.add(_elem1335); + _elem1345 = new Partition(); + _elem1345.read(iprot); + struct.success.add(_elem1345); } iprot.readListEnd(); } @@ -116027,9 +117123,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1337 : struct.success) + for (Partition _iter1347 : struct.success) { - _iter1337.write(oprot); + _iter1347.write(oprot); } oprot.writeListEnd(); } @@ -116076,9 +117172,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1338 : struct.success) + for (Partition _iter1348 : struct.success) { - _iter1338.write(oprot); + _iter1348.write(oprot); } } } @@ -116096,14 +117192,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1339.size); - Partition _elem1340; - for (int _i1341 = 0; _i1341 < _list1339.size; ++_i1341) + org.apache.thrift.protocol.TList _list1349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1349.size); + Partition _elem1350; + for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) { - _elem1340 = new Partition(); - _elem1340.read(iprot); - struct.success.add(_elem1340); + _elem1350 = new Partition(); + _elem1350.read(iprot); + struct.success.add(_elem1350); } } struct.setSuccessIsSet(true); @@ -116875,13 +117971,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1342 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1342.size); - String _elem1343; - for (int _i1344 = 0; _i1344 < _list1342.size; ++_i1344) + org.apache.thrift.protocol.TList _list1352 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1352.size); + String _elem1353; + for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) { - _elem1343 = iprot.readString(); - struct.part_vals.add(_elem1343); + _elem1353 = iprot.readString(); + struct.part_vals.add(_elem1353); } iprot.readListEnd(); } @@ -116909,13 +118005,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1345 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1345.size); - String _elem1346; - for (int _i1347 = 0; _i1347 < _list1345.size; ++_i1347) + org.apache.thrift.protocol.TList _list1355 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1355.size); + String _elem1356; + for (int _i1357 = 0; _i1357 < _list1355.size; ++_i1357) { - _elem1346 = iprot.readString(); - struct.group_names.add(_elem1346); + _elem1356 = iprot.readString(); + struct.group_names.add(_elem1356); } iprot.readListEnd(); } @@ -116951,9 +118047,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1348 : struct.part_vals) + for (String _iter1358 : struct.part_vals) { - oprot.writeString(_iter1348); + oprot.writeString(_iter1358); } oprot.writeListEnd(); } @@ -116971,9 +118067,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1349 : struct.group_names) + for (String _iter1359 : struct.group_names) { - oprot.writeString(_iter1349); + oprot.writeString(_iter1359); } oprot.writeListEnd(); } @@ -117025,9 +118121,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1350 : struct.part_vals) + for (String _iter1360 : struct.part_vals) { - oprot.writeString(_iter1350); + oprot.writeString(_iter1360); } } } @@ -117040,9 +118136,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1351 : struct.group_names) + for (String _iter1361 : struct.group_names) { - oprot.writeString(_iter1351); + oprot.writeString(_iter1361); } } } @@ -117062,13 +118158,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1352 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1352.size); - String _elem1353; - for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) + org.apache.thrift.protocol.TList _list1362 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1362.size); + String _elem1363; + for (int _i1364 = 0; _i1364 < _list1362.size; ++_i1364) { - _elem1353 = iprot.readString(); - struct.part_vals.add(_elem1353); + _elem1363 = iprot.readString(); + struct.part_vals.add(_elem1363); } } struct.setPart_valsIsSet(true); @@ -117083,13 +118179,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1355 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1355.size); - String _elem1356; - for (int _i1357 = 0; _i1357 < _list1355.size; ++_i1357) + org.apache.thrift.protocol.TList _list1365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1365.size); + String _elem1366; + for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) { - _elem1356 = iprot.readString(); - struct.group_names.add(_elem1356); + _elem1366 = iprot.readString(); + struct.group_names.add(_elem1366); } } struct.setGroup_namesIsSet(true); @@ -117576,14 +118672,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1358 = iprot.readListBegin(); - struct.success = new ArrayList(_list1358.size); - Partition _elem1359; - for (int _i1360 = 0; _i1360 < _list1358.size; ++_i1360) + org.apache.thrift.protocol.TList _list1368 = iprot.readListBegin(); + struct.success = new ArrayList(_list1368.size); + Partition _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) { - _elem1359 = new Partition(); - _elem1359.read(iprot); - struct.success.add(_elem1359); + _elem1369 = new Partition(); + _elem1369.read(iprot); + struct.success.add(_elem1369); } iprot.readListEnd(); } @@ -117627,9 +118723,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1361 : struct.success) + for (Partition _iter1371 : struct.success) { - _iter1361.write(oprot); + _iter1371.write(oprot); } oprot.writeListEnd(); } @@ -117676,9 +118772,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1362 : struct.success) + for (Partition _iter1372 : struct.success) { - _iter1362.write(oprot); + _iter1372.write(oprot); } } } @@ -117696,14 +118792,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1363 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1363.size); - Partition _elem1364; - for (int _i1365 = 0; _i1365 < _list1363.size; ++_i1365) + org.apache.thrift.protocol.TList _list1373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1373.size); + Partition _elem1374; + for (int _i1375 = 0; _i1375 < _list1373.size; ++_i1375) { - _elem1364 = new Partition(); - _elem1364.read(iprot); - struct.success.add(_elem1364); + _elem1374 = new Partition(); + _elem1374.read(iprot); + struct.success.add(_elem1374); } } struct.setSuccessIsSet(true); @@ -118296,13 +119392,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1366 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1366.size); - String _elem1367; - for (int _i1368 = 0; _i1368 < _list1366.size; ++_i1368) + org.apache.thrift.protocol.TList _list1376 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1376.size); + String _elem1377; + for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) { - _elem1367 = iprot.readString(); - struct.part_vals.add(_elem1367); + _elem1377 = iprot.readString(); + struct.part_vals.add(_elem1377); } iprot.readListEnd(); } @@ -118346,9 +119442,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1369 : struct.part_vals) + for (String _iter1379 : struct.part_vals) { - oprot.writeString(_iter1369); + oprot.writeString(_iter1379); } oprot.writeListEnd(); } @@ -118397,9 +119493,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1370 : struct.part_vals) + for (String _iter1380 : struct.part_vals) { - oprot.writeString(_iter1370); + oprot.writeString(_iter1380); } } } @@ -118422,13 +119518,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1371 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1371.size); - String _elem1372; - for (int _i1373 = 0; _i1373 < _list1371.size; ++_i1373) + org.apache.thrift.protocol.TList _list1381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1381.size); + String _elem1382; + for (int _i1383 = 0; _i1383 < _list1381.size; ++_i1383) { - _elem1372 = iprot.readString(); - struct.part_vals.add(_elem1372); + _elem1382 = iprot.readString(); + struct.part_vals.add(_elem1382); } } struct.setPart_valsIsSet(true); @@ -118916,13 +120012,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1374 = iprot.readListBegin(); - struct.success = new ArrayList(_list1374.size); - String _elem1375; - for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) + org.apache.thrift.protocol.TList _list1384 = iprot.readListBegin(); + struct.success = new ArrayList(_list1384.size); + String _elem1385; + for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) { - _elem1375 = iprot.readString(); - struct.success.add(_elem1375); + _elem1385 = iprot.readString(); + struct.success.add(_elem1385); } iprot.readListEnd(); } @@ -118966,9 +120062,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1377 : struct.success) + for (String _iter1387 : struct.success) { - oprot.writeString(_iter1377); + oprot.writeString(_iter1387); } oprot.writeListEnd(); } @@ -119015,9 +120111,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1378 : struct.success) + for (String _iter1388 : struct.success) { - oprot.writeString(_iter1378); + oprot.writeString(_iter1388); } } } @@ -119035,13 +120131,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1379 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1379.size); - String _elem1380; - for (int _i1381 = 0; _i1381 < _list1379.size; ++_i1381) + org.apache.thrift.protocol.TList _list1389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1389.size); + String _elem1390; + for (int _i1391 = 0; _i1391 < _list1389.size; ++_i1391) { - _elem1380 = iprot.readString(); - struct.success.add(_elem1380); + _elem1390 = iprot.readString(); + struct.success.add(_elem1390); } } struct.setSuccessIsSet(true); @@ -120208,14 +121304,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1382 = iprot.readListBegin(); - struct.success = new ArrayList(_list1382.size); - Partition _elem1383; - for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) + org.apache.thrift.protocol.TList _list1392 = iprot.readListBegin(); + struct.success = new ArrayList(_list1392.size); + Partition _elem1393; + for (int _i1394 = 0; _i1394 < _list1392.size; ++_i1394) { - _elem1383 = new Partition(); - _elem1383.read(iprot); - struct.success.add(_elem1383); + _elem1393 = new Partition(); + _elem1393.read(iprot); + struct.success.add(_elem1393); } iprot.readListEnd(); } @@ -120259,9 +121355,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1385 : struct.success) + for (Partition _iter1395 : struct.success) { - _iter1385.write(oprot); + _iter1395.write(oprot); } oprot.writeListEnd(); } @@ -120308,9 +121404,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1386 : struct.success) + for (Partition _iter1396 : struct.success) { - _iter1386.write(oprot); + _iter1396.write(oprot); } } } @@ -120328,14 +121424,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1387.size); - Partition _elem1388; - for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) + org.apache.thrift.protocol.TList _list1397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1397.size); + Partition _elem1398; + for (int _i1399 = 0; _i1399 < _list1397.size; ++_i1399) { - _elem1388 = new Partition(); - _elem1388.read(iprot); - struct.success.add(_elem1388); + _elem1398 = new Partition(); + _elem1398.read(iprot); + struct.success.add(_elem1398); } } struct.setSuccessIsSet(true); @@ -121502,14 +122598,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1390 = iprot.readListBegin(); - struct.success = new ArrayList(_list1390.size); - PartitionSpec _elem1391; - for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) + org.apache.thrift.protocol.TList _list1400 = iprot.readListBegin(); + struct.success = new ArrayList(_list1400.size); + PartitionSpec _elem1401; + for (int _i1402 = 0; _i1402 < _list1400.size; ++_i1402) { - _elem1391 = new PartitionSpec(); - _elem1391.read(iprot); - struct.success.add(_elem1391); + _elem1401 = new PartitionSpec(); + _elem1401.read(iprot); + struct.success.add(_elem1401); } iprot.readListEnd(); } @@ -121553,9 +122649,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter1393 : struct.success) + for (PartitionSpec _iter1403 : struct.success) { - _iter1393.write(oprot); + _iter1403.write(oprot); } oprot.writeListEnd(); } @@ -121602,9 +122698,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1394 : struct.success) + for (PartitionSpec _iter1404 : struct.success) { - _iter1394.write(oprot); + _iter1404.write(oprot); } } } @@ -121622,14 +122718,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1395.size); - PartitionSpec _elem1396; - for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) + org.apache.thrift.protocol.TList _list1405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1405.size); + PartitionSpec _elem1406; + for (int _i1407 = 0; _i1407 < _list1405.size; ++_i1407) { - _elem1396 = new PartitionSpec(); - _elem1396.read(iprot); - struct.success.add(_elem1396); + _elem1406 = new PartitionSpec(); + _elem1406.read(iprot); + struct.success.add(_elem1406); } } struct.setSuccessIsSet(true); @@ -124213,13 +125309,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1398 = iprot.readListBegin(); - struct.names = new ArrayList(_list1398.size); - String _elem1399; - for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) + org.apache.thrift.protocol.TList _list1408 = iprot.readListBegin(); + struct.names = new ArrayList(_list1408.size); + String _elem1409; + for (int _i1410 = 0; _i1410 < _list1408.size; ++_i1410) { - _elem1399 = iprot.readString(); - struct.names.add(_elem1399); + _elem1409 = iprot.readString(); + struct.names.add(_elem1409); } iprot.readListEnd(); } @@ -124255,9 +125351,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter1401 : struct.names) + for (String _iter1411 : struct.names) { - oprot.writeString(_iter1401); + oprot.writeString(_iter1411); } oprot.writeListEnd(); } @@ -124300,9 +125396,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1402 : struct.names) + for (String _iter1412 : struct.names) { - oprot.writeString(_iter1402); + oprot.writeString(_iter1412); } } } @@ -124322,13 +125418,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1403.size); - String _elem1404; - for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) + org.apache.thrift.protocol.TList _list1413 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1413.size); + String _elem1414; + for (int _i1415 = 0; _i1415 < _list1413.size; ++_i1415) { - _elem1404 = iprot.readString(); - struct.names.add(_elem1404); + _elem1414 = iprot.readString(); + struct.names.add(_elem1414); } } struct.setNamesIsSet(true); @@ -124815,14 +125911,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1406 = iprot.readListBegin(); - struct.success = new ArrayList(_list1406.size); - Partition _elem1407; - for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) + org.apache.thrift.protocol.TList _list1416 = iprot.readListBegin(); + struct.success = new ArrayList(_list1416.size); + Partition _elem1417; + for (int _i1418 = 0; _i1418 < _list1416.size; ++_i1418) { - _elem1407 = new Partition(); - _elem1407.read(iprot); - struct.success.add(_elem1407); + _elem1417 = new Partition(); + _elem1417.read(iprot); + struct.success.add(_elem1417); } iprot.readListEnd(); } @@ -124866,9 +125962,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1409 : struct.success) + for (Partition _iter1419 : struct.success) { - _iter1409.write(oprot); + _iter1419.write(oprot); } oprot.writeListEnd(); } @@ -124915,9 +126011,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1410 : struct.success) + for (Partition _iter1420 : struct.success) { - _iter1410.write(oprot); + _iter1420.write(oprot); } } } @@ -124935,14 +126031,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1411.size); - Partition _elem1412; - for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) + org.apache.thrift.protocol.TList _list1421 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1421.size); + Partition _elem1422; + for (int _i1423 = 0; _i1423 < _list1421.size; ++_i1423) { - _elem1412 = new Partition(); - _elem1412.read(iprot); - struct.success.add(_elem1412); + _elem1422 = new Partition(); + _elem1422.read(iprot); + struct.success.add(_elem1422); } } struct.setSuccessIsSet(true); @@ -126492,14 +127588,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1414 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1414.size); - Partition _elem1415; - for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) + org.apache.thrift.protocol.TList _list1424 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1424.size); + Partition _elem1425; + for (int _i1426 = 0; _i1426 < _list1424.size; ++_i1426) { - _elem1415 = new Partition(); - _elem1415.read(iprot); - struct.new_parts.add(_elem1415); + _elem1425 = new Partition(); + _elem1425.read(iprot); + struct.new_parts.add(_elem1425); } iprot.readListEnd(); } @@ -126535,9 +127631,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1417 : struct.new_parts) + for (Partition _iter1427 : struct.new_parts) { - _iter1417.write(oprot); + _iter1427.write(oprot); } oprot.writeListEnd(); } @@ -126580,9 +127676,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1418 : struct.new_parts) + for (Partition _iter1428 : struct.new_parts) { - _iter1418.write(oprot); + _iter1428.write(oprot); } } } @@ -126602,14 +127698,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1419.size); - Partition _elem1420; - for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) + org.apache.thrift.protocol.TList _list1429 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1429.size); + Partition _elem1430; + for (int _i1431 = 0; _i1431 < _list1429.size; ++_i1431) { - _elem1420 = new Partition(); - _elem1420.read(iprot); - struct.new_parts.add(_elem1420); + _elem1430 = new Partition(); + _elem1430.read(iprot); + struct.new_parts.add(_elem1430); } } struct.setNew_partsIsSet(true); @@ -127662,14 +128758,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1422 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1422.size); - Partition _elem1423; - for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) + org.apache.thrift.protocol.TList _list1432 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1432.size); + Partition _elem1433; + for (int _i1434 = 0; _i1434 < _list1432.size; ++_i1434) { - _elem1423 = new Partition(); - _elem1423.read(iprot); - struct.new_parts.add(_elem1423); + _elem1433 = new Partition(); + _elem1433.read(iprot); + struct.new_parts.add(_elem1433); } iprot.readListEnd(); } @@ -127714,9 +128810,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1425 : struct.new_parts) + for (Partition _iter1435 : struct.new_parts) { - _iter1425.write(oprot); + _iter1435.write(oprot); } oprot.writeListEnd(); } @@ -127767,9 +128863,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1426 : struct.new_parts) + for (Partition _iter1436 : struct.new_parts) { - _iter1426.write(oprot); + _iter1436.write(oprot); } } } @@ -127792,14 +128888,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1427.size); - Partition _elem1428; - for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) + org.apache.thrift.protocol.TList _list1437 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1437.size); + Partition _elem1438; + for (int _i1439 = 0; _i1439 < _list1437.size; ++_i1439) { - _elem1428 = new Partition(); - _elem1428.read(iprot); - struct.new_parts.add(_elem1428); + _elem1438 = new Partition(); + _elem1438.read(iprot); + struct.new_parts.add(_elem1438); } } struct.setNew_partsIsSet(true); @@ -130938,13 +132034,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1430 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1430.size); - String _elem1431; - for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) + org.apache.thrift.protocol.TList _list1440 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1440.size); + String _elem1441; + for (int _i1442 = 0; _i1442 < _list1440.size; ++_i1442) { - _elem1431 = iprot.readString(); - struct.part_vals.add(_elem1431); + _elem1441 = iprot.readString(); + struct.part_vals.add(_elem1441); } iprot.readListEnd(); } @@ -130989,9 +132085,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1433 : struct.part_vals) + for (String _iter1443 : struct.part_vals) { - oprot.writeString(_iter1433); + oprot.writeString(_iter1443); } oprot.writeListEnd(); } @@ -131042,9 +132138,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1434 : struct.part_vals) + for (String _iter1444 : struct.part_vals) { - oprot.writeString(_iter1434); + oprot.writeString(_iter1444); } } } @@ -131067,13 +132163,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1435.size); - String _elem1436; - for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) + org.apache.thrift.protocol.TList _list1445 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1445.size); + String _elem1446; + for (int _i1447 = 0; _i1447 < _list1445.size; ++_i1447) { - _elem1436 = iprot.readString(); - struct.part_vals.add(_elem1436); + _elem1446 = iprot.readString(); + struct.part_vals.add(_elem1446); } } struct.setPart_valsIsSet(true); @@ -132885,13 +133981,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1438 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1438.size); - String _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + org.apache.thrift.protocol.TList _list1448 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1448.size); + String _elem1449; + for (int _i1450 = 0; _i1450 < _list1448.size; ++_i1450) { - _elem1439 = iprot.readString(); - struct.part_vals.add(_elem1439); + _elem1449 = iprot.readString(); + struct.part_vals.add(_elem1449); } iprot.readListEnd(); } @@ -132925,9 +134021,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1441 : struct.part_vals) + for (String _iter1451 : struct.part_vals) { - oprot.writeString(_iter1441); + oprot.writeString(_iter1451); } oprot.writeListEnd(); } @@ -132964,9 +134060,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1442 : struct.part_vals) + for (String _iter1452 : struct.part_vals) { - oprot.writeString(_iter1442); + oprot.writeString(_iter1452); } } } @@ -132981,13 +134077,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1443.size); - String _elem1444; - for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) + org.apache.thrift.protocol.TList _list1453 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1453.size); + String _elem1454; + for (int _i1455 = 0; _i1455 < _list1453.size; ++_i1455) { - _elem1444 = iprot.readString(); - struct.part_vals.add(_elem1444); + _elem1454 = iprot.readString(); + struct.part_vals.add(_elem1454); } } struct.setPart_valsIsSet(true); @@ -135142,13 +136238,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1446 = iprot.readListBegin(); - struct.success = new ArrayList(_list1446.size); - String _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + org.apache.thrift.protocol.TList _list1456 = iprot.readListBegin(); + struct.success = new ArrayList(_list1456.size); + String _elem1457; + for (int _i1458 = 0; _i1458 < _list1456.size; ++_i1458) { - _elem1447 = iprot.readString(); - struct.success.add(_elem1447); + _elem1457 = iprot.readString(); + struct.success.add(_elem1457); } iprot.readListEnd(); } @@ -135183,9 +136279,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1449 : struct.success) + for (String _iter1459 : struct.success) { - oprot.writeString(_iter1449); + oprot.writeString(_iter1459); } oprot.writeListEnd(); } @@ -135224,9 +136320,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1450 : struct.success) + for (String _iter1460 : struct.success) { - oprot.writeString(_iter1450); + oprot.writeString(_iter1460); } } } @@ -135241,13 +136337,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1451.size); - String _elem1452; - for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) + org.apache.thrift.protocol.TList _list1461 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1461.size); + String _elem1462; + for (int _i1463 = 0; _i1463 < _list1461.size; ++_i1463) { - _elem1452 = iprot.readString(); - struct.success.add(_elem1452); + _elem1462 = iprot.readString(); + struct.success.add(_elem1462); } } struct.setSuccessIsSet(true); @@ -136010,15 +137106,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1454 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1454.size); - String _key1455; - String _val1456; - for (int _i1457 = 0; _i1457 < _map1454.size; ++_i1457) + org.apache.thrift.protocol.TMap _map1464 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1464.size); + String _key1465; + String _val1466; + for (int _i1467 = 0; _i1467 < _map1464.size; ++_i1467) { - _key1455 = iprot.readString(); - _val1456 = iprot.readString(); - struct.success.put(_key1455, _val1456); + _key1465 = iprot.readString(); + _val1466 = iprot.readString(); + struct.success.put(_key1465, _val1466); } iprot.readMapEnd(); } @@ -136053,10 +137149,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ 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, struct.success.size())); - for (Map.Entry _iter1458 : struct.success.entrySet()) + for (Map.Entry _iter1468 : struct.success.entrySet()) { - oprot.writeString(_iter1458.getKey()); - oprot.writeString(_iter1458.getValue()); + oprot.writeString(_iter1468.getKey()); + oprot.writeString(_iter1468.getValue()); } oprot.writeMapEnd(); } @@ -136095,10 +137191,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1459 : struct.success.entrySet()) + for (Map.Entry _iter1469 : struct.success.entrySet()) { - oprot.writeString(_iter1459.getKey()); - oprot.writeString(_iter1459.getValue()); + oprot.writeString(_iter1469.getKey()); + oprot.writeString(_iter1469.getValue()); } } } @@ -136113,15 +137209,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1460 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map1460.size); - String _key1461; - String _val1462; - for (int _i1463 = 0; _i1463 < _map1460.size; ++_i1463) + org.apache.thrift.protocol.TMap _map1470 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map1470.size); + String _key1471; + String _val1472; + for (int _i1473 = 0; _i1473 < _map1470.size; ++_i1473) { - _key1461 = iprot.readString(); - _val1462 = iprot.readString(); - struct.success.put(_key1461, _val1462); + _key1471 = iprot.readString(); + _val1472 = iprot.readString(); + struct.success.put(_key1471, _val1472); } } struct.setSuccessIsSet(true); @@ -136716,15 +137812,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1464 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1464.size); - String _key1465; - String _val1466; - for (int _i1467 = 0; _i1467 < _map1464.size; ++_i1467) + org.apache.thrift.protocol.TMap _map1474 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1474.size); + String _key1475; + String _val1476; + for (int _i1477 = 0; _i1477 < _map1474.size; ++_i1477) { - _key1465 = iprot.readString(); - _val1466 = iprot.readString(); - struct.part_vals.put(_key1465, _val1466); + _key1475 = iprot.readString(); + _val1476 = iprot.readString(); + struct.part_vals.put(_key1475, _val1476); } iprot.readMapEnd(); } @@ -136768,10 +137864,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv 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, struct.part_vals.size())); - for (Map.Entry _iter1468 : struct.part_vals.entrySet()) + for (Map.Entry _iter1478 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1468.getKey()); - oprot.writeString(_iter1468.getValue()); + oprot.writeString(_iter1478.getKey()); + oprot.writeString(_iter1478.getValue()); } oprot.writeMapEnd(); } @@ -136822,10 +137918,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1469 : struct.part_vals.entrySet()) + for (Map.Entry _iter1479 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1469.getKey()); - oprot.writeString(_iter1469.getValue()); + oprot.writeString(_iter1479.getKey()); + oprot.writeString(_iter1479.getValue()); } } } @@ -136848,15 +137944,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1470 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1470.size); - String _key1471; - String _val1472; - for (int _i1473 = 0; _i1473 < _map1470.size; ++_i1473) + org.apache.thrift.protocol.TMap _map1480 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1480.size); + String _key1481; + String _val1482; + for (int _i1483 = 0; _i1483 < _map1480.size; ++_i1483) { - _key1471 = iprot.readString(); - _val1472 = iprot.readString(); - struct.part_vals.put(_key1471, _val1472); + _key1481 = iprot.readString(); + _val1482 = iprot.readString(); + struct.part_vals.put(_key1481, _val1482); } } struct.setPart_valsIsSet(true); @@ -138340,15 +139436,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1474 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1474.size); - String _key1475; - String _val1476; - for (int _i1477 = 0; _i1477 < _map1474.size; ++_i1477) + org.apache.thrift.protocol.TMap _map1484 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1484.size); + String _key1485; + String _val1486; + for (int _i1487 = 0; _i1487 < _map1484.size; ++_i1487) { - _key1475 = iprot.readString(); - _val1476 = iprot.readString(); - struct.part_vals.put(_key1475, _val1476); + _key1485 = iprot.readString(); + _val1486 = iprot.readString(); + struct.part_vals.put(_key1485, _val1486); } iprot.readMapEnd(); } @@ -138392,10 +139488,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF 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, struct.part_vals.size())); - for (Map.Entry _iter1478 : struct.part_vals.entrySet()) + for (Map.Entry _iter1488 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1478.getKey()); - oprot.writeString(_iter1478.getValue()); + oprot.writeString(_iter1488.getKey()); + oprot.writeString(_iter1488.getValue()); } oprot.writeMapEnd(); } @@ -138446,10 +139542,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1479 : struct.part_vals.entrySet()) + for (Map.Entry _iter1489 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1479.getKey()); - oprot.writeString(_iter1479.getValue()); + oprot.writeString(_iter1489.getKey()); + oprot.writeString(_iter1489.getValue()); } } } @@ -138472,15 +139568,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1480 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1480.size); - String _key1481; - String _val1482; - for (int _i1483 = 0; _i1483 < _map1480.size; ++_i1483) + org.apache.thrift.protocol.TMap _map1490 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1490.size); + String _key1491; + String _val1492; + for (int _i1493 = 0; _i1493 < _map1490.size; ++_i1493) { - _key1481 = iprot.readString(); - _val1482 = iprot.readString(); - struct.part_vals.put(_key1481, _val1482); + _key1491 = iprot.readString(); + _val1492 = iprot.readString(); + struct.part_vals.put(_key1491, _val1492); } } struct.setPart_valsIsSet(true); @@ -163136,13 +164232,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1484 = iprot.readListBegin(); - struct.success = new ArrayList(_list1484.size); - String _elem1485; - for (int _i1486 = 0; _i1486 < _list1484.size; ++_i1486) + org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); + struct.success = new ArrayList(_list1494.size); + String _elem1495; + for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) { - _elem1485 = iprot.readString(); - struct.success.add(_elem1485); + _elem1495 = iprot.readString(); + struct.success.add(_elem1495); } iprot.readListEnd(); } @@ -163177,9 +164273,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_functions_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1487 : struct.success) + for (String _iter1497 : struct.success) { - oprot.writeString(_iter1487); + oprot.writeString(_iter1497); } oprot.writeListEnd(); } @@ -163218,9 +164314,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1488 : struct.success) + for (String _iter1498 : struct.success) { - oprot.writeString(_iter1488); + oprot.writeString(_iter1498); } } } @@ -163235,13 +164331,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1489.size); - String _elem1490; - for (int _i1491 = 0; _i1491 < _list1489.size; ++_i1491) + org.apache.thrift.protocol.TList _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1499.size); + String _elem1500; + for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) { - _elem1490 = iprot.readString(); - struct.success.add(_elem1490); + _elem1500 = iprot.readString(); + struct.success.add(_elem1500); } } struct.setSuccessIsSet(true); @@ -167296,13 +168392,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1492 = iprot.readListBegin(); - struct.success = new ArrayList(_list1492.size); - String _elem1493; - for (int _i1494 = 0; _i1494 < _list1492.size; ++_i1494) + org.apache.thrift.protocol.TList _list1502 = iprot.readListBegin(); + struct.success = new ArrayList(_list1502.size); + String _elem1503; + for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) { - _elem1493 = iprot.readString(); - struct.success.add(_elem1493); + _elem1503 = iprot.readString(); + struct.success.add(_elem1503); } iprot.readListEnd(); } @@ -167337,9 +168433,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_names_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1495 : struct.success) + for (String _iter1505 : struct.success) { - oprot.writeString(_iter1495); + oprot.writeString(_iter1505); } oprot.writeListEnd(); } @@ -167378,9 +168474,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1496 : struct.success) + for (String _iter1506 : struct.success) { - oprot.writeString(_iter1496); + oprot.writeString(_iter1506); } } } @@ -167395,13 +168491,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1497.size); - String _elem1498; - for (int _i1499 = 0; _i1499 < _list1497.size; ++_i1499) + org.apache.thrift.protocol.TList _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1507.size); + String _elem1508; + for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) { - _elem1498 = iprot.readString(); - struct.success.add(_elem1498); + _elem1508 = iprot.readString(); + struct.success.add(_elem1508); } } struct.setSuccessIsSet(true); @@ -170692,14 +171788,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1500 = iprot.readListBegin(); - struct.success = new ArrayList(_list1500.size); - Role _elem1501; - for (int _i1502 = 0; _i1502 < _list1500.size; ++_i1502) + org.apache.thrift.protocol.TList _list1510 = iprot.readListBegin(); + struct.success = new ArrayList(_list1510.size); + Role _elem1511; + for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) { - _elem1501 = new Role(); - _elem1501.read(iprot); - struct.success.add(_elem1501); + _elem1511 = new Role(); + _elem1511.read(iprot); + struct.success.add(_elem1511); } iprot.readListEnd(); } @@ -170734,9 +171830,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter1503 : struct.success) + for (Role _iter1513 : struct.success) { - _iter1503.write(oprot); + _iter1513.write(oprot); } oprot.writeListEnd(); } @@ -170775,9 +171871,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1504 : struct.success) + for (Role _iter1514 : struct.success) { - _iter1504.write(oprot); + _iter1514.write(oprot); } } } @@ -170792,14 +171888,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1505.size); - Role _elem1506; - for (int _i1507 = 0; _i1507 < _list1505.size; ++_i1507) + org.apache.thrift.protocol.TList _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1515.size); + Role _elem1516; + for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) { - _elem1506 = new Role(); - _elem1506.read(iprot); - struct.success.add(_elem1506); + _elem1516 = new Role(); + _elem1516.read(iprot); + struct.success.add(_elem1516); } } struct.setSuccessIsSet(true); @@ -173804,13 +174900,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a case 3: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1508 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1508.size); - String _elem1509; - for (int _i1510 = 0; _i1510 < _list1508.size; ++_i1510) + org.apache.thrift.protocol.TList _list1518 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1518.size); + String _elem1519; + for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) { - _elem1509 = iprot.readString(); - struct.group_names.add(_elem1509); + _elem1519 = iprot.readString(); + struct.group_names.add(_elem1519); } iprot.readListEnd(); } @@ -173846,9 +174942,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_privilege_set_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1511 : struct.group_names) + for (String _iter1521 : struct.group_names) { - oprot.writeString(_iter1511); + oprot.writeString(_iter1521); } oprot.writeListEnd(); } @@ -173891,9 +174987,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_a if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1512 : struct.group_names) + for (String _iter1522 : struct.group_names) { - oprot.writeString(_iter1512); + oprot.writeString(_iter1522); } } } @@ -173914,13 +175010,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1513.size); - String _elem1514; - for (int _i1515 = 0; _i1515 < _list1513.size; ++_i1515) + org.apache.thrift.protocol.TList _list1523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1523.size); + String _elem1524; + for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) { - _elem1514 = iprot.readString(); - struct.group_names.add(_elem1514); + _elem1524 = iprot.readString(); + struct.group_names.add(_elem1524); } } struct.setGroup_namesIsSet(true); @@ -175378,14 +176474,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1516 = iprot.readListBegin(); - struct.success = new ArrayList(_list1516.size); - HiveObjectPrivilege _elem1517; - for (int _i1518 = 0; _i1518 < _list1516.size; ++_i1518) + org.apache.thrift.protocol.TList _list1526 = iprot.readListBegin(); + struct.success = new ArrayList(_list1526.size); + HiveObjectPrivilege _elem1527; + for (int _i1528 = 0; _i1528 < _list1526.size; ++_i1528) { - _elem1517 = new HiveObjectPrivilege(); - _elem1517.read(iprot); - struct.success.add(_elem1517); + _elem1527 = new HiveObjectPrivilege(); + _elem1527.read(iprot); + struct.success.add(_elem1527); } iprot.readListEnd(); } @@ -175420,9 +176516,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_privileges_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (HiveObjectPrivilege _iter1519 : struct.success) + for (HiveObjectPrivilege _iter1529 : struct.success) { - _iter1519.write(oprot); + _iter1529.write(oprot); } oprot.writeListEnd(); } @@ -175461,9 +176557,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1520 : struct.success) + for (HiveObjectPrivilege _iter1530 : struct.success) { - _iter1520.write(oprot); + _iter1530.write(oprot); } } } @@ -175478,14 +176574,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1521.size); - HiveObjectPrivilege _elem1522; - for (int _i1523 = 0; _i1523 < _list1521.size; ++_i1523) + org.apache.thrift.protocol.TList _list1531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1531.size); + HiveObjectPrivilege _elem1532; + for (int _i1533 = 0; _i1533 < _list1531.size; ++_i1533) { - _elem1522 = new HiveObjectPrivilege(); - _elem1522.read(iprot); - struct.success.add(_elem1522); + _elem1532 = new HiveObjectPrivilege(); + _elem1532.read(iprot); + struct.success.add(_elem1532); } } struct.setSuccessIsSet(true); @@ -179432,13 +180528,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct case 2: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1524 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1524.size); - String _elem1525; - for (int _i1526 = 0; _i1526 < _list1524.size; ++_i1526) + org.apache.thrift.protocol.TList _list1534 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1534.size); + String _elem1535; + for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) { - _elem1525 = iprot.readString(); - struct.group_names.add(_elem1525); + _elem1535 = iprot.readString(); + struct.group_names.add(_elem1535); } iprot.readListEnd(); } @@ -179469,9 +180565,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_args struc oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1527 : struct.group_names) + for (String _iter1537 : struct.group_names) { - oprot.writeString(_iter1527); + oprot.writeString(_iter1537); } oprot.writeListEnd(); } @@ -179508,9 +180604,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1528 : struct.group_names) + for (String _iter1538 : struct.group_names) { - oprot.writeString(_iter1528); + oprot.writeString(_iter1538); } } } @@ -179526,13 +180622,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1529.size); - String _elem1530; - for (int _i1531 = 0; _i1531 < _list1529.size; ++_i1531) + org.apache.thrift.protocol.TList _list1539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1539.size); + String _elem1540; + for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) { - _elem1530 = iprot.readString(); - struct.group_names.add(_elem1530); + _elem1540 = iprot.readString(); + struct.group_names.add(_elem1540); } } struct.setGroup_namesIsSet(true); @@ -179935,13 +181031,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1532 = iprot.readListBegin(); - struct.success = new ArrayList(_list1532.size); - String _elem1533; - for (int _i1534 = 0; _i1534 < _list1532.size; ++_i1534) + org.apache.thrift.protocol.TList _list1542 = iprot.readListBegin(); + struct.success = new ArrayList(_list1542.size); + String _elem1543; + for (int _i1544 = 0; _i1544 < _list1542.size; ++_i1544) { - _elem1533 = iprot.readString(); - struct.success.add(_elem1533); + _elem1543 = iprot.readString(); + struct.success.add(_elem1543); } iprot.readListEnd(); } @@ -179976,9 +181072,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_result str oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1535 : struct.success) + for (String _iter1545 : struct.success) { - oprot.writeString(_iter1535); + oprot.writeString(_iter1545); } oprot.writeListEnd(); } @@ -180017,9 +181113,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1536 : struct.success) + for (String _iter1546 : struct.success) { - oprot.writeString(_iter1536); + oprot.writeString(_iter1546); } } } @@ -180034,13 +181130,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1537.size); - String _elem1538; - for (int _i1539 = 0; _i1539 < _list1537.size; ++_i1539) + org.apache.thrift.protocol.TList _list1547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1547.size); + String _elem1548; + for (int _i1549 = 0; _i1549 < _list1547.size; ++_i1549) { - _elem1538 = iprot.readString(); - struct.success.add(_elem1538); + _elem1548 = iprot.readString(); + struct.success.add(_elem1548); } } struct.setSuccessIsSet(true); @@ -185331,13 +186427,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_token_ident case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1540 = iprot.readListBegin(); - struct.success = new ArrayList(_list1540.size); - String _elem1541; - for (int _i1542 = 0; _i1542 < _list1540.size; ++_i1542) + org.apache.thrift.protocol.TList _list1550 = iprot.readListBegin(); + struct.success = new ArrayList(_list1550.size); + String _elem1551; + for (int _i1552 = 0; _i1552 < _list1550.size; ++_i1552) { - _elem1541 = iprot.readString(); - struct.success.add(_elem1541); + _elem1551 = iprot.readString(); + struct.success.add(_elem1551); } iprot.readListEnd(); } @@ -185363,9 +186459,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_token_iden oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1543 : struct.success) + for (String _iter1553 : struct.success) { - oprot.writeString(_iter1543); + oprot.writeString(_iter1553); } oprot.writeListEnd(); } @@ -185396,9 +186492,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1544 : struct.success) + for (String _iter1554 : struct.success) { - oprot.writeString(_iter1544); + oprot.writeString(_iter1554); } } } @@ -185410,13 +186506,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_token_identi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1545.size); - String _elem1546; - for (int _i1547 = 0; _i1547 < _list1545.size; ++_i1547) + org.apache.thrift.protocol.TList _list1555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1555.size); + String _elem1556; + for (int _i1557 = 0; _i1557 < _list1555.size; ++_i1557) { - _elem1546 = iprot.readString(); - struct.success.add(_elem1546); + _elem1556 = iprot.readString(); + struct.success.add(_elem1556); } } struct.setSuccessIsSet(true); @@ -188446,13 +189542,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_master_keys_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1548 = iprot.readListBegin(); - struct.success = new ArrayList(_list1548.size); - String _elem1549; - for (int _i1550 = 0; _i1550 < _list1548.size; ++_i1550) + org.apache.thrift.protocol.TList _list1558 = iprot.readListBegin(); + struct.success = new ArrayList(_list1558.size); + String _elem1559; + for (int _i1560 = 0; _i1560 < _list1558.size; ++_i1560) { - _elem1549 = iprot.readString(); - struct.success.add(_elem1549); + _elem1559 = iprot.readString(); + struct.success.add(_elem1559); } iprot.readListEnd(); } @@ -188478,9 +189574,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_master_keys_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1551 : struct.success) + for (String _iter1561 : struct.success) { - oprot.writeString(_iter1551); + oprot.writeString(_iter1561); } oprot.writeListEnd(); } @@ -188511,9 +189607,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1552 : struct.success) + for (String _iter1562 : struct.success) { - oprot.writeString(_iter1552); + oprot.writeString(_iter1562); } } } @@ -188525,13 +189621,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_master_keys_resu BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1553.size); - String _elem1554; - for (int _i1555 = 0; _i1555 < _list1553.size; ++_i1555) + org.apache.thrift.protocol.TList _list1563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1563.size); + String _elem1564; + for (int _i1565 = 0; _i1565 < _list1563.size; ++_i1565) { - _elem1554 = iprot.readString(); - struct.success.add(_elem1554); + _elem1564 = iprot.readString(); + struct.success.add(_elem1564); } } struct.setSuccessIsSet(true); @@ -237440,14 +238536,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_all_vers case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1556 = iprot.readListBegin(); - struct.success = new ArrayList(_list1556.size); - SchemaVersion _elem1557; - for (int _i1558 = 0; _i1558 < _list1556.size; ++_i1558) + org.apache.thrift.protocol.TList _list1566 = iprot.readListBegin(); + struct.success = new ArrayList(_list1566.size); + SchemaVersion _elem1567; + for (int _i1568 = 0; _i1568 < _list1566.size; ++_i1568) { - _elem1557 = new SchemaVersion(); - _elem1557.read(iprot); - struct.success.add(_elem1557); + _elem1567 = new SchemaVersion(); + _elem1567.read(iprot); + struct.success.add(_elem1567); } iprot.readListEnd(); } @@ -237491,9 +238587,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_all_ver oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (SchemaVersion _iter1559 : struct.success) + for (SchemaVersion _iter1569 : struct.success) { - _iter1559.write(oprot); + _iter1569.write(oprot); } oprot.writeListEnd(); } @@ -237540,9 +238636,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1560 : struct.success) + for (SchemaVersion _iter1570 : struct.success) { - _iter1560.write(oprot); + _iter1570.write(oprot); } } } @@ -237560,14 +238656,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_all_versi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1561.size); - SchemaVersion _elem1562; - for (int _i1563 = 0; _i1563 < _list1561.size; ++_i1563) + org.apache.thrift.protocol.TList _list1571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1571.size); + SchemaVersion _elem1572; + for (int _i1573 = 0; _i1573 < _list1571.size; ++_i1573) { - _elem1562 = new SchemaVersion(); - _elem1562.read(iprot); - struct.success.add(_elem1562); + _elem1572 = new SchemaVersion(); + _elem1572.read(iprot); + struct.success.add(_elem1572); } } struct.setSuccessIsSet(true); @@ -244093,28 +245189,6240 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_lock_materialization_rebuild_args("); + StringBuilder sb = new StringBuilder("heartbeat_lock_materialization_rebuild_args("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tableName:"); + if (this.tableName == null) { + sb.append("null"); + } else { + sb.append(this.tableName); + } + first = false; + if (!first) sb.append(", "); + sb.append("txnId:"); + sb.append(this.txnId); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class heartbeat_lock_materialization_rebuild_argsStandardSchemeFactory implements SchemeFactory { + public heartbeat_lock_materialization_rebuild_argsStandardScheme getScheme() { + return new heartbeat_lock_materialization_rebuild_argsStandardScheme(); + } + } + + private static class heartbeat_lock_materialization_rebuild_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TXN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.txnId = iprot.readI64(); + struct.setTxnIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tableName != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.tableName); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(TXN_ID_FIELD_DESC); + oprot.writeI64(struct.txnId); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class heartbeat_lock_materialization_rebuild_argsTupleSchemeFactory implements SchemeFactory { + public heartbeat_lock_materialization_rebuild_argsTupleScheme getScheme() { + return new heartbeat_lock_materialization_rebuild_argsTupleScheme(); + } + } + + private static class heartbeat_lock_materialization_rebuild_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDbName()) { + optionals.set(0); + } + if (struct.isSetTableName()) { + optionals.set(1); + } + if (struct.isSetTxnId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDbName()) { + oprot.writeString(struct.dbName); + } + if (struct.isSetTableName()) { + oprot.writeString(struct.tableName); + } + if (struct.isSetTxnId()) { + oprot.writeI64(struct.txnId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } + if (incoming.get(1)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(2)) { + struct.txnId = iprot.readI64(); + struct.setTxnIdIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_lock_materialization_rebuild_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_lock_materialization_rebuild_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new heartbeat_lock_materialization_rebuild_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new heartbeat_lock_materialization_rebuild_resultTupleSchemeFactory()); + } + + private boolean success; // 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"); + + 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; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + 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.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_lock_materialization_rebuild_result.class, metaDataMap); + } + + public heartbeat_lock_materialization_rebuild_result() { + } + + public heartbeat_lock_materialization_rebuild_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public heartbeat_lock_materialization_rebuild_result(heartbeat_lock_materialization_rebuild_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } + + public heartbeat_lock_materialization_rebuild_result deepCopy() { + return new heartbeat_lock_materialization_rebuild_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public void setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return isSuccess(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof heartbeat_lock_materialization_rebuild_result) + return this.equals((heartbeat_lock_materialization_rebuild_result)that); + return false; + } + + public boolean equals(heartbeat_lock_materialization_rebuild_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true; + list.add(present_success); + if (present_success) + list.add(success); + + return list.hashCode(); + } + + @Override + public int compareTo(heartbeat_lock_materialization_rebuild_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("heartbeat_lock_materialization_rebuild_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class heartbeat_lock_materialization_rebuild_resultStandardSchemeFactory implements SchemeFactory { + public heartbeat_lock_materialization_rebuild_resultStandardScheme getScheme() { + return new heartbeat_lock_materialization_rebuild_resultStandardScheme(); + } + } + + private static class heartbeat_lock_materialization_rebuild_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class heartbeat_lock_materialization_rebuild_resultTupleSchemeFactory implements SchemeFactory { + public heartbeat_lock_materialization_rebuild_resultTupleScheme getScheme() { + return new heartbeat_lock_materialization_rebuild_resultTupleScheme(); + } + } + + private static class heartbeat_lock_materialization_rebuild_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_runtime_stats_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_runtime_stats_args"); + + private static final org.apache.thrift.protocol.TField STAT_FIELD_DESC = new org.apache.thrift.protocol.TField("stat", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_runtime_stats_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_runtime_stats_argsTupleSchemeFactory()); + } + + private RuntimeStat stat; // 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 { + STAT((short)1, "stat"); + + 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: // STAT + return STAT; + 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.STAT, new org.apache.thrift.meta_data.FieldMetaData("stat", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RuntimeStat.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_runtime_stats_args.class, metaDataMap); + } + + public add_runtime_stats_args() { + } + + public add_runtime_stats_args( + RuntimeStat stat) + { + this(); + this.stat = stat; + } + + /** + * Performs a deep copy on other. + */ + public add_runtime_stats_args(add_runtime_stats_args other) { + if (other.isSetStat()) { + this.stat = new RuntimeStat(other.stat); + } + } + + public add_runtime_stats_args deepCopy() { + return new add_runtime_stats_args(this); + } + + @Override + public void clear() { + this.stat = null; + } + + public RuntimeStat getStat() { + return this.stat; + } + + public void setStat(RuntimeStat stat) { + this.stat = stat; + } + + public void unsetStat() { + this.stat = null; + } + + /** Returns true if field stat is set (has been assigned a value) and false otherwise */ + public boolean isSetStat() { + return this.stat != null; + } + + public void setStatIsSet(boolean value) { + if (!value) { + this.stat = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case STAT: + if (value == null) { + unsetStat(); + } else { + setStat((RuntimeStat)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case STAT: + return getStat(); + + } + 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 STAT: + return isSetStat(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_runtime_stats_args) + return this.equals((add_runtime_stats_args)that); + return false; + } + + public boolean equals(add_runtime_stats_args that) { + if (that == null) + return false; + + boolean this_present_stat = true && this.isSetStat(); + boolean that_present_stat = true && that.isSetStat(); + if (this_present_stat || that_present_stat) { + if (!(this_present_stat && that_present_stat)) + return false; + if (!this.stat.equals(that.stat)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_stat = true && (isSetStat()); + list.add(present_stat); + if (present_stat) + list.add(stat); + + return list.hashCode(); + } + + @Override + public int compareTo(add_runtime_stats_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetStat()).compareTo(other.isSetStat()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetStat()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stat, other.stat); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("add_runtime_stats_args("); + boolean first = true; + + sb.append("stat:"); + if (this.stat == null) { + sb.append("null"); + } else { + sb.append(this.stat); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (stat != null) { + stat.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class add_runtime_stats_argsStandardSchemeFactory implements SchemeFactory { + public add_runtime_stats_argsStandardScheme getScheme() { + return new add_runtime_stats_argsStandardScheme(); + } + } + + private static class add_runtime_stats_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // STAT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.stat = new RuntimeStat(); + struct.stat.read(iprot); + struct.setStatIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.stat != null) { + oprot.writeFieldBegin(STAT_FIELD_DESC); + struct.stat.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_runtime_stats_argsTupleSchemeFactory implements SchemeFactory { + public add_runtime_stats_argsTupleScheme getScheme() { + return new add_runtime_stats_argsTupleScheme(); + } + } + + private static class add_runtime_stats_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetStat()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetStat()) { + struct.stat.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.stat = new RuntimeStat(); + struct.stat.read(iprot); + struct.setStatIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_runtime_stats_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_runtime_stats_result"); + + 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_runtime_stats_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_runtime_stats_resultTupleSchemeFactory()); + } + + private MetaException o1; // 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 { + O1((short)1, "o1"); + + 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: // O1 + return O1; + 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.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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_runtime_stats_result.class, metaDataMap); + } + + public add_runtime_stats_result() { + } + + public add_runtime_stats_result( + MetaException o1) + { + this(); + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public add_runtime_stats_result(add_runtime_stats_result other) { + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public add_runtime_stats_result deepCopy() { + return new add_runtime_stats_result(this); + } + + @Override + public void clear() { + this.o1 = null; + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + } + 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 O1: + return isSetO1(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_runtime_stats_result) + return this.equals((add_runtime_stats_result)that); + return false; + } + + public boolean equals(add_runtime_stats_result that) { + if (that == null) + 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; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + return list.hashCode(); + } + + @Override + public int compareTo(add_runtime_stats_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("add_runtime_stats_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class add_runtime_stats_resultStandardSchemeFactory implements SchemeFactory { + public add_runtime_stats_resultStandardScheme getScheme() { + return new add_runtime_stats_resultStandardScheme(); + } + } + + private static class add_runtime_stats_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_runtime_stats_resultTupleSchemeFactory implements SchemeFactory { + public add_runtime_stats_resultTupleScheme getScheme() { + return new add_runtime_stats_resultTupleScheme(); + } + } + + private static class add_runtime_stats_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_runtime_stats_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_runtime_stats_args"); + + private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_runtime_stats_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_runtime_stats_argsTupleSchemeFactory()); + } + + private GetRuntimeStatsRequest rqst; // 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 { + RQST((short)1, "rqst"); + + 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: // RQST + return RQST; + 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.RQST, new org.apache.thrift.meta_data.FieldMetaData("rqst", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetRuntimeStatsRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_runtime_stats_args.class, metaDataMap); + } + + public get_runtime_stats_args() { + } + + public get_runtime_stats_args( + GetRuntimeStatsRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public get_runtime_stats_args(get_runtime_stats_args other) { + if (other.isSetRqst()) { + this.rqst = new GetRuntimeStatsRequest(other.rqst); + } + } + + public get_runtime_stats_args deepCopy() { + return new get_runtime_stats_args(this); + } + + @Override + public void clear() { + this.rqst = null; + } + + public GetRuntimeStatsRequest getRqst() { + return this.rqst; + } + + public void setRqst(GetRuntimeStatsRequest rqst) { + this.rqst = rqst; + } + + public void unsetRqst() { + this.rqst = null; + } + + /** Returns true if field rqst is set (has been assigned a value) and false otherwise */ + public boolean isSetRqst() { + return this.rqst != null; + } + + public void setRqstIsSet(boolean value) { + if (!value) { + this.rqst = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case RQST: + if (value == null) { + unsetRqst(); + } else { + setRqst((GetRuntimeStatsRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case RQST: + return getRqst(); + + } + 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 RQST: + return isSetRqst(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_runtime_stats_args) + return this.equals((get_runtime_stats_args)that); + return false; + } + + public boolean equals(get_runtime_stats_args that) { + if (that == null) + return false; + + boolean this_present_rqst = true && this.isSetRqst(); + boolean that_present_rqst = true && that.isSetRqst(); + if (this_present_rqst || that_present_rqst) { + if (!(this_present_rqst && that_present_rqst)) + return false; + if (!this.rqst.equals(that.rqst)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_rqst = true && (isSetRqst()); + list.add(present_rqst); + if (present_rqst) + list.add(rqst); + + return list.hashCode(); + } + + @Override + public int compareTo(get_runtime_stats_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRqst()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_runtime_stats_args("); + boolean first = true; + + sb.append("rqst:"); + if (this.rqst == null) { + sb.append("null"); + } else { + sb.append(this.rqst); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (rqst != null) { + rqst.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_runtime_stats_argsStandardSchemeFactory implements SchemeFactory { + public get_runtime_stats_argsStandardScheme getScheme() { + return new get_runtime_stats_argsStandardScheme(); + } + } + + private static class get_runtime_stats_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // RQST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rqst = new GetRuntimeStatsRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.rqst != null) { + oprot.writeFieldBegin(RQST_FIELD_DESC); + struct.rqst.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_runtime_stats_argsTupleSchemeFactory implements SchemeFactory { + public get_runtime_stats_argsTupleScheme getScheme() { + return new get_runtime_stats_argsTupleScheme(); + } + } + + private static class get_runtime_stats_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRqst()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRqst()) { + struct.rqst.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new GetRuntimeStatsRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_runtime_stats_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_runtime_stats_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_runtime_stats_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_runtime_stats_resultTupleSchemeFactory()); + } + + private List success; // required + private MetaException o1; // 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"); + + 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; + 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RuntimeStat.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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_runtime_stats_result.class, metaDataMap); + } + + public get_runtime_stats_result() { + } + + public get_runtime_stats_result( + List success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public get_runtime_stats_result(get_runtime_stats_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (RuntimeStat other_element : other.success) { + __this__success.add(new RuntimeStat(other_element)); + } + this.success = __this__success; + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public get_runtime_stats_result deepCopy() { + return new get_runtime_stats_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(RuntimeStat elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List 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 MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_runtime_stats_result) + return this.equals((get_runtime_stats_result)that); + return false; + } + + public boolean equals(get_runtime_stats_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; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + return list.hashCode(); + } + + @Override + public int compareTo(get_runtime_stats_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_runtime_stats_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; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_runtime_stats_resultStandardSchemeFactory implements SchemeFactory { + public get_runtime_stats_resultStandardScheme getScheme() { + return new get_runtime_stats_resultStandardScheme(); + } + } + + private static class get_runtime_stats_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1574 = iprot.readListBegin(); + struct.success = new ArrayList(_list1574.size); + RuntimeStat _elem1575; + for (int _i1576 = 0; _i1576 < _list1574.size; ++_i1576) + { + _elem1575 = new RuntimeStat(); + _elem1575.read(iprot); + struct.success.add(_elem1575); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (RuntimeStat _iter1577 : struct.success) + { + _iter1577.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_runtime_stats_resultTupleSchemeFactory implements SchemeFactory { + public get_runtime_stats_resultTupleScheme getScheme() { + return new get_runtime_stats_resultTupleScheme(); + } + } + + private static class get_runtime_stats_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (RuntimeStat _iter1578 : struct.success) + { + _iter1578.write(oprot); + } + } + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list1579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1579.size); + RuntimeStat _elem1580; + for (int _i1581 = 0; _i1581 < _list1579.size; ++_i1581) + { + _elem1580 = new RuntimeStat(); + _elem1580.read(iprot); + struct.success.add(_elem1580); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_specs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_specs_args"); + + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_partitions_with_specs_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_specs_argsTupleSchemeFactory()); + } + + private GetPartitionsRequest request; // 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 { + REQUEST((short)1, "request"); + + 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: // REQUEST + return REQUEST; + 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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionsRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_specs_args.class, metaDataMap); + } + + public get_partitions_with_specs_args() { + } + + public get_partitions_with_specs_args( + GetPartitionsRequest request) + { + this(); + this.request = request; + } + + /** + * Performs a deep copy on other. + */ + public get_partitions_with_specs_args(get_partitions_with_specs_args other) { + if (other.isSetRequest()) { + this.request = new GetPartitionsRequest(other.request); + } + } + + public get_partitions_with_specs_args deepCopy() { + return new get_partitions_with_specs_args(this); + } + + @Override + public void clear() { + this.request = null; + } + + public GetPartitionsRequest getRequest() { + return this.request; + } + + public void setRequest(GetPartitionsRequest request) { + this.request = request; + } + + public void unsetRequest() { + this.request = null; + } + + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; + } + + public void setRequestIsSet(boolean value) { + if (!value) { + this.request = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQUEST: + if (value == null) { + unsetRequest(); + } else { + setRequest((GetPartitionsRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQUEST: + return getRequest(); + + } + 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 REQUEST: + return isSetRequest(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partitions_with_specs_args) + return this.equals((get_partitions_with_specs_args)that); + return false; + } + + public boolean equals(get_partitions_with_specs_args that) { + if (that == null) + return false; + + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) + return false; + if (!this.request.equals(that.request)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); + + return list.hashCode(); + } + + @Override + public int compareTo(get_partitions_with_specs_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_partitions_with_specs_args("); + boolean first = true; + + sb.append("request:"); + if (this.request == null) { + sb.append("null"); + } else { + sb.append(this.request); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (request != null) { + request.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_partitions_with_specs_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_specs_argsStandardScheme getScheme() { + return new get_partitions_with_specs_argsStandardScheme(); + } + } + + private static class get_partitions_with_specs_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new GetPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_partitions_with_specs_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_specs_argsTupleScheme getScheme() { + return new get_partitions_with_specs_argsTupleScheme(); + } + } + + private static class get_partitions_with_specs_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRequest()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.request = new GetPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_specs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_specs_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_partitions_with_specs_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_specs_resultTupleSchemeFactory()); + } + + private GetPartitionsResponse success; // required + private MetaException o1; // 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"); + + 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; + 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, GetPartitionsResponse.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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_specs_result.class, metaDataMap); + } + + public get_partitions_with_specs_result() { + } + + public get_partitions_with_specs_result( + GetPartitionsResponse success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public get_partitions_with_specs_result(get_partitions_with_specs_result other) { + if (other.isSetSuccess()) { + this.success = new GetPartitionsResponse(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public get_partitions_with_specs_result deepCopy() { + return new get_partitions_with_specs_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + } + + public GetPartitionsResponse getSuccess() { + return this.success; + } + + public void setSuccess(GetPartitionsResponse 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 MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((GetPartitionsResponse)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partitions_with_specs_result) + return this.equals((get_partitions_with_specs_result)that); + return false; + } + + public boolean equals(get_partitions_with_specs_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; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + return list.hashCode(); + } + + @Override + public int compareTo(get_partitions_with_specs_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_partitions_with_specs_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; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_partitions_with_specs_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_specs_resultStandardScheme getScheme() { + return new get_partitions_with_specs_resultStandardScheme(); + } + } + + private static class get_partitions_with_specs_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetPartitionsResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_partitions_with_specs_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_specs_resultTupleScheme getScheme() { + return new get_partitions_with_specs_resultTupleScheme(); + } + } + + private static class get_partitions_with_specs_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new GetPartitionsResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_next_compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("find_next_compact_args"); + + private static final org.apache.thrift.protocol.TField WORKER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("workerId", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new find_next_compact_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_next_compact_argsTupleSchemeFactory()); + } + + private String workerId; // 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 { + WORKER_ID((short)1, "workerId"); + + 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: // WORKER_ID + return WORKER_ID; + 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.WORKER_ID, new org.apache.thrift.meta_data.FieldMetaData("workerId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_next_compact_args.class, metaDataMap); + } + + public find_next_compact_args() { + } + + public find_next_compact_args( + String workerId) + { + this(); + this.workerId = workerId; + } + + /** + * Performs a deep copy on other. + */ + public find_next_compact_args(find_next_compact_args other) { + if (other.isSetWorkerId()) { + this.workerId = other.workerId; + } + } + + public find_next_compact_args deepCopy() { + return new find_next_compact_args(this); + } + + @Override + public void clear() { + this.workerId = null; + } + + public String getWorkerId() { + return this.workerId; + } + + public void setWorkerId(String workerId) { + this.workerId = workerId; + } + + public void unsetWorkerId() { + this.workerId = null; + } + + /** Returns true if field workerId is set (has been assigned a value) and false otherwise */ + public boolean isSetWorkerId() { + return this.workerId != null; + } + + public void setWorkerIdIsSet(boolean value) { + if (!value) { + this.workerId = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case WORKER_ID: + if (value == null) { + unsetWorkerId(); + } else { + setWorkerId((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case WORKER_ID: + return getWorkerId(); + + } + 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 WORKER_ID: + return isSetWorkerId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof find_next_compact_args) + return this.equals((find_next_compact_args)that); + return false; + } + + public boolean equals(find_next_compact_args that) { + if (that == null) + return false; + + boolean this_present_workerId = true && this.isSetWorkerId(); + boolean that_present_workerId = true && that.isSetWorkerId(); + if (this_present_workerId || that_present_workerId) { + if (!(this_present_workerId && that_present_workerId)) + return false; + if (!this.workerId.equals(that.workerId)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_workerId = true && (isSetWorkerId()); + list.add(present_workerId); + if (present_workerId) + list.add(workerId); + + return list.hashCode(); + } + + @Override + public int compareTo(find_next_compact_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetWorkerId()).compareTo(other.isSetWorkerId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWorkerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerId, other.workerId); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("find_next_compact_args("); + boolean first = true; + + sb.append("workerId:"); + if (this.workerId == null) { + sb.append("null"); + } else { + sb.append(this.workerId); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class find_next_compact_argsStandardSchemeFactory implements SchemeFactory { + public find_next_compact_argsStandardScheme getScheme() { + return new find_next_compact_argsStandardScheme(); + } + } + + private static class find_next_compact_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, find_next_compact_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // WORKER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.workerId = iprot.readString(); + struct.setWorkerIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, find_next_compact_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.workerId != null) { + oprot.writeFieldBegin(WORKER_ID_FIELD_DESC); + oprot.writeString(struct.workerId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class find_next_compact_argsTupleSchemeFactory implements SchemeFactory { + public find_next_compact_argsTupleScheme getScheme() { + return new find_next_compact_argsTupleScheme(); + } + } + + private static class find_next_compact_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, find_next_compact_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetWorkerId()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetWorkerId()) { + oprot.writeString(struct.workerId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, find_next_compact_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.workerId = iprot.readString(); + struct.setWorkerIdIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_next_compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("find_next_compact_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new find_next_compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_next_compact_resultTupleSchemeFactory()); + } + + private CompactionInfoStruct success; // required + private MetaException o1; // 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"); + + 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; + 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, CompactionInfoStruct.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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_next_compact_result.class, metaDataMap); + } + + public find_next_compact_result() { + } + + public find_next_compact_result( + CompactionInfoStruct success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public find_next_compact_result(find_next_compact_result other) { + if (other.isSetSuccess()) { + this.success = new CompactionInfoStruct(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public find_next_compact_result deepCopy() { + return new find_next_compact_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + } + + public CompactionInfoStruct getSuccess() { + return this.success; + } + + public void setSuccess(CompactionInfoStruct 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 MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((CompactionInfoStruct)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof find_next_compact_result) + return this.equals((find_next_compact_result)that); + return false; + } + + public boolean equals(find_next_compact_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; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + return list.hashCode(); + } + + @Override + public int compareTo(find_next_compact_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("find_next_compact_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; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class find_next_compact_resultStandardSchemeFactory implements SchemeFactory { + public find_next_compact_resultStandardScheme getScheme() { + return new find_next_compact_resultStandardScheme(); + } + } + + private static class find_next_compact_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, find_next_compact_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new CompactionInfoStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, find_next_compact_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class find_next_compact_resultTupleSchemeFactory implements SchemeFactory { + public find_next_compact_resultTupleScheme getScheme() { + return new find_next_compact_resultTupleScheme(); + } + } + + private static class find_next_compact_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, find_next_compact_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, find_next_compact_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new CompactionInfoStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_compaction_highest_writeid_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_compaction_highest_writeid_args"); + + private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField HIGH_WATERMARK_FIELD_DESC = new org.apache.thrift.protocol.TField("high_watermark", org.apache.thrift.protocol.TType.I64, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new set_compaction_highest_writeid_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_compaction_highest_writeid_argsTupleSchemeFactory()); + } + + private CompactionInfoStruct cr; // required + private long high_watermark; // 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 { + CR((short)1, "cr"), + HIGH_WATERMARK((short)2, "high_watermark"); + + 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: // CR + return CR; + case 2: // HIGH_WATERMARK + return HIGH_WATERMARK; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __HIGH_WATERMARK_ISSET_ID = 0; + private byte __isset_bitfield = 0; + 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.CR, new org.apache.thrift.meta_data.FieldMetaData("cr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionInfoStruct.class))); + tmpMap.put(_Fields.HIGH_WATERMARK, new org.apache.thrift.meta_data.FieldMetaData("high_watermark", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_compaction_highest_writeid_args.class, metaDataMap); + } + + public set_compaction_highest_writeid_args() { + } + + public set_compaction_highest_writeid_args( + CompactionInfoStruct cr, + long high_watermark) + { + this(); + this.cr = cr; + this.high_watermark = high_watermark; + setHigh_watermarkIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public set_compaction_highest_writeid_args(set_compaction_highest_writeid_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); + } + this.high_watermark = other.high_watermark; + } + + public set_compaction_highest_writeid_args deepCopy() { + return new set_compaction_highest_writeid_args(this); + } + + @Override + public void clear() { + this.cr = null; + setHigh_watermarkIsSet(false); + this.high_watermark = 0; + } + + public CompactionInfoStruct getCr() { + return this.cr; + } + + public void setCr(CompactionInfoStruct cr) { + this.cr = cr; + } + + public void unsetCr() { + this.cr = null; + } + + /** Returns true if field cr is set (has been assigned a value) and false otherwise */ + public boolean isSetCr() { + return this.cr != null; + } + + public void setCrIsSet(boolean value) { + if (!value) { + this.cr = null; + } + } + + public long getHigh_watermark() { + return this.high_watermark; + } + + public void setHigh_watermark(long high_watermark) { + this.high_watermark = high_watermark; + setHigh_watermarkIsSet(true); + } + + public void unsetHigh_watermark() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HIGH_WATERMARK_ISSET_ID); + } + + /** Returns true if field high_watermark is set (has been assigned a value) and false otherwise */ + public boolean isSetHigh_watermark() { + return EncodingUtils.testBit(__isset_bitfield, __HIGH_WATERMARK_ISSET_ID); + } + + public void setHigh_watermarkIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HIGH_WATERMARK_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CR: + if (value == null) { + unsetCr(); + } else { + setCr((CompactionInfoStruct)value); + } + break; + + case HIGH_WATERMARK: + if (value == null) { + unsetHigh_watermark(); + } else { + setHigh_watermark((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CR: + return getCr(); + + case HIGH_WATERMARK: + return getHigh_watermark(); + + } + 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 CR: + return isSetCr(); + case HIGH_WATERMARK: + return isSetHigh_watermark(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof set_compaction_highest_writeid_args) + return this.equals((set_compaction_highest_writeid_args)that); + return false; + } + + public boolean equals(set_compaction_highest_writeid_args that) { + if (that == null) + return false; + + boolean this_present_cr = true && this.isSetCr(); + boolean that_present_cr = true && that.isSetCr(); + if (this_present_cr || that_present_cr) { + if (!(this_present_cr && that_present_cr)) + return false; + if (!this.cr.equals(that.cr)) + return false; + } + + boolean this_present_high_watermark = true; + boolean that_present_high_watermark = true; + if (this_present_high_watermark || that_present_high_watermark) { + if (!(this_present_high_watermark && that_present_high_watermark)) + return false; + if (this.high_watermark != that.high_watermark) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_cr = true && (isSetCr()); + list.add(present_cr); + if (present_cr) + list.add(cr); + + boolean present_high_watermark = true; + list.add(present_high_watermark); + if (present_high_watermark) + list.add(high_watermark); + + return list.hashCode(); + } + + @Override + public int compareTo(set_compaction_highest_writeid_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCr()).compareTo(other.isSetCr()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetHigh_watermark()).compareTo(other.isSetHigh_watermark()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetHigh_watermark()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.high_watermark, other.high_watermark); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("set_compaction_highest_writeid_args("); + boolean first = true; + + sb.append("cr:"); + if (this.cr == null) { + sb.append("null"); + } else { + sb.append(this.cr); + } + first = false; + if (!first) sb.append(", "); + sb.append("high_watermark:"); + sb.append(this.high_watermark); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (cr != null) { + cr.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class set_compaction_highest_writeid_argsStandardSchemeFactory implements SchemeFactory { + public set_compaction_highest_writeid_argsStandardScheme getScheme() { + return new set_compaction_highest_writeid_argsStandardScheme(); + } + } + + private static class set_compaction_highest_writeid_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, set_compaction_highest_writeid_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // CR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // HIGH_WATERMARK + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.high_watermark = iprot.readI64(); + struct.setHigh_watermarkIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, set_compaction_highest_writeid_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(HIGH_WATERMARK_FIELD_DESC); + oprot.writeI64(struct.high_watermark); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class set_compaction_highest_writeid_argsTupleSchemeFactory implements SchemeFactory { + public set_compaction_highest_writeid_argsTupleScheme getScheme() { + return new set_compaction_highest_writeid_argsTupleScheme(); + } + } + + private static class set_compaction_highest_writeid_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, set_compaction_highest_writeid_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetCr()) { + optionals.set(0); + } + if (struct.isSetHigh_watermark()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetCr()) { + struct.cr.write(oprot); + } + if (struct.isSetHigh_watermark()) { + oprot.writeI64(struct.high_watermark); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, set_compaction_highest_writeid_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } + if (incoming.get(1)) { + struct.high_watermark = iprot.readI64(); + struct.setHigh_watermarkIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_compaction_highest_writeid_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_compaction_highest_writeid_result"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new set_compaction_highest_writeid_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_compaction_highest_writeid_resultTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + 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) { + 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; + } + } + 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); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_compaction_highest_writeid_result.class, metaDataMap); + } + + public set_compaction_highest_writeid_result() { + } + + /** + * Performs a deep copy on other. + */ + public set_compaction_highest_writeid_result(set_compaction_highest_writeid_result other) { + } + + public set_compaction_highest_writeid_result deepCopy() { + return new set_compaction_highest_writeid_result(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + 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) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof set_compaction_highest_writeid_result) + return this.equals((set_compaction_highest_writeid_result)that); + return false; + } + + public boolean equals(set_compaction_highest_writeid_result that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + return list.hashCode(); + } + + @Override + public int compareTo(set_compaction_highest_writeid_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("set_compaction_highest_writeid_result("); + boolean first = true; + + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class set_compaction_highest_writeid_resultStandardSchemeFactory implements SchemeFactory { + public set_compaction_highest_writeid_resultStandardScheme getScheme() { + return new set_compaction_highest_writeid_resultStandardScheme(); + } + } + + private static class set_compaction_highest_writeid_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, set_compaction_highest_writeid_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, set_compaction_highest_writeid_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class set_compaction_highest_writeid_resultTupleSchemeFactory implements SchemeFactory { + public set_compaction_highest_writeid_resultTupleScheme getScheme() { + return new set_compaction_highest_writeid_resultTupleScheme(); + } + } + + private static class set_compaction_highest_writeid_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, set_compaction_highest_writeid_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, set_compaction_highest_writeid_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_run_as_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_run_as_args"); + + private static final org.apache.thrift.protocol.TField CQ_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cq_id", org.apache.thrift.protocol.TType.I64, (short)1); + private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new set_run_as_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_run_as_argsTupleSchemeFactory()); + } + + private long cq_id; // required + private String user; // 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 { + CQ_ID((short)1, "cq_id"), + USER((short)2, "user"); + + 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: // CQ_ID + return CQ_ID; + case 2: // USER + return USER; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __CQ_ID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + 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.CQ_ID, new org.apache.thrift.meta_data.FieldMetaData("cq_id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_run_as_args.class, metaDataMap); + } + + public set_run_as_args() { + } + + public set_run_as_args( + long cq_id, + String user) + { + this(); + this.cq_id = cq_id; + setCq_idIsSet(true); + this.user = user; + } + + /** + * Performs a deep copy on other. + */ + public set_run_as_args(set_run_as_args other) { + __isset_bitfield = other.__isset_bitfield; + this.cq_id = other.cq_id; + if (other.isSetUser()) { + this.user = other.user; + } + } + + public set_run_as_args deepCopy() { + return new set_run_as_args(this); + } + + @Override + public void clear() { + setCq_idIsSet(false); + this.cq_id = 0; + this.user = null; + } + + public long getCq_id() { + return this.cq_id; + } + + public void setCq_id(long cq_id) { + this.cq_id = cq_id; + setCq_idIsSet(true); + } + + public void unsetCq_id() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CQ_ID_ISSET_ID); + } + + /** Returns true if field cq_id is set (has been assigned a value) and false otherwise */ + public boolean isSetCq_id() { + return EncodingUtils.testBit(__isset_bitfield, __CQ_ID_ISSET_ID); + } + + public void setCq_idIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CQ_ID_ISSET_ID, value); + } + + public String getUser() { + return this.user; + } + + public void setUser(String user) { + this.user = user; + } + + public void unsetUser() { + this.user = null; + } + + /** Returns true if field user is set (has been assigned a value) and false otherwise */ + public boolean isSetUser() { + return this.user != null; + } + + public void setUserIsSet(boolean value) { + if (!value) { + this.user = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CQ_ID: + if (value == null) { + unsetCq_id(); + } else { + setCq_id((Long)value); + } + break; + + case USER: + if (value == null) { + unsetUser(); + } else { + setUser((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CQ_ID: + return getCq_id(); + + case USER: + return getUser(); + + } + 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 CQ_ID: + return isSetCq_id(); + case USER: + return isSetUser(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof set_run_as_args) + return this.equals((set_run_as_args)that); + return false; + } + + public boolean equals(set_run_as_args that) { + if (that == null) + return false; + + boolean this_present_cq_id = true; + boolean that_present_cq_id = true; + if (this_present_cq_id || that_present_cq_id) { + if (!(this_present_cq_id && that_present_cq_id)) + return false; + if (this.cq_id != that.cq_id) + return false; + } + + boolean this_present_user = true && this.isSetUser(); + boolean that_present_user = true && that.isSetUser(); + if (this_present_user || that_present_user) { + if (!(this_present_user && that_present_user)) + return false; + if (!this.user.equals(that.user)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_cq_id = true; + list.add(present_cq_id); + if (present_cq_id) + list.add(cq_id); + + boolean present_user = true && (isSetUser()); + list.add(present_user); + if (present_user) + list.add(user); + + return list.hashCode(); + } + + @Override + public int compareTo(set_run_as_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCq_id()).compareTo(other.isSetCq_id()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCq_id()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cq_id, other.cq_id); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("set_run_as_args("); + boolean first = true; + + sb.append("cq_id:"); + sb.append(this.cq_id); + first = false; + if (!first) sb.append(", "); + sb.append("user:"); + if (this.user == null) { + sb.append("null"); + } else { + sb.append(this.user); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class set_run_as_argsStandardSchemeFactory implements SchemeFactory { + public set_run_as_argsStandardScheme getScheme() { + return new set_run_as_argsStandardScheme(); + } + } + + private static class set_run_as_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, set_run_as_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // CQ_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.cq_id = iprot.readI64(); + struct.setCq_idIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, set_run_as_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(CQ_ID_FIELD_DESC); + oprot.writeI64(struct.cq_id); + oprot.writeFieldEnd(); + if (struct.user != null) { + oprot.writeFieldBegin(USER_FIELD_DESC); + oprot.writeString(struct.user); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class set_run_as_argsTupleSchemeFactory implements SchemeFactory { + public set_run_as_argsTupleScheme getScheme() { + return new set_run_as_argsTupleScheme(); + } + } + + private static class set_run_as_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, set_run_as_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetCq_id()) { + optionals.set(0); + } + if (struct.isSetUser()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetCq_id()) { + oprot.writeI64(struct.cq_id); + } + if (struct.isSetUser()) { + oprot.writeString(struct.user); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, set_run_as_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.cq_id = iprot.readI64(); + struct.setCq_idIsSet(true); + } + if (incoming.get(1)) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_run_as_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_run_as_result"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new set_run_as_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_run_as_resultTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + 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) { + 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; + } + } + 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); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_run_as_result.class, metaDataMap); + } + + public set_run_as_result() { + } + + /** + * Performs a deep copy on other. + */ + public set_run_as_result(set_run_as_result other) { + } + + public set_run_as_result deepCopy() { + return new set_run_as_result(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + 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) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof set_run_as_result) + return this.equals((set_run_as_result)that); + return false; + } + + public boolean equals(set_run_as_result that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + return list.hashCode(); + } + + @Override + public int compareTo(set_run_as_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("set_run_as_result("); + boolean first = true; + + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class set_run_as_resultStandardSchemeFactory implements SchemeFactory { + public set_run_as_resultStandardScheme getScheme() { + return new set_run_as_resultStandardScheme(); + } + } + + private static class set_run_as_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, set_run_as_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, set_run_as_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class set_run_as_resultTupleSchemeFactory implements SchemeFactory { + public set_run_as_resultTupleScheme getScheme() { + return new set_run_as_resultTupleScheme(); + } + } + + private static class set_run_as_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, set_run_as_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, set_run_as_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_columns_with_stats_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("find_columns_with_stats_args"); + + private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new find_columns_with_stats_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_columns_with_stats_argsTupleSchemeFactory()); + } + + private CompactionInfoStruct cr; // 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 { + CR((short)1, "cr"); + + 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: // CR + return CR; + 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.CR, new org.apache.thrift.meta_data.FieldMetaData("cr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionInfoStruct.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_columns_with_stats_args.class, metaDataMap); + } + + public find_columns_with_stats_args() { + } + + public find_columns_with_stats_args( + CompactionInfoStruct cr) + { + this(); + this.cr = cr; + } + + /** + * Performs a deep copy on other. + */ + public find_columns_with_stats_args(find_columns_with_stats_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); + } + } + + public find_columns_with_stats_args deepCopy() { + return new find_columns_with_stats_args(this); + } + + @Override + public void clear() { + this.cr = null; + } + + public CompactionInfoStruct getCr() { + return this.cr; + } + + public void setCr(CompactionInfoStruct cr) { + this.cr = cr; + } + + public void unsetCr() { + this.cr = null; + } + + /** Returns true if field cr is set (has been assigned a value) and false otherwise */ + public boolean isSetCr() { + return this.cr != null; + } + + public void setCrIsSet(boolean value) { + if (!value) { + this.cr = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CR: + if (value == null) { + unsetCr(); + } else { + setCr((CompactionInfoStruct)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CR: + return getCr(); + + } + 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 CR: + return isSetCr(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof find_columns_with_stats_args) + return this.equals((find_columns_with_stats_args)that); + return false; + } + + public boolean equals(find_columns_with_stats_args that) { + if (that == null) + return false; + + boolean this_present_cr = true && this.isSetCr(); + boolean that_present_cr = true && that.isSetCr(); + if (this_present_cr || that_present_cr) { + if (!(this_present_cr && that_present_cr)) + return false; + if (!this.cr.equals(that.cr)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_cr = true && (isSetCr()); + list.add(present_cr); + if (present_cr) + list.add(cr); + + return list.hashCode(); + } + + @Override + public int compareTo(find_columns_with_stats_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCr()).compareTo(other.isSetCr()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("find_columns_with_stats_args("); + boolean first = true; + + sb.append("cr:"); + if (this.cr == null) { + sb.append("null"); + } else { + sb.append(this.cr); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (cr != null) { + cr.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class find_columns_with_stats_argsStandardSchemeFactory implements SchemeFactory { + public find_columns_with_stats_argsStandardScheme getScheme() { + return new find_columns_with_stats_argsStandardScheme(); + } + } + + private static class find_columns_with_stats_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // CR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class find_columns_with_stats_argsTupleSchemeFactory implements SchemeFactory { + public find_columns_with_stats_argsTupleScheme getScheme() { + return new find_columns_with_stats_argsTupleScheme(); + } + } + + private static class find_columns_with_stats_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetCr()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetCr()) { + struct.cr.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_columns_with_stats_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("find_columns_with_stats_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new find_columns_with_stats_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_columns_with_stats_resultTupleSchemeFactory()); + } + + private List success; // 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"); + + 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; + 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.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(find_columns_with_stats_result.class, metaDataMap); + } + + public find_columns_with_stats_result() { + } + + public find_columns_with_stats_result( + List success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public find_columns_with_stats_result(find_columns_with_stats_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success); + this.success = __this__success; + } + } + + public find_columns_with_stats_result deepCopy() { + return new find_columns_with_stats_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof find_columns_with_stats_result) + return this.equals((find_columns_with_stats_result)that); + return false; + } + + public boolean equals(find_columns_with_stats_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; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + return list.hashCode(); + } + + @Override + public int compareTo(find_columns_with_stats_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("find_columns_with_stats_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class find_columns_with_stats_resultStandardSchemeFactory implements SchemeFactory { + public find_columns_with_stats_resultStandardScheme getScheme() { + return new find_columns_with_stats_resultStandardScheme(); + } + } + + private static class find_columns_with_stats_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_stats_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1582 = iprot.readListBegin(); + struct.success = new ArrayList(_list1582.size); + String _elem1583; + for (int _i1584 = 0; _i1584 < _list1582.size; ++_i1584) + { + _elem1583 = iprot.readString(); + struct.success.add(_elem1583); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_stats_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1585 : struct.success) + { + oprot.writeString(_iter1585); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class find_columns_with_stats_resultTupleSchemeFactory implements SchemeFactory { + public find_columns_with_stats_resultTupleScheme getScheme() { + return new find_columns_with_stats_resultTupleScheme(); + } + } + + private static class find_columns_with_stats_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter1586 : struct.success) + { + oprot.writeString(_iter1586); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list1587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1587.size); + String _elem1588; + for (int _i1589 = 0; _i1589 < _list1587.size; ++_i1589) + { + _elem1588 = iprot.readString(); + struct.success.add(_elem1588); + } + } + struct.setSuccessIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_cleaned_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_cleaned_args"); + + private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new mark_cleaned_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_cleaned_argsTupleSchemeFactory()); + } + + private CompactionInfoStruct cr; // 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 { + CR((short)1, "cr"); + + 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: // CR + return CR; + 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.CR, new org.apache.thrift.meta_data.FieldMetaData("cr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionInfoStruct.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_args.class, metaDataMap); + } + + public mark_cleaned_args() { + } + + public mark_cleaned_args( + CompactionInfoStruct cr) + { + this(); + this.cr = cr; + } + + /** + * Performs a deep copy on other. + */ + public mark_cleaned_args(mark_cleaned_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); + } + } + + public mark_cleaned_args deepCopy() { + return new mark_cleaned_args(this); + } + + @Override + public void clear() { + this.cr = null; + } + + public CompactionInfoStruct getCr() { + return this.cr; + } + + public void setCr(CompactionInfoStruct cr) { + this.cr = cr; + } + + public void unsetCr() { + this.cr = null; + } + + /** Returns true if field cr is set (has been assigned a value) and false otherwise */ + public boolean isSetCr() { + return this.cr != null; + } + + public void setCrIsSet(boolean value) { + if (!value) { + this.cr = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CR: + if (value == null) { + unsetCr(); + } else { + setCr((CompactionInfoStruct)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CR: + return getCr(); + + } + 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 CR: + return isSetCr(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof mark_cleaned_args) + return this.equals((mark_cleaned_args)that); + return false; + } + + public boolean equals(mark_cleaned_args that) { + if (that == null) + return false; + + boolean this_present_cr = true && this.isSetCr(); + boolean that_present_cr = true && that.isSetCr(); + if (this_present_cr || that_present_cr) { + if (!(this_present_cr && that_present_cr)) + return false; + if (!this.cr.equals(that.cr)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_cr = true && (isSetCr()); + list.add(present_cr); + if (present_cr) + list.add(cr); + + return list.hashCode(); + } + + @Override + public int compareTo(mark_cleaned_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCr()).compareTo(other.isSetCr()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("mark_cleaned_args("); boolean first = true; - sb.append("dbName:"); - if (this.dbName == null) { - sb.append("null"); - } else { - sb.append(this.dbName); - } - first = false; - if (!first) sb.append(", "); - sb.append("tableName:"); - if (this.tableName == null) { + sb.append("cr:"); + if (this.cr == null) { sb.append("null"); } else { - sb.append(this.tableName); + sb.append(this.cr); } first = false; - if (!first) sb.append(", "); - sb.append("txnId:"); - sb.append(this.txnId); - first = false; sb.append(")"); return sb.toString(); } @@ -244122,6 +251430,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (cr != null) { + cr.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -244134,23 +251445,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class heartbeat_lock_materialization_rebuild_argsStandardSchemeFactory implements SchemeFactory { - public heartbeat_lock_materialization_rebuild_argsStandardScheme getScheme() { - return new heartbeat_lock_materialization_rebuild_argsStandardScheme(); + private static class mark_cleaned_argsStandardSchemeFactory implements SchemeFactory { + public mark_cleaned_argsStandardScheme getScheme() { + return new mark_cleaned_argsStandardScheme(); } } - private static class heartbeat_lock_materialization_rebuild_argsStandardScheme extends StandardScheme { + private static class mark_cleaned_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_cleaned_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -244160,26 +251469,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_mate break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TXN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.txnId = iprot.readI64(); - struct.setTxnIdIsSet(true); + case 1: // CR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -244193,99 +251487,72 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_mate struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_cleaned_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbName != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.dbName); - oprot.writeFieldEnd(); - } - if (struct.tableName != null) { - oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.tableName); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(TXN_ID_FIELD_DESC); - oprot.writeI64(struct.txnId); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class heartbeat_lock_materialization_rebuild_argsTupleSchemeFactory implements SchemeFactory { - public heartbeat_lock_materialization_rebuild_argsTupleScheme getScheme() { - return new heartbeat_lock_materialization_rebuild_argsTupleScheme(); + private static class mark_cleaned_argsTupleSchemeFactory implements SchemeFactory { + public mark_cleaned_argsTupleScheme getScheme() { + return new mark_cleaned_argsTupleScheme(); } } - private static class heartbeat_lock_materialization_rebuild_argsTupleScheme extends TupleScheme { + private static class mark_cleaned_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbName()) { + if (struct.isSetCr()) { optionals.set(0); } - if (struct.isSetTableName()) { - optionals.set(1); - } - if (struct.isSetTxnId()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbName()) { - oprot.writeString(struct.dbName); - } - if (struct.isSetTableName()) { - oprot.writeString(struct.tableName); - } - if (struct.isSetTxnId()) { - oprot.writeI64(struct.txnId); + oprot.writeBitSet(optionals, 1); + if (struct.isSetCr()) { + struct.cr.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); - } - if (incoming.get(1)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(2)) { - struct.txnId = iprot.readI64(); - struct.setTxnIdIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_lock_materialization_rebuild_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_lock_materialization_rebuild_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_cleaned_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_cleaned_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new heartbeat_lock_materialization_rebuild_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_lock_materialization_rebuild_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_cleaned_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_cleaned_resultTupleSchemeFactory()); } - private boolean success; // required + private MetaException o1; // 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"); private static final Map byName = new HashMap(); @@ -244300,8 +251567,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_mater */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // O1 + return O1; default: return null; } @@ -244342,75 +251609,73 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; 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.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_lock_materialization_rebuild_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_result.class, metaDataMap); } - public heartbeat_lock_materialization_rebuild_result() { + public mark_cleaned_result() { } - public heartbeat_lock_materialization_rebuild_result( - boolean success) + public mark_cleaned_result( + MetaException o1) { this(); - this.success = success; - setSuccessIsSet(true); + this.o1 = o1; } /** * Performs a deep copy on other. */ - public heartbeat_lock_materialization_rebuild_result(heartbeat_lock_materialization_rebuild_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public mark_cleaned_result(mark_cleaned_result other) { + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } } - public heartbeat_lock_materialization_rebuild_result deepCopy() { - return new heartbeat_lock_materialization_rebuild_result(this); + public mark_cleaned_result deepCopy() { + return new mark_cleaned_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.o1 = null; } - public boolean isSuccess() { - return this.success; + public MetaException getO1() { + return this.o1; } - public void setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public void setO1(MetaException o1) { + this.o1 = o1; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetO1() { + this.o1 = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((Boolean)value); + setO1((MetaException)value); } break; @@ -244419,8 +251684,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return isSuccess(); + case O1: + return getO1(); } throw new IllegalStateException(); @@ -244433,8 +251698,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case O1: + return isSetO1(); } throw new IllegalStateException(); } @@ -244443,21 +251708,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_lock_materialization_rebuild_result) - return this.equals((heartbeat_lock_materialization_rebuild_result)that); + if (that instanceof mark_cleaned_result) + return this.equals((mark_cleaned_result)that); return false; } - public boolean equals(heartbeat_lock_materialization_rebuild_result that) { + public boolean equals(mark_cleaned_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) + 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.success != that.success) + if (!this.o1.equals(that.o1)) return false; } @@ -244468,28 +251733,28 @@ public boolean equals(heartbeat_lock_materialization_rebuild_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); return list.hashCode(); } @Override - public int compareTo(heartbeat_lock_materialization_rebuild_result other) { + public int compareTo(mark_cleaned_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } @@ -244511,11 +251776,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_lock_materialization_rebuild_result("); + StringBuilder sb = new StringBuilder("mark_cleaned_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } first = false; sb.append(")"); return sb.toString(); @@ -244536,23 +251805,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class heartbeat_lock_materialization_rebuild_resultStandardSchemeFactory implements SchemeFactory { - public heartbeat_lock_materialization_rebuild_resultStandardScheme getScheme() { - return new heartbeat_lock_materialization_rebuild_resultStandardScheme(); + private static class mark_cleaned_resultStandardSchemeFactory implements SchemeFactory { + public mark_cleaned_resultStandardScheme getScheme() { + return new mark_cleaned_resultStandardScheme(); } } - private static class heartbeat_lock_materialization_rebuild_resultStandardScheme extends StandardScheme { + private static class mark_cleaned_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_cleaned_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -244562,10 +251829,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_mate break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -244579,13 +251847,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_lock_mate struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_cleaned_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -244594,56 +251862,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_lock_mat } - private static class heartbeat_lock_materialization_rebuild_resultTupleSchemeFactory implements SchemeFactory { - public heartbeat_lock_materialization_rebuild_resultTupleScheme getScheme() { - return new heartbeat_lock_materialization_rebuild_resultTupleScheme(); + private static class mark_cleaned_resultTupleSchemeFactory implements SchemeFactory { + public mark_cleaned_resultTupleScheme getScheme() { + return new mark_cleaned_resultTupleScheme(); } } - private static class heartbeat_lock_materialization_rebuild_resultTupleScheme extends TupleScheme { + private static class mark_cleaned_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + if (struct.isSetO1()) { + struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_materialization_rebuild_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_runtime_stats_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_runtime_stats_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_compacted_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_compacted_args"); - private static final org.apache.thrift.protocol.TField STAT_FIELD_DESC = new org.apache.thrift.protocol.TField("stat", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_runtime_stats_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_runtime_stats_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_compacted_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_compacted_argsTupleSchemeFactory()); } - private RuntimeStat stat; // required + private CompactionInfoStruct cr; // 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 { - STAT((short)1, "stat"); + CR((short)1, "cr"); private static final Map byName = new HashMap(); @@ -244658,8 +251927,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_lock_mater */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // STAT - return STAT; + case 1: // CR + return CR; default: return null; } @@ -244703,70 +251972,70 @@ public String getFieldName() { 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.STAT, new org.apache.thrift.meta_data.FieldMetaData("stat", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RuntimeStat.class))); + tmpMap.put(_Fields.CR, new org.apache.thrift.meta_data.FieldMetaData("cr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionInfoStruct.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_runtime_stats_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_args.class, metaDataMap); } - public add_runtime_stats_args() { + public mark_compacted_args() { } - public add_runtime_stats_args( - RuntimeStat stat) + public mark_compacted_args( + CompactionInfoStruct cr) { this(); - this.stat = stat; + this.cr = cr; } /** * Performs a deep copy on other. */ - public add_runtime_stats_args(add_runtime_stats_args other) { - if (other.isSetStat()) { - this.stat = new RuntimeStat(other.stat); + public mark_compacted_args(mark_compacted_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } } - public add_runtime_stats_args deepCopy() { - return new add_runtime_stats_args(this); + public mark_compacted_args deepCopy() { + return new mark_compacted_args(this); } @Override public void clear() { - this.stat = null; + this.cr = null; } - public RuntimeStat getStat() { - return this.stat; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setStat(RuntimeStat stat) { - this.stat = stat; + public void setCr(CompactionInfoStruct cr) { + this.cr = cr; } - public void unsetStat() { - this.stat = null; + public void unsetCr() { + this.cr = null; } - /** Returns true if field stat is set (has been assigned a value) and false otherwise */ - public boolean isSetStat() { - return this.stat != null; + /** Returns true if field cr is set (has been assigned a value) and false otherwise */ + public boolean isSetCr() { + return this.cr != null; } - public void setStatIsSet(boolean value) { + public void setCrIsSet(boolean value) { if (!value) { - this.stat = null; + this.cr = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case STAT: + case CR: if (value == null) { - unsetStat(); + unsetCr(); } else { - setStat((RuntimeStat)value); + setCr((CompactionInfoStruct)value); } break; @@ -244775,8 +252044,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case STAT: - return getStat(); + case CR: + return getCr(); } throw new IllegalStateException(); @@ -244789,8 +252058,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case STAT: - return isSetStat(); + case CR: + return isSetCr(); } throw new IllegalStateException(); } @@ -244799,21 +252068,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_runtime_stats_args) - return this.equals((add_runtime_stats_args)that); + if (that instanceof mark_compacted_args) + return this.equals((mark_compacted_args)that); return false; } - public boolean equals(add_runtime_stats_args that) { + public boolean equals(mark_compacted_args that) { if (that == null) return false; - boolean this_present_stat = true && this.isSetStat(); - boolean that_present_stat = true && that.isSetStat(); - if (this_present_stat || that_present_stat) { - if (!(this_present_stat && that_present_stat)) + boolean this_present_cr = true && this.isSetCr(); + boolean that_present_cr = true && that.isSetCr(); + if (this_present_cr || that_present_cr) { + if (!(this_present_cr && that_present_cr)) return false; - if (!this.stat.equals(that.stat)) + if (!this.cr.equals(that.cr)) return false; } @@ -244824,28 +252093,28 @@ public boolean equals(add_runtime_stats_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_stat = true && (isSetStat()); - list.add(present_stat); - if (present_stat) - list.add(stat); + boolean present_cr = true && (isSetCr()); + list.add(present_cr); + if (present_cr) + list.add(cr); return list.hashCode(); } @Override - public int compareTo(add_runtime_stats_args other) { + public int compareTo(mark_compacted_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetStat()).compareTo(other.isSetStat()); + lastComparison = Boolean.valueOf(isSetCr()).compareTo(other.isSetCr()); if (lastComparison != 0) { return lastComparison; } - if (isSetStat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stat, other.stat); + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); if (lastComparison != 0) { return lastComparison; } @@ -244867,14 +252136,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_runtime_stats_args("); + StringBuilder sb = new StringBuilder("mark_compacted_args("); boolean first = true; - sb.append("stat:"); - if (this.stat == null) { + sb.append("cr:"); + if (this.cr == null) { sb.append("null"); } else { - sb.append(this.stat); + sb.append(this.cr); } first = false; sb.append(")"); @@ -244884,8 +252153,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (stat != null) { - stat.validate(); + if (cr != null) { + cr.validate(); } } @@ -244905,15 +252174,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_runtime_stats_argsStandardSchemeFactory implements SchemeFactory { - public add_runtime_stats_argsStandardScheme getScheme() { - return new add_runtime_stats_argsStandardScheme(); + private static class mark_compacted_argsStandardSchemeFactory implements SchemeFactory { + public mark_compacted_argsStandardScheme getScheme() { + return new mark_compacted_argsStandardScheme(); } } - private static class add_runtime_stats_argsStandardScheme extends StandardScheme { + private static class mark_compacted_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_compacted_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -244923,11 +252192,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_runtime_stats_a break; } switch (schemeField.id) { - case 1: // STAT + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.stat = new RuntimeStat(); - struct.stat.read(iprot); - struct.setStatIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -244941,13 +252210,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_runtime_stats_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_compacted_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.stat != null) { - oprot.writeFieldBegin(STAT_FIELD_DESC); - struct.stat.write(oprot); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -244956,50 +252225,50 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_runtime_stats_ } - private static class add_runtime_stats_argsTupleSchemeFactory implements SchemeFactory { - public add_runtime_stats_argsTupleScheme getScheme() { - return new add_runtime_stats_argsTupleScheme(); + private static class mark_compacted_argsTupleSchemeFactory implements SchemeFactory { + public mark_compacted_argsTupleScheme getScheme() { + return new mark_compacted_argsTupleScheme(); } } - private static class add_runtime_stats_argsTupleScheme extends TupleScheme { + private static class mark_compacted_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_compacted_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetStat()) { + if (struct.isSetCr()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetStat()) { - struct.stat.write(oprot); + if (struct.isSetCr()) { + struct.cr.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_compacted_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.stat = new RuntimeStat(); - struct.stat.read(iprot); - struct.setStatIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_runtime_stats_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_runtime_stats_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_compacted_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_compacted_result"); 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_runtime_stats_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_runtime_stats_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_compacted_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_compacted_resultTupleSchemeFactory()); } private MetaException o1; // required @@ -245069,13 +252338,13 @@ public String getFieldName() { 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_runtime_stats_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_result.class, metaDataMap); } - public add_runtime_stats_result() { + public mark_compacted_result() { } - public add_runtime_stats_result( + public mark_compacted_result( MetaException o1) { this(); @@ -245085,14 +252354,14 @@ public add_runtime_stats_result( /** * Performs a deep copy on other. */ - public add_runtime_stats_result(add_runtime_stats_result other) { + public mark_compacted_result(mark_compacted_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public add_runtime_stats_result deepCopy() { - return new add_runtime_stats_result(this); + public mark_compacted_result deepCopy() { + return new mark_compacted_result(this); } @Override @@ -245162,12 +252431,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_runtime_stats_result) - return this.equals((add_runtime_stats_result)that); + if (that instanceof mark_compacted_result) + return this.equals((mark_compacted_result)that); return false; } - public boolean equals(add_runtime_stats_result that) { + public boolean equals(mark_compacted_result that) { if (that == null) return false; @@ -245196,7 +252465,7 @@ public int hashCode() { } @Override - public int compareTo(add_runtime_stats_result other) { + public int compareTo(mark_compacted_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -245230,7 +252499,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_runtime_stats_result("); + StringBuilder sb = new StringBuilder("mark_compacted_result("); boolean first = true; sb.append("o1:"); @@ -245265,15 +252534,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_runtime_stats_resultStandardSchemeFactory implements SchemeFactory { - public add_runtime_stats_resultStandardScheme getScheme() { - return new add_runtime_stats_resultStandardScheme(); + private static class mark_compacted_resultStandardSchemeFactory implements SchemeFactory { + public mark_compacted_resultStandardScheme getScheme() { + return new mark_compacted_resultStandardScheme(); } } - private static class add_runtime_stats_resultStandardScheme extends StandardScheme { + private static class mark_compacted_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_compacted_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -245301,7 +252570,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_runtime_stats_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_compacted_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -245316,16 +252585,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_runtime_stats_ } - private static class add_runtime_stats_resultTupleSchemeFactory implements SchemeFactory { - public add_runtime_stats_resultTupleScheme getScheme() { - return new add_runtime_stats_resultTupleScheme(); + private static class mark_compacted_resultTupleSchemeFactory implements SchemeFactory { + public mark_compacted_resultTupleScheme getScheme() { + return new mark_compacted_resultTupleScheme(); } } - private static class add_runtime_stats_resultTupleScheme extends TupleScheme { + private static class mark_compacted_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_compacted_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -245338,7 +252607,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_compacted_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -245351,22 +252620,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_re } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_runtime_stats_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_runtime_stats_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_failed_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_failed_args"); - private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_runtime_stats_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_runtime_stats_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_failed_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_failed_argsTupleSchemeFactory()); } - private GetRuntimeStatsRequest rqst; // required + private CompactionInfoStruct cr; // 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 { - RQST((short)1, "rqst"); + CR((short)1, "cr"); private static final Map byName = new HashMap(); @@ -245381,8 +252650,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_runtime_stats_re */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // RQST - return RQST; + case 1: // CR + return CR; default: return null; } @@ -245426,70 +252695,70 @@ public String getFieldName() { 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.RQST, new org.apache.thrift.meta_data.FieldMetaData("rqst", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetRuntimeStatsRequest.class))); + tmpMap.put(_Fields.CR, new org.apache.thrift.meta_data.FieldMetaData("cr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionInfoStruct.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_runtime_stats_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_args.class, metaDataMap); } - public get_runtime_stats_args() { + public mark_failed_args() { } - public get_runtime_stats_args( - GetRuntimeStatsRequest rqst) + public mark_failed_args( + CompactionInfoStruct cr) { this(); - this.rqst = rqst; + this.cr = cr; } /** * Performs a deep copy on other. */ - public get_runtime_stats_args(get_runtime_stats_args other) { - if (other.isSetRqst()) { - this.rqst = new GetRuntimeStatsRequest(other.rqst); + public mark_failed_args(mark_failed_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } } - public get_runtime_stats_args deepCopy() { - return new get_runtime_stats_args(this); + public mark_failed_args deepCopy() { + return new mark_failed_args(this); } @Override public void clear() { - this.rqst = null; + this.cr = null; } - public GetRuntimeStatsRequest getRqst() { - return this.rqst; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setRqst(GetRuntimeStatsRequest rqst) { - this.rqst = rqst; + public void setCr(CompactionInfoStruct cr) { + this.cr = cr; } - public void unsetRqst() { - this.rqst = null; + public void unsetCr() { + this.cr = null; } - /** Returns true if field rqst is set (has been assigned a value) and false otherwise */ - public boolean isSetRqst() { - return this.rqst != null; + /** Returns true if field cr is set (has been assigned a value) and false otherwise */ + public boolean isSetCr() { + return this.cr != null; } - public void setRqstIsSet(boolean value) { + public void setCrIsSet(boolean value) { if (!value) { - this.rqst = null; + this.cr = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case RQST: + case CR: if (value == null) { - unsetRqst(); + unsetCr(); } else { - setRqst((GetRuntimeStatsRequest)value); + setCr((CompactionInfoStruct)value); } break; @@ -245498,8 +252767,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case RQST: - return getRqst(); + case CR: + return getCr(); } throw new IllegalStateException(); @@ -245512,8 +252781,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case RQST: - return isSetRqst(); + case CR: + return isSetCr(); } throw new IllegalStateException(); } @@ -245522,21 +252791,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_runtime_stats_args) - return this.equals((get_runtime_stats_args)that); + if (that instanceof mark_failed_args) + return this.equals((mark_failed_args)that); return false; } - public boolean equals(get_runtime_stats_args that) { + public boolean equals(mark_failed_args that) { if (that == null) return false; - boolean this_present_rqst = true && this.isSetRqst(); - boolean that_present_rqst = true && that.isSetRqst(); - if (this_present_rqst || that_present_rqst) { - if (!(this_present_rqst && that_present_rqst)) + boolean this_present_cr = true && this.isSetCr(); + boolean that_present_cr = true && that.isSetCr(); + if (this_present_cr || that_present_cr) { + if (!(this_present_cr && that_present_cr)) return false; - if (!this.rqst.equals(that.rqst)) + if (!this.cr.equals(that.cr)) return false; } @@ -245547,28 +252816,28 @@ public boolean equals(get_runtime_stats_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); - if (present_rqst) - list.add(rqst); + boolean present_cr = true && (isSetCr()); + list.add(present_cr); + if (present_cr) + list.add(cr); return list.hashCode(); } @Override - public int compareTo(get_runtime_stats_args other) { + public int compareTo(mark_failed_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetCr()).compareTo(other.isSetCr()); if (lastComparison != 0) { return lastComparison; } - if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); if (lastComparison != 0) { return lastComparison; } @@ -245590,14 +252859,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_runtime_stats_args("); + StringBuilder sb = new StringBuilder("mark_failed_args("); boolean first = true; - sb.append("rqst:"); - if (this.rqst == null) { + sb.append("cr:"); + if (this.cr == null) { sb.append("null"); } else { - sb.append(this.rqst); + sb.append(this.cr); } first = false; sb.append(")"); @@ -245607,8 +252876,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (rqst != null) { - rqst.validate(); + if (cr != null) { + cr.validate(); } } @@ -245628,15 +252897,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_runtime_stats_argsStandardSchemeFactory implements SchemeFactory { - public get_runtime_stats_argsStandardScheme getScheme() { - return new get_runtime_stats_argsStandardScheme(); + private static class mark_failed_argsStandardSchemeFactory implements SchemeFactory { + public mark_failed_argsStandardScheme getScheme() { + return new mark_failed_argsStandardScheme(); } } - private static class get_runtime_stats_argsStandardScheme extends StandardScheme { + private static class mark_failed_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_failed_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -245646,11 +252915,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_a break; } switch (schemeField.id) { - case 1: // RQST + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new GetRuntimeStatsRequest(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -245664,13 +252933,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_failed_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.rqst != null) { - oprot.writeFieldBegin(RQST_FIELD_DESC); - struct.rqst.write(oprot); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -245679,59 +252948,56 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_ } - private static class get_runtime_stats_argsTupleSchemeFactory implements SchemeFactory { - public get_runtime_stats_argsTupleScheme getScheme() { - return new get_runtime_stats_argsTupleScheme(); + private static class mark_failed_argsTupleSchemeFactory implements SchemeFactory { + public mark_failed_argsTupleScheme getScheme() { + return new mark_failed_argsTupleScheme(); } } - private static class get_runtime_stats_argsTupleScheme extends TupleScheme { + private static class mark_failed_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_failed_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRqst()) { + if (struct.isSetCr()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetRqst()) { - struct.rqst.write(oprot); + if (struct.isSetCr()) { + struct.cr.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_failed_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.rqst = new GetRuntimeStatsRequest(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_runtime_stats_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_runtime_stats_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_failed_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_failed_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_runtime_stats_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_runtime_stats_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_failed_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_failed_resultTupleSchemeFactory()); } - private List success; // required private MetaException o1; // 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"); private static final Map byName = new HashMap(); @@ -245747,8 +253013,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_ar */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; default: @@ -245794,91 +253058,40 @@ public String getFieldName() { 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RuntimeStat.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_runtime_stats_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_result.class, metaDataMap); } - public get_runtime_stats_result() { + public mark_failed_result() { } - public get_runtime_stats_result( - List success, + public mark_failed_result( MetaException o1) { this(); - this.success = success; this.o1 = o1; } /** * Performs a deep copy on other. */ - public get_runtime_stats_result(get_runtime_stats_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (RuntimeStat other_element : other.success) { - __this__success.add(new RuntimeStat(other_element)); - } - this.success = __this__success; - } + public mark_failed_result(mark_failed_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public get_runtime_stats_result deepCopy() { - return new get_runtime_stats_result(this); + public mark_failed_result deepCopy() { + return new mark_failed_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(RuntimeStat elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public void setSuccess(List 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 MetaException getO1() { return this.o1; } @@ -245904,14 +253117,6 @@ public void setO1IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - case O1: if (value == null) { unsetO1(); @@ -245925,9 +253130,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); @@ -245942,8 +253144,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); } @@ -245954,24 +253154,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_runtime_stats_result) - return this.equals((get_runtime_stats_result)that); + if (that instanceof mark_failed_result) + return this.equals((mark_failed_result)that); return false; } - public boolean equals(get_runtime_stats_result that) { + public boolean equals(mark_failed_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) { @@ -245988,11 +253179,6 @@ public boolean equals(get_runtime_stats_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -246002,23 +253188,13 @@ public int hashCode() { } @Override - public int compareTo(get_runtime_stats_result other) { + public int compareTo(mark_failed_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -246046,17 +253222,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_runtime_stats_result("); + StringBuilder sb = new StringBuilder("mark_failed_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"); @@ -246089,15 +253257,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_runtime_stats_resultStandardSchemeFactory implements SchemeFactory { - public get_runtime_stats_resultStandardScheme getScheme() { - return new get_runtime_stats_resultStandardScheme(); + private static class mark_failed_resultStandardSchemeFactory implements SchemeFactory { + public mark_failed_resultStandardScheme getScheme() { + return new mark_failed_resultStandardScheme(); } } - private static class get_runtime_stats_resultStandardScheme extends StandardScheme { + private static class mark_failed_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_failed_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -246107,25 +253275,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_r break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1564 = iprot.readListBegin(); - struct.success = new ArrayList(_list1564.size); - RuntimeStat _elem1565; - for (int _i1566 = 0; _i1566 < _list1564.size; ++_i1566) - { - _elem1565 = new RuntimeStat(); - _elem1565.read(iprot); - struct.success.add(_elem1565); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o1 = new MetaException(); @@ -246144,22 +253293,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_failed_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (RuntimeStat _iter1567 : struct.success) - { - _iter1567.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -246171,58 +253308,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_ } - private static class get_runtime_stats_resultTupleSchemeFactory implements SchemeFactory { - public get_runtime_stats_resultTupleScheme getScheme() { - return new get_runtime_stats_resultTupleScheme(); + private static class mark_failed_resultTupleSchemeFactory implements SchemeFactory { + public mark_failed_resultTupleScheme getScheme() { + return new mark_failed_resultTupleScheme(); } } - private static class get_runtime_stats_resultTupleScheme extends TupleScheme { + private static class mark_failed_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_failed_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetO1()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1568 : struct.success) - { - _iter1568.write(oprot); - } - } + optionals.set(0); } + oprot.writeBitSet(optionals, 1); if (struct.isSetO1()) { struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_failed_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1569.size); - RuntimeStat _elem1570; - for (int _i1571 = 0; _i1571 < _list1569.size; ++_i1571) - { - _elem1570 = new RuntimeStat(); - _elem1570.read(iprot); - struct.success.add(_elem1570); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); @@ -246232,22 +253343,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_re } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_specs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_specs_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_hadoop_jobid_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_hadoop_jobid_args"); - private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField JOB_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("jobId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField CQ_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cq_id", org.apache.thrift.protocol.TType.I64, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_specs_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_specs_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new set_hadoop_jobid_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_hadoop_jobid_argsTupleSchemeFactory()); } - private GetPartitionsRequest request; // required + private String jobId; // required + private long cq_id; // 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 { - REQUEST((short)1, "request"); + JOB_ID((short)1, "jobId"), + CQ_ID((short)2, "cq_id"); private static final Map byName = new HashMap(); @@ -246262,8 +253376,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_re */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQUEST - return REQUEST; + case 1: // JOB_ID + return JOB_ID; + case 2: // CQ_ID + return CQ_ID; default: return null; } @@ -246304,73 +253420,114 @@ public String getFieldName() { } // isset id assignments + private static final int __CQ_ID_ISSET_ID = 0; + private byte __isset_bitfield = 0; 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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionsRequest.class))); + tmpMap.put(_Fields.JOB_ID, new org.apache.thrift.meta_data.FieldMetaData("jobId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CQ_ID, new org.apache.thrift.meta_data.FieldMetaData("cq_id", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_specs_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_hadoop_jobid_args.class, metaDataMap); } - public get_partitions_with_specs_args() { + public set_hadoop_jobid_args() { } - public get_partitions_with_specs_args( - GetPartitionsRequest request) + public set_hadoop_jobid_args( + String jobId, + long cq_id) { this(); - this.request = request; + this.jobId = jobId; + this.cq_id = cq_id; + setCq_idIsSet(true); } /** * Performs a deep copy on other. */ - public get_partitions_with_specs_args(get_partitions_with_specs_args other) { - if (other.isSetRequest()) { - this.request = new GetPartitionsRequest(other.request); + public set_hadoop_jobid_args(set_hadoop_jobid_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetJobId()) { + this.jobId = other.jobId; } + this.cq_id = other.cq_id; } - public get_partitions_with_specs_args deepCopy() { - return new get_partitions_with_specs_args(this); + public set_hadoop_jobid_args deepCopy() { + return new set_hadoop_jobid_args(this); } @Override public void clear() { - this.request = null; + this.jobId = null; + setCq_idIsSet(false); + this.cq_id = 0; } - public GetPartitionsRequest getRequest() { - return this.request; + public String getJobId() { + return this.jobId; } - public void setRequest(GetPartitionsRequest request) { - this.request = request; + public void setJobId(String jobId) { + this.jobId = jobId; } - public void unsetRequest() { - this.request = null; + public void unsetJobId() { + this.jobId = null; } - /** Returns true if field request is set (has been assigned a value) and false otherwise */ - public boolean isSetRequest() { - return this.request != null; + /** Returns true if field jobId is set (has been assigned a value) and false otherwise */ + public boolean isSetJobId() { + return this.jobId != null; } - public void setRequestIsSet(boolean value) { + public void setJobIdIsSet(boolean value) { if (!value) { - this.request = null; + this.jobId = null; } } + public long getCq_id() { + return this.cq_id; + } + + public void setCq_id(long cq_id) { + this.cq_id = cq_id; + setCq_idIsSet(true); + } + + public void unsetCq_id() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CQ_ID_ISSET_ID); + } + + /** Returns true if field cq_id is set (has been assigned a value) and false otherwise */ + public boolean isSetCq_id() { + return EncodingUtils.testBit(__isset_bitfield, __CQ_ID_ISSET_ID); + } + + public void setCq_idIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CQ_ID_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQUEST: + case JOB_ID: if (value == null) { - unsetRequest(); + unsetJobId(); } else { - setRequest((GetPartitionsRequest)value); + setJobId((String)value); + } + break; + + case CQ_ID: + if (value == null) { + unsetCq_id(); + } else { + setCq_id((Long)value); } break; @@ -246379,8 +253536,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQUEST: - return getRequest(); + case JOB_ID: + return getJobId(); + + case CQ_ID: + return getCq_id(); } throw new IllegalStateException(); @@ -246393,8 +253553,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQUEST: - return isSetRequest(); + case JOB_ID: + return isSetJobId(); + case CQ_ID: + return isSetCq_id(); } throw new IllegalStateException(); } @@ -246403,21 +253565,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_specs_args) - return this.equals((get_partitions_with_specs_args)that); + if (that instanceof set_hadoop_jobid_args) + return this.equals((set_hadoop_jobid_args)that); return false; } - public boolean equals(get_partitions_with_specs_args that) { + public boolean equals(set_hadoop_jobid_args that) { if (that == null) return false; - boolean this_present_request = true && this.isSetRequest(); - boolean that_present_request = true && that.isSetRequest(); - if (this_present_request || that_present_request) { - if (!(this_present_request && that_present_request)) + boolean this_present_jobId = true && this.isSetJobId(); + boolean that_present_jobId = true && that.isSetJobId(); + if (this_present_jobId || that_present_jobId) { + if (!(this_present_jobId && that_present_jobId)) return false; - if (!this.request.equals(that.request)) + if (!this.jobId.equals(that.jobId)) + return false; + } + + boolean this_present_cq_id = true; + boolean that_present_cq_id = true; + if (this_present_cq_id || that_present_cq_id) { + if (!(this_present_cq_id && that_present_cq_id)) + return false; + if (this.cq_id != that.cq_id) return false; } @@ -246428,28 +253599,43 @@ public boolean equals(get_partitions_with_specs_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_request = true && (isSetRequest()); - list.add(present_request); - if (present_request) - list.add(request); + boolean present_jobId = true && (isSetJobId()); + list.add(present_jobId); + if (present_jobId) + list.add(jobId); + + boolean present_cq_id = true; + list.add(present_cq_id); + if (present_cq_id) + list.add(cq_id); return list.hashCode(); } @Override - public int compareTo(get_partitions_with_specs_args other) { + public int compareTo(set_hadoop_jobid_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetJobId()).compareTo(other.isSetJobId()); if (lastComparison != 0) { return lastComparison; } - if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + if (isSetJobId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobId, other.jobId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCq_id()).compareTo(other.isSetCq_id()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCq_id()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cq_id, other.cq_id); if (lastComparison != 0) { return lastComparison; } @@ -246471,16 +253657,20 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_specs_args("); + StringBuilder sb = new StringBuilder("set_hadoop_jobid_args("); boolean first = true; - sb.append("request:"); - if (this.request == null) { + sb.append("jobId:"); + if (this.jobId == null) { sb.append("null"); } else { - sb.append(this.request); + sb.append(this.jobId); } first = false; + if (!first) sb.append(", "); + sb.append("cq_id:"); + sb.append(this.cq_id); + first = false; sb.append(")"); return sb.toString(); } @@ -246488,9 +253678,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (request != null) { - request.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -246503,21 +253690,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partitions_with_specs_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_specs_argsStandardScheme getScheme() { - return new get_partitions_with_specs_argsStandardScheme(); + private static class set_hadoop_jobid_argsStandardSchemeFactory implements SchemeFactory { + public set_hadoop_jobid_argsStandardScheme getScheme() { + return new set_hadoop_jobid_argsStandardScheme(); } } - private static class get_partitions_with_specs_argsStandardScheme extends StandardScheme { + private static class set_hadoop_jobid_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, set_hadoop_jobid_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -246527,11 +253716,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with break; } switch (schemeField.id) { - case 1: // REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new GetPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + case 1: // JOB_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.jobId = iprot.readString(); + struct.setJobIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CQ_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.cq_id = iprot.readI64(); + struct.setCq_idIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -246545,75 +253741,82 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, set_hadoop_jobid_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.request != null) { - oprot.writeFieldBegin(REQUEST_FIELD_DESC); - struct.request.write(oprot); + if (struct.jobId != null) { + oprot.writeFieldBegin(JOB_ID_FIELD_DESC); + oprot.writeString(struct.jobId); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(CQ_ID_FIELD_DESC); + oprot.writeI64(struct.cq_id); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_with_specs_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_specs_argsTupleScheme getScheme() { - return new get_partitions_with_specs_argsTupleScheme(); + private static class set_hadoop_jobid_argsTupleSchemeFactory implements SchemeFactory { + public set_hadoop_jobid_argsTupleScheme getScheme() { + return new set_hadoop_jobid_argsTupleScheme(); } } - private static class get_partitions_with_specs_argsTupleScheme extends TupleScheme { + private static class set_hadoop_jobid_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, set_hadoop_jobid_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRequest()) { + if (struct.isSetJobId()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRequest()) { - struct.request.write(oprot); + if (struct.isSetCq_id()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetJobId()) { + oprot.writeString(struct.jobId); + } + if (struct.isSetCq_id()) { + oprot.writeI64(struct.cq_id); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, set_hadoop_jobid_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.request = new GetPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + struct.jobId = iprot.readString(); + struct.setJobIdIsSet(true); + } + if (incoming.get(1)) { + struct.cq_id = iprot.readI64(); + struct.setCq_idIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_partitions_with_specs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_specs_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_hadoop_jobid_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_hadoop_jobid_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_specs_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_specs_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new set_hadoop_jobid_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_hadoop_jobid_resultTupleSchemeFactory()); } - private GetPartitionsResponse success; // required - private MetaException o1; // 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"); +; private static final Map byName = new HashMap(); @@ -246628,10 +253831,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // O1 - return O1; default: return null; } @@ -246670,128 +253869,37 @@ 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, GetPartitionsResponse.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_specs_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_hadoop_jobid_result.class, metaDataMap); } - public get_partitions_with_specs_result() { - } - - public get_partitions_with_specs_result( - GetPartitionsResponse success, - MetaException o1) - { - this(); - this.success = success; - this.o1 = o1; + public set_hadoop_jobid_result() { } /** * Performs a deep copy on other. */ - public get_partitions_with_specs_result(get_partitions_with_specs_result other) { - if (other.isSetSuccess()) { - this.success = new GetPartitionsResponse(other.success); - } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); - } + public set_hadoop_jobid_result(set_hadoop_jobid_result other) { } - public get_partitions_with_specs_result deepCopy() { - return new get_partitions_with_specs_result(this); + public set_hadoop_jobid_result deepCopy() { + return new set_hadoop_jobid_result(this); } @Override public void clear() { - this.success = null; - this.o1 = null; - } - - public GetPartitionsResponse getSuccess() { - return this.success; - } - - public void setSuccess(GetPartitionsResponse 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 MetaException getO1() { - return this.o1; - } - - public void setO1(MetaException 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 void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((GetPartitionsResponse)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - - case O1: - return getO1(); - } throw new IllegalStateException(); } @@ -246803,10 +253911,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case O1: - return isSetO1(); } throw new IllegalStateException(); } @@ -246815,33 +253919,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_specs_result) - return this.equals((get_partitions_with_specs_result)that); + if (that instanceof set_hadoop_jobid_result) + return this.equals((set_hadoop_jobid_result)that); return false; } - public boolean equals(get_partitions_with_specs_result that) { + public boolean equals(set_hadoop_jobid_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; - } - return true; } @@ -246849,47 +253935,17 @@ public boolean equals(get_partitions_with_specs_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - return list.hashCode(); } @Override - public int compareTo(get_partitions_with_specs_result other) { + public int compareTo(set_hadoop_jobid_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -246907,24 +253963,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_specs_result("); + StringBuilder sb = new StringBuilder("set_hadoop_jobid_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; sb.append(")"); return sb.toString(); } @@ -246932,9 +253973,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -246953,15 +253991,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_specs_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_specs_resultStandardScheme getScheme() { - return new get_partitions_with_specs_resultStandardScheme(); + private static class set_hadoop_jobid_resultStandardSchemeFactory implements SchemeFactory { + public set_hadoop_jobid_resultStandardScheme getScheme() { + return new set_hadoop_jobid_resultStandardScheme(); } } - private static class get_partitions_with_specs_resultStandardScheme extends StandardScheme { + private static class set_hadoop_jobid_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, set_hadoop_jobid_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -246971,24 +254009,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetPartitionsResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -246998,67 +254018,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, set_hadoop_jobid_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_with_specs_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_specs_resultTupleScheme getScheme() { - return new get_partitions_with_specs_resultTupleScheme(); + private static class set_hadoop_jobid_resultTupleSchemeFactory implements SchemeFactory { + public set_hadoop_jobid_resultTupleScheme getScheme() { + return new set_hadoop_jobid_resultTupleScheme(); } } - private static class get_partitions_with_specs_resultTupleScheme extends TupleScheme { + private static class set_hadoop_jobid_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, set_hadoop_jobid_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetO1()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetO1()) { - struct.o1.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_specs_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, set_hadoop_jobid_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new GetPartitionsResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java index 44674798f7..75c4f39359 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java @@ -755,14 +755,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 2: // POOLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); - struct.pools = new ArrayList(_list872.size); - WMPool _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + org.apache.thrift.protocol.TList _list882 = iprot.readListBegin(); + struct.pools = new ArrayList(_list882.size); + WMPool _elem883; + for (int _i884 = 0; _i884 < _list882.size; ++_i884) { - _elem873 = new WMPool(); - _elem873.read(iprot); - struct.pools.add(_elem873); + _elem883 = new WMPool(); + _elem883.read(iprot); + struct.pools.add(_elem883); } iprot.readListEnd(); } @@ -774,14 +774,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 3: // MAPPINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list875 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list875.size); - WMMapping _elem876; - for (int _i877 = 0; _i877 < _list875.size; ++_i877) + org.apache.thrift.protocol.TList _list885 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list885.size); + WMMapping _elem886; + for (int _i887 = 0; _i887 < _list885.size; ++_i887) { - _elem876 = new WMMapping(); - _elem876.read(iprot); - struct.mappings.add(_elem876); + _elem886 = new WMMapping(); + _elem886.read(iprot); + struct.mappings.add(_elem886); } iprot.readListEnd(); } @@ -793,14 +793,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 4: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list878.size); - WMTrigger _elem879; - for (int _i880 = 0; _i880 < _list878.size; ++_i880) + org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list888.size); + WMTrigger _elem889; + for (int _i890 = 0; _i890 < _list888.size; ++_i890) { - _elem879 = new WMTrigger(); - _elem879.read(iprot); - struct.triggers.add(_elem879); + _elem889 = new WMTrigger(); + _elem889.read(iprot); + struct.triggers.add(_elem889); } iprot.readListEnd(); } @@ -812,14 +812,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 5: // POOL_TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list881 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list881.size); - WMPoolTrigger _elem882; - for (int _i883 = 0; _i883 < _list881.size; ++_i883) + org.apache.thrift.protocol.TList _list891 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list891.size); + WMPoolTrigger _elem892; + for (int _i893 = 0; _i893 < _list891.size; ++_i893) { - _elem882 = new WMPoolTrigger(); - _elem882.read(iprot); - struct.poolTriggers.add(_elem882); + _elem892 = new WMPoolTrigger(); + _elem892.read(iprot); + struct.poolTriggers.add(_elem892); } iprot.readListEnd(); } @@ -850,9 +850,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.pools.size())); - for (WMPool _iter884 : struct.pools) + for (WMPool _iter894 : struct.pools) { - _iter884.write(oprot); + _iter894.write(oprot); } oprot.writeListEnd(); } @@ -863,9 +863,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(MAPPINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mappings.size())); - for (WMMapping _iter885 : struct.mappings) + for (WMMapping _iter895 : struct.mappings) { - _iter885.write(oprot); + _iter895.write(oprot); } oprot.writeListEnd(); } @@ -877,9 +877,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter886 : struct.triggers) + for (WMTrigger _iter896 : struct.triggers) { - _iter886.write(oprot); + _iter896.write(oprot); } oprot.writeListEnd(); } @@ -891,9 +891,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOL_TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.poolTriggers.size())); - for (WMPoolTrigger _iter887 : struct.poolTriggers) + for (WMPoolTrigger _iter897 : struct.poolTriggers) { - _iter887.write(oprot); + _iter897.write(oprot); } oprot.writeListEnd(); } @@ -920,9 +920,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan struct.plan.write(oprot); { oprot.writeI32(struct.pools.size()); - for (WMPool _iter888 : struct.pools) + for (WMPool _iter898 : struct.pools) { - _iter888.write(oprot); + _iter898.write(oprot); } } BitSet optionals = new BitSet(); @@ -939,27 +939,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan if (struct.isSetMappings()) { { oprot.writeI32(struct.mappings.size()); - for (WMMapping _iter889 : struct.mappings) + for (WMMapping _iter899 : struct.mappings) { - _iter889.write(oprot); + _iter899.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter890 : struct.triggers) + for (WMTrigger _iter900 : struct.triggers) { - _iter890.write(oprot); + _iter900.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter891 : struct.poolTriggers) + for (WMPoolTrigger _iter901 : struct.poolTriggers) { - _iter891.write(oprot); + _iter901.write(oprot); } } } @@ -972,56 +972,56 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan s struct.plan.read(iprot); struct.setPlanIsSet(true); { - org.apache.thrift.protocol.TList _list892 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list892.size); - WMPool _elem893; - for (int _i894 = 0; _i894 < _list892.size; ++_i894) + org.apache.thrift.protocol.TList _list902 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list902.size); + WMPool _elem903; + for (int _i904 = 0; _i904 < _list902.size; ++_i904) { - _elem893 = new WMPool(); - _elem893.read(iprot); - struct.pools.add(_elem893); + _elem903 = new WMPool(); + _elem903.read(iprot); + struct.pools.add(_elem903); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list895 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list895.size); - WMMapping _elem896; - for (int _i897 = 0; _i897 < _list895.size; ++_i897) + org.apache.thrift.protocol.TList _list905 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list905.size); + WMMapping _elem906; + for (int _i907 = 0; _i907 < _list905.size; ++_i907) { - _elem896 = new WMMapping(); - _elem896.read(iprot); - struct.mappings.add(_elem896); + _elem906 = new WMMapping(); + _elem906.read(iprot); + struct.mappings.add(_elem906); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list898 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list898.size); - WMTrigger _elem899; - for (int _i900 = 0; _i900 < _list898.size; ++_i900) + org.apache.thrift.protocol.TList _list908 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list908.size); + WMTrigger _elem909; + for (int _i910 = 0; _i910 < _list908.size; ++_i910) { - _elem899 = new WMTrigger(); - _elem899.read(iprot); - struct.triggers.add(_elem899); + _elem909 = new WMTrigger(); + _elem909.read(iprot); + struct.triggers.add(_elem909); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list901.size); - WMPoolTrigger _elem902; - for (int _i903 = 0; _i903 < _list901.size; ++_i903) + org.apache.thrift.protocol.TList _list911 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list911.size); + WMPoolTrigger _elem912; + for (int _i913 = 0; _i913 < _list911.size; ++_i913) { - _elem902 = new WMPoolTrigger(); - _elem902.read(iprot); - struct.poolTriggers.add(_elem902); + _elem912 = new WMPoolTrigger(); + _elem912.read(iprot); + struct.poolTriggers.add(_elem912); } } struct.setPoolTriggersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java index c6cb845585..8d0f0dfe90 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetAllResourcePla case 1: // RESOURCE_PLANS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list904.size); - WMResourcePlan _elem905; - for (int _i906 = 0; _i906 < _list904.size; ++_i906) + org.apache.thrift.protocol.TList _list914 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list914.size); + WMResourcePlan _elem915; + for (int _i916 = 0; _i916 < _list914.size; ++_i916) { - _elem905 = new WMResourcePlan(); - _elem905.read(iprot); - struct.resourcePlans.add(_elem905); + _elem915 = new WMResourcePlan(); + _elem915.read(iprot); + struct.resourcePlans.add(_elem915); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetAllResourcePl oprot.writeFieldBegin(RESOURCE_PLANS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourcePlans.size())); - for (WMResourcePlan _iter907 : struct.resourcePlans) + for (WMResourcePlan _iter917 : struct.resourcePlans) { - _iter907.write(oprot); + _iter917.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePla if (struct.isSetResourcePlans()) { { oprot.writeI32(struct.resourcePlans.size()); - for (WMResourcePlan _iter908 : struct.resourcePlans) + for (WMResourcePlan _iter918 : struct.resourcePlans) { - _iter908.write(oprot); + _iter918.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePlan BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list909.size); - WMResourcePlan _elem910; - for (int _i911 = 0; _i911 < _list909.size; ++_i911) + org.apache.thrift.protocol.TList _list919 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list919.size); + WMResourcePlan _elem920; + for (int _i921 = 0; _i921 < _list919.size; ++_i921) { - _elem910 = new WMResourcePlan(); - _elem910.read(iprot); - struct.resourcePlans.add(_elem910); + _elem920 = new WMResourcePlan(); + _elem920.read(iprot); + struct.resourcePlans.add(_elem920); } } struct.setResourcePlansIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java index 9eed335cda..f4f87a4c7e 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetTriggersForRes case 1: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list928.size); - WMTrigger _elem929; - for (int _i930 = 0; _i930 < _list928.size; ++_i930) + org.apache.thrift.protocol.TList _list938 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list938.size); + WMTrigger _elem939; + for (int _i940 = 0; _i940 < _list938.size; ++_i940) { - _elem929 = new WMTrigger(); - _elem929.read(iprot); - struct.triggers.add(_elem929); + _elem939 = new WMTrigger(); + _elem939.read(iprot); + struct.triggers.add(_elem939); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetTriggersForRe oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter931 : struct.triggers) + for (WMTrigger _iter941 : struct.triggers) { - _iter931.write(oprot); + _iter941.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForRes if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter932 : struct.triggers) + for (WMTrigger _iter942 : struct.triggers) { - _iter932.write(oprot); + _iter942.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForReso BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list933.size); - WMTrigger _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) + org.apache.thrift.protocol.TList _list943 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list943.size); + WMTrigger _elem944; + for (int _i945 = 0; _i945 < _list943.size; ++_i945) { - _elem934 = new WMTrigger(); - _elem934.read(iprot); - struct.triggers.add(_elem934); + _elem944 = new WMTrigger(); + _elem944.read(iprot); + struct.triggers.add(_elem944); } } struct.setTriggersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java index ee9251c866..3130cc1741 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java @@ -441,13 +441,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 1: // ERRORS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list912 = iprot.readListBegin(); - struct.errors = new ArrayList(_list912.size); - String _elem913; - for (int _i914 = 0; _i914 < _list912.size; ++_i914) + org.apache.thrift.protocol.TList _list922 = iprot.readListBegin(); + struct.errors = new ArrayList(_list922.size); + String _elem923; + for (int _i924 = 0; _i924 < _list922.size; ++_i924) { - _elem913 = iprot.readString(); - struct.errors.add(_elem913); + _elem923 = iprot.readString(); + struct.errors.add(_elem923); } iprot.readListEnd(); } @@ -459,13 +459,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 2: // WARNINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list915 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list915.size); - String _elem916; - for (int _i917 = 0; _i917 < _list915.size; ++_i917) + org.apache.thrift.protocol.TList _list925 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list925.size); + String _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem916 = iprot.readString(); - struct.warnings.add(_elem916); + _elem926 = iprot.readString(); + struct.warnings.add(_elem926); } iprot.readListEnd(); } @@ -492,9 +492,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(ERRORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.errors.size())); - for (String _iter918 : struct.errors) + for (String _iter928 : struct.errors) { - oprot.writeString(_iter918); + oprot.writeString(_iter928); } oprot.writeListEnd(); } @@ -506,9 +506,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(WARNINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.warnings.size())); - for (String _iter919 : struct.warnings) + for (String _iter929 : struct.warnings) { - oprot.writeString(_iter919); + oprot.writeString(_iter929); } oprot.writeListEnd(); } @@ -543,18 +543,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMValidateResourceP if (struct.isSetErrors()) { { oprot.writeI32(struct.errors.size()); - for (String _iter920 : struct.errors) + for (String _iter930 : struct.errors) { - oprot.writeString(_iter920); + oprot.writeString(_iter930); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter921 : struct.warnings) + for (String _iter931 : struct.warnings) { - oprot.writeString(_iter921); + oprot.writeString(_iter931); } } } @@ -566,26 +566,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMValidateResourcePl BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list922 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list922.size); - String _elem923; - for (int _i924 = 0; _i924 < _list922.size; ++_i924) + org.apache.thrift.protocol.TList _list932 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list932.size); + String _elem933; + for (int _i934 = 0; _i934 < _list932.size; ++_i934) { - _elem923 = iprot.readString(); - struct.errors.add(_elem923); + _elem933 = iprot.readString(); + struct.errors.add(_elem933); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list925.size); - String _elem926; - for (int _i927 = 0; _i927 < _list925.size; ++_i927) + org.apache.thrift.protocol.TList _list935 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list935.size); + String _elem936; + for (int _i937 = 0; _i937 < _list935.size; ++_i937) { - _elem926 = iprot.readString(); - struct.warnings.add(_elem926); + _elem936 = iprot.readString(); + struct.warnings.add(_elem936); } } struct.setWarningsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java index c7ef726f54..56b025939a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java @@ -813,13 +813,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WriteNotificationLo case 6: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list772.size); - String _elem773; - for (int _i774 = 0; _i774 < _list772.size; ++_i774) + org.apache.thrift.protocol.TList _list782 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list782.size); + String _elem783; + for (int _i784 = 0; _i784 < _list782.size; ++_i784) { - _elem773 = iprot.readString(); - struct.partitionVals.add(_elem773); + _elem783 = iprot.readString(); + struct.partitionVals.add(_elem783); } iprot.readListEnd(); } @@ -867,9 +867,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WriteNotificationL oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size())); - for (String _iter775 : struct.partitionVals) + for (String _iter785 : struct.partitionVals) { - oprot.writeString(_iter775); + oprot.writeString(_iter785); } oprot.writeListEnd(); } @@ -906,9 +906,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLo if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter776 : struct.partitionVals) + for (String _iter786 : struct.partitionVals) { - oprot.writeString(_iter776); + oprot.writeString(_iter786); } } } @@ -931,13 +931,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLog BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list777.size); - String _elem778; - for (int _i779 = 0; _i779 < _list777.size; ++_i779) + org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list787.size); + String _elem788; + for (int _i789 = 0; _i789 < _list787.size; ++_i789) { - _elem778 = iprot.readString(); - struct.partitionVals.add(_elem778); + _elem788 = iprot.readString(); + struct.partitionVals.add(_elem788); } } struct.setPartitionValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index efeaec7d6d..3436d22fba 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1614,6 +1614,47 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function get_partitions_with_specs(\metastore\GetPartitionsRequest $request); + /** + * @param string $workerId + * @return \metastore\CompactionInfoStruct + * @throws \metastore\MetaException + */ + public function find_next_compact($workerId); + /** + * @param \metastore\CompactionInfoStruct $cr + * @param int $high_watermark + */ + public function set_compaction_highest_writeid(\metastore\CompactionInfoStruct $cr, $high_watermark); + /** + * @param int $cq_id + * @param string $user + */ + public function set_run_as($cq_id, $user); + /** + * @param \metastore\CompactionInfoStruct $cr + * @return string[] + */ + public function find_columns_with_stats(\metastore\CompactionInfoStruct $cr); + /** + * @param \metastore\CompactionInfoStruct $cr + * @throws \metastore\MetaException + */ + public function mark_cleaned(\metastore\CompactionInfoStruct $cr); + /** + * @param \metastore\CompactionInfoStruct $cr + * @throws \metastore\MetaException + */ + public function mark_compacted(\metastore\CompactionInfoStruct $cr); + /** + * @param \metastore\CompactionInfoStruct $cr + * @throws \metastore\MetaException + */ + public function mark_failed(\metastore\CompactionInfoStruct $cr); + /** + * @param string $jobId + * @param int $cq_id + */ + public function set_hadoop_jobid($jobId, $cq_id); } class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metastore\ThriftHiveMetastoreIf { @@ -13815,6 +13856,411 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_with_specs failed: unknown result"); } + public function find_next_compact($workerId) + { + $this->send_find_next_compact($workerId); + return $this->recv_find_next_compact(); + } + + public function send_find_next_compact($workerId) + { + $args = new \metastore\ThriftHiveMetastore_find_next_compact_args(); + $args->workerId = $workerId; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'find_next_compact', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('find_next_compact', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_find_next_compact() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_find_next_compact_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 \metastore\ThriftHiveMetastore_find_next_compact_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + throw new \Exception("find_next_compact failed: unknown result"); + } + + public function set_compaction_highest_writeid(\metastore\CompactionInfoStruct $cr, $high_watermark) + { + $this->send_set_compaction_highest_writeid($cr, $high_watermark); + $this->recv_set_compaction_highest_writeid(); + } + + public function send_set_compaction_highest_writeid(\metastore\CompactionInfoStruct $cr, $high_watermark) + { + $args = new \metastore\ThriftHiveMetastore_set_compaction_highest_writeid_args(); + $args->cr = $cr; + $args->high_watermark = $high_watermark; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'set_compaction_highest_writeid', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('set_compaction_highest_writeid', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_set_compaction_highest_writeid() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_set_compaction_highest_writeid_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 \metastore\ThriftHiveMetastore_set_compaction_highest_writeid_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + return; + } + + public function set_run_as($cq_id, $user) + { + $this->send_set_run_as($cq_id, $user); + $this->recv_set_run_as(); + } + + public function send_set_run_as($cq_id, $user) + { + $args = new \metastore\ThriftHiveMetastore_set_run_as_args(); + $args->cq_id = $cq_id; + $args->user = $user; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'set_run_as', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('set_run_as', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_set_run_as() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_set_run_as_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 \metastore\ThriftHiveMetastore_set_run_as_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + return; + } + + public function find_columns_with_stats(\metastore\CompactionInfoStruct $cr) + { + $this->send_find_columns_with_stats($cr); + return $this->recv_find_columns_with_stats(); + } + + public function send_find_columns_with_stats(\metastore\CompactionInfoStruct $cr) + { + $args = new \metastore\ThriftHiveMetastore_find_columns_with_stats_args(); + $args->cr = $cr; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'find_columns_with_stats', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('find_columns_with_stats', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_find_columns_with_stats() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_find_columns_with_stats_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 \metastore\ThriftHiveMetastore_find_columns_with_stats_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + throw new \Exception("find_columns_with_stats failed: unknown result"); + } + + public function mark_cleaned(\metastore\CompactionInfoStruct $cr) + { + $this->send_mark_cleaned($cr); + $this->recv_mark_cleaned(); + } + + public function send_mark_cleaned(\metastore\CompactionInfoStruct $cr) + { + $args = new \metastore\ThriftHiveMetastore_mark_cleaned_args(); + $args->cr = $cr; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'mark_cleaned', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('mark_cleaned', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_mark_cleaned() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_mark_cleaned_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 \metastore\ThriftHiveMetastore_mark_cleaned_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + return; + } + + public function mark_compacted(\metastore\CompactionInfoStruct $cr) + { + $this->send_mark_compacted($cr); + $this->recv_mark_compacted(); + } + + public function send_mark_compacted(\metastore\CompactionInfoStruct $cr) + { + $args = new \metastore\ThriftHiveMetastore_mark_compacted_args(); + $args->cr = $cr; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'mark_compacted', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('mark_compacted', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_mark_compacted() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_mark_compacted_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 \metastore\ThriftHiveMetastore_mark_compacted_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + return; + } + + public function mark_failed(\metastore\CompactionInfoStruct $cr) + { + $this->send_mark_failed($cr); + $this->recv_mark_failed(); + } + + public function send_mark_failed(\metastore\CompactionInfoStruct $cr) + { + $args = new \metastore\ThriftHiveMetastore_mark_failed_args(); + $args->cr = $cr; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'mark_failed', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('mark_failed', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_mark_failed() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_mark_failed_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 \metastore\ThriftHiveMetastore_mark_failed_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + return; + } + + public function set_hadoop_jobid($jobId, $cq_id) + { + $this->send_set_hadoop_jobid($jobId, $cq_id); + $this->recv_set_hadoop_jobid(); + } + + public function send_set_hadoop_jobid($jobId, $cq_id) + { + $args = new \metastore\ThriftHiveMetastore_set_hadoop_jobid_args(); + $args->jobId = $jobId; + $args->cq_id = $cq_id; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'set_hadoop_jobid', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('set_hadoop_jobid', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_set_hadoop_jobid() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_set_hadoop_jobid_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 \metastore\ThriftHiveMetastore_set_hadoop_jobid_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + return; + } + } // HELPER FUNCTIONS AND STRUCTURES @@ -15952,14 +16398,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size891 = 0; + $_etype894 = 0; + $xfer += $input->readListBegin($_etype894, $_size891); + for ($_i895 = 0; $_i895 < $_size891; ++$_i895) { - $elem887 = null; - $xfer += $input->readString($elem887); - $this->success []= $elem887; + $elem896 = null; + $xfer += $input->readString($elem896); + $this->success []= $elem896; } $xfer += $input->readListEnd(); } else { @@ -15995,9 +16441,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter888) + foreach ($this->success as $iter897) { - $xfer += $output->writeString($iter888); + $xfer += $output->writeString($iter897); } } $output->writeListEnd(); @@ -16128,14 +16574,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size898 = 0; + $_etype901 = 0; + $xfer += $input->readListBegin($_etype901, $_size898); + for ($_i902 = 0; $_i902 < $_size898; ++$_i902) { - $elem894 = null; - $xfer += $input->readString($elem894); - $this->success []= $elem894; + $elem903 = null; + $xfer += $input->readString($elem903); + $this->success []= $elem903; } $xfer += $input->readListEnd(); } else { @@ -16171,9 +16617,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter895) + foreach ($this->success as $iter904) { - $xfer += $output->writeString($iter895); + $xfer += $output->writeString($iter904); } } $output->writeListEnd(); @@ -17174,18 +17620,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size896 = 0; - $_ktype897 = 0; - $_vtype898 = 0; - $xfer += $input->readMapBegin($_ktype897, $_vtype898, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) + $_size905 = 0; + $_ktype906 = 0; + $_vtype907 = 0; + $xfer += $input->readMapBegin($_ktype906, $_vtype907, $_size905); + for ($_i909 = 0; $_i909 < $_size905; ++$_i909) { - $key901 = ''; - $val902 = new \metastore\Type(); - $xfer += $input->readString($key901); - $val902 = new \metastore\Type(); - $xfer += $val902->read($input); - $this->success[$key901] = $val902; + $key910 = ''; + $val911 = new \metastore\Type(); + $xfer += $input->readString($key910); + $val911 = new \metastore\Type(); + $xfer += $val911->read($input); + $this->success[$key910] = $val911; } $xfer += $input->readMapEnd(); } else { @@ -17221,10 +17667,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter903 => $viter904) + foreach ($this->success as $kiter912 => $viter913) { - $xfer += $output->writeString($kiter903); - $xfer += $viter904->write($output); + $xfer += $output->writeString($kiter912); + $xfer += $viter913->write($output); } } $output->writeMapEnd(); @@ -17428,15 +17874,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size905 = 0; - $_etype908 = 0; - $xfer += $input->readListBegin($_etype908, $_size905); - for ($_i909 = 0; $_i909 < $_size905; ++$_i909) + $_size914 = 0; + $_etype917 = 0; + $xfer += $input->readListBegin($_etype917, $_size914); + for ($_i918 = 0; $_i918 < $_size914; ++$_i918) { - $elem910 = null; - $elem910 = new \metastore\FieldSchema(); - $xfer += $elem910->read($input); - $this->success []= $elem910; + $elem919 = null; + $elem919 = new \metastore\FieldSchema(); + $xfer += $elem919->read($input); + $this->success []= $elem919; } $xfer += $input->readListEnd(); } else { @@ -17488,9 +17934,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter911) + foreach ($this->success as $iter920) { - $xfer += $iter911->write($output); + $xfer += $iter920->write($output); } } $output->writeListEnd(); @@ -17732,15 +18178,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size912 = 0; - $_etype915 = 0; - $xfer += $input->readListBegin($_etype915, $_size912); - for ($_i916 = 0; $_i916 < $_size912; ++$_i916) + $_size921 = 0; + $_etype924 = 0; + $xfer += $input->readListBegin($_etype924, $_size921); + for ($_i925 = 0; $_i925 < $_size921; ++$_i925) { - $elem917 = null; - $elem917 = new \metastore\FieldSchema(); - $xfer += $elem917->read($input); - $this->success []= $elem917; + $elem926 = null; + $elem926 = new \metastore\FieldSchema(); + $xfer += $elem926->read($input); + $this->success []= $elem926; } $xfer += $input->readListEnd(); } else { @@ -17792,9 +18238,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter918) + foreach ($this->success as $iter927) { - $xfer += $iter918->write($output); + $xfer += $iter927->write($output); } } $output->writeListEnd(); @@ -18008,15 +18454,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size919 = 0; - $_etype922 = 0; - $xfer += $input->readListBegin($_etype922, $_size919); - for ($_i923 = 0; $_i923 < $_size919; ++$_i923) + $_size928 = 0; + $_etype931 = 0; + $xfer += $input->readListBegin($_etype931, $_size928); + for ($_i932 = 0; $_i932 < $_size928; ++$_i932) { - $elem924 = null; - $elem924 = new \metastore\FieldSchema(); - $xfer += $elem924->read($input); - $this->success []= $elem924; + $elem933 = null; + $elem933 = new \metastore\FieldSchema(); + $xfer += $elem933->read($input); + $this->success []= $elem933; } $xfer += $input->readListEnd(); } else { @@ -18068,9 +18514,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter925) + foreach ($this->success as $iter934) { - $xfer += $iter925->write($output); + $xfer += $iter934->write($output); } } $output->writeListEnd(); @@ -18312,15 +18758,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size926 = 0; - $_etype929 = 0; - $xfer += $input->readListBegin($_etype929, $_size926); - for ($_i930 = 0; $_i930 < $_size926; ++$_i930) + $_size935 = 0; + $_etype938 = 0; + $xfer += $input->readListBegin($_etype938, $_size935); + for ($_i939 = 0; $_i939 < $_size935; ++$_i939) { - $elem931 = null; - $elem931 = new \metastore\FieldSchema(); - $xfer += $elem931->read($input); - $this->success []= $elem931; + $elem940 = null; + $elem940 = new \metastore\FieldSchema(); + $xfer += $elem940->read($input); + $this->success []= $elem940; } $xfer += $input->readListEnd(); } else { @@ -18372,9 +18818,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter932) + foreach ($this->success as $iter941) { - $xfer += $iter932->write($output); + $xfer += $iter941->write($output); } } $output->writeListEnd(); @@ -19046,15 +19492,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size933 = 0; - $_etype936 = 0; - $xfer += $input->readListBegin($_etype936, $_size933); - for ($_i937 = 0; $_i937 < $_size933; ++$_i937) + $_size942 = 0; + $_etype945 = 0; + $xfer += $input->readListBegin($_etype945, $_size942); + for ($_i946 = 0; $_i946 < $_size942; ++$_i946) { - $elem938 = null; - $elem938 = new \metastore\SQLPrimaryKey(); - $xfer += $elem938->read($input); - $this->primaryKeys []= $elem938; + $elem947 = null; + $elem947 = new \metastore\SQLPrimaryKey(); + $xfer += $elem947->read($input); + $this->primaryKeys []= $elem947; } $xfer += $input->readListEnd(); } else { @@ -19064,15 +19510,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size939 = 0; - $_etype942 = 0; - $xfer += $input->readListBegin($_etype942, $_size939); - for ($_i943 = 0; $_i943 < $_size939; ++$_i943) + $_size948 = 0; + $_etype951 = 0; + $xfer += $input->readListBegin($_etype951, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) { - $elem944 = null; - $elem944 = new \metastore\SQLForeignKey(); - $xfer += $elem944->read($input); - $this->foreignKeys []= $elem944; + $elem953 = null; + $elem953 = new \metastore\SQLForeignKey(); + $xfer += $elem953->read($input); + $this->foreignKeys []= $elem953; } $xfer += $input->readListEnd(); } else { @@ -19082,15 +19528,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size945 = 0; - $_etype948 = 0; - $xfer += $input->readListBegin($_etype948, $_size945); - for ($_i949 = 0; $_i949 < $_size945; ++$_i949) + $_size954 = 0; + $_etype957 = 0; + $xfer += $input->readListBegin($_etype957, $_size954); + for ($_i958 = 0; $_i958 < $_size954; ++$_i958) { - $elem950 = null; - $elem950 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem950->read($input); - $this->uniqueConstraints []= $elem950; + $elem959 = null; + $elem959 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem959->read($input); + $this->uniqueConstraints []= $elem959; } $xfer += $input->readListEnd(); } else { @@ -19100,15 +19546,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size951 = 0; - $_etype954 = 0; - $xfer += $input->readListBegin($_etype954, $_size951); - for ($_i955 = 0; $_i955 < $_size951; ++$_i955) + $_size960 = 0; + $_etype963 = 0; + $xfer += $input->readListBegin($_etype963, $_size960); + for ($_i964 = 0; $_i964 < $_size960; ++$_i964) { - $elem956 = null; - $elem956 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem956->read($input); - $this->notNullConstraints []= $elem956; + $elem965 = null; + $elem965 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem965->read($input); + $this->notNullConstraints []= $elem965; } $xfer += $input->readListEnd(); } else { @@ -19118,15 +19564,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size957 = 0; - $_etype960 = 0; - $xfer += $input->readListBegin($_etype960, $_size957); - for ($_i961 = 0; $_i961 < $_size957; ++$_i961) + $_size966 = 0; + $_etype969 = 0; + $xfer += $input->readListBegin($_etype969, $_size966); + for ($_i970 = 0; $_i970 < $_size966; ++$_i970) { - $elem962 = null; - $elem962 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem962->read($input); - $this->defaultConstraints []= $elem962; + $elem971 = null; + $elem971 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem971->read($input); + $this->defaultConstraints []= $elem971; } $xfer += $input->readListEnd(); } else { @@ -19136,15 +19582,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size963 = 0; - $_etype966 = 0; - $xfer += $input->readListBegin($_etype966, $_size963); - for ($_i967 = 0; $_i967 < $_size963; ++$_i967) + $_size972 = 0; + $_etype975 = 0; + $xfer += $input->readListBegin($_etype975, $_size972); + for ($_i976 = 0; $_i976 < $_size972; ++$_i976) { - $elem968 = null; - $elem968 = new \metastore\SQLCheckConstraint(); - $xfer += $elem968->read($input); - $this->checkConstraints []= $elem968; + $elem977 = null; + $elem977 = new \metastore\SQLCheckConstraint(); + $xfer += $elem977->read($input); + $this->checkConstraints []= $elem977; } $xfer += $input->readListEnd(); } else { @@ -19180,9 +19626,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter969) + foreach ($this->primaryKeys as $iter978) { - $xfer += $iter969->write($output); + $xfer += $iter978->write($output); } } $output->writeListEnd(); @@ -19197,9 +19643,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter970) + foreach ($this->foreignKeys as $iter979) { - $xfer += $iter970->write($output); + $xfer += $iter979->write($output); } } $output->writeListEnd(); @@ -19214,9 +19660,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter971) + foreach ($this->uniqueConstraints as $iter980) { - $xfer += $iter971->write($output); + $xfer += $iter980->write($output); } } $output->writeListEnd(); @@ -19231,9 +19677,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter972) + foreach ($this->notNullConstraints as $iter981) { - $xfer += $iter972->write($output); + $xfer += $iter981->write($output); } } $output->writeListEnd(); @@ -19248,9 +19694,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter973) + foreach ($this->defaultConstraints as $iter982) { - $xfer += $iter973->write($output); + $xfer += $iter982->write($output); } } $output->writeListEnd(); @@ -19265,9 +19711,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter974) + foreach ($this->checkConstraints as $iter983) { - $xfer += $iter974->write($output); + $xfer += $iter983->write($output); } } $output->writeListEnd(); @@ -21267,14 +21713,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size975 = 0; - $_etype978 = 0; - $xfer += $input->readListBegin($_etype978, $_size975); - for ($_i979 = 0; $_i979 < $_size975; ++$_i979) + $_size984 = 0; + $_etype987 = 0; + $xfer += $input->readListBegin($_etype987, $_size984); + for ($_i988 = 0; $_i988 < $_size984; ++$_i988) { - $elem980 = null; - $xfer += $input->readString($elem980); - $this->partNames []= $elem980; + $elem989 = null; + $xfer += $input->readString($elem989); + $this->partNames []= $elem989; } $xfer += $input->readListEnd(); } else { @@ -21312,9 +21758,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter981) + foreach ($this->partNames as $iter990) { - $xfer += $output->writeString($iter981); + $xfer += $output->writeString($iter990); } } $output->writeListEnd(); @@ -21750,14 +22196,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size982 = 0; - $_etype985 = 0; - $xfer += $input->readListBegin($_etype985, $_size982); - for ($_i986 = 0; $_i986 < $_size982; ++$_i986) + $_size991 = 0; + $_etype994 = 0; + $xfer += $input->readListBegin($_etype994, $_size991); + for ($_i995 = 0; $_i995 < $_size991; ++$_i995) { - $elem987 = null; - $xfer += $input->readString($elem987); - $this->success []= $elem987; + $elem996 = null; + $xfer += $input->readString($elem996); + $this->success []= $elem996; } $xfer += $input->readListEnd(); } else { @@ -21793,9 +22239,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter988) + foreach ($this->success as $iter997) { - $xfer += $output->writeString($iter988); + $xfer += $output->writeString($iter997); } } $output->writeListEnd(); @@ -21997,14 +22443,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size989 = 0; - $_etype992 = 0; - $xfer += $input->readListBegin($_etype992, $_size989); - for ($_i993 = 0; $_i993 < $_size989; ++$_i993) + $_size998 = 0; + $_etype1001 = 0; + $xfer += $input->readListBegin($_etype1001, $_size998); + for ($_i1002 = 0; $_i1002 < $_size998; ++$_i1002) { - $elem994 = null; - $xfer += $input->readString($elem994); - $this->success []= $elem994; + $elem1003 = null; + $xfer += $input->readString($elem1003); + $this->success []= $elem1003; } $xfer += $input->readListEnd(); } else { @@ -22040,9 +22486,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter995) + foreach ($this->success as $iter1004) { - $xfer += $output->writeString($iter995); + $xfer += $output->writeString($iter1004); } } $output->writeListEnd(); @@ -22198,14 +22644,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size996 = 0; - $_etype999 = 0; - $xfer += $input->readListBegin($_etype999, $_size996); - for ($_i1000 = 0; $_i1000 < $_size996; ++$_i1000) + $_size1005 = 0; + $_etype1008 = 0; + $xfer += $input->readListBegin($_etype1008, $_size1005); + for ($_i1009 = 0; $_i1009 < $_size1005; ++$_i1009) { - $elem1001 = null; - $xfer += $input->readString($elem1001); - $this->success []= $elem1001; + $elem1010 = null; + $xfer += $input->readString($elem1010); + $this->success []= $elem1010; } $xfer += $input->readListEnd(); } else { @@ -22241,9 +22687,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1002) + foreach ($this->success as $iter1011) { - $xfer += $output->writeString($iter1002); + $xfer += $output->writeString($iter1011); } } $output->writeListEnd(); @@ -22348,14 +22794,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size1003 = 0; - $_etype1006 = 0; - $xfer += $input->readListBegin($_etype1006, $_size1003); - for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) + $_size1012 = 0; + $_etype1015 = 0; + $xfer += $input->readListBegin($_etype1015, $_size1012); + for ($_i1016 = 0; $_i1016 < $_size1012; ++$_i1016) { - $elem1008 = null; - $xfer += $input->readString($elem1008); - $this->tbl_types []= $elem1008; + $elem1017 = null; + $xfer += $input->readString($elem1017); + $this->tbl_types []= $elem1017; } $xfer += $input->readListEnd(); } else { @@ -22393,9 +22839,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1009) + foreach ($this->tbl_types as $iter1018) { - $xfer += $output->writeString($iter1009); + $xfer += $output->writeString($iter1018); } } $output->writeListEnd(); @@ -22472,15 +22918,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1010 = 0; - $_etype1013 = 0; - $xfer += $input->readListBegin($_etype1013, $_size1010); - for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) + $_size1019 = 0; + $_etype1022 = 0; + $xfer += $input->readListBegin($_etype1022, $_size1019); + for ($_i1023 = 0; $_i1023 < $_size1019; ++$_i1023) { - $elem1015 = null; - $elem1015 = new \metastore\TableMeta(); - $xfer += $elem1015->read($input); - $this->success []= $elem1015; + $elem1024 = null; + $elem1024 = new \metastore\TableMeta(); + $xfer += $elem1024->read($input); + $this->success []= $elem1024; } $xfer += $input->readListEnd(); } else { @@ -22516,9 +22962,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1016) + foreach ($this->success as $iter1025) { - $xfer += $iter1016->write($output); + $xfer += $iter1025->write($output); } } $output->writeListEnd(); @@ -22674,14 +23120,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1017 = 0; - $_etype1020 = 0; - $xfer += $input->readListBegin($_etype1020, $_size1017); - for ($_i1021 = 0; $_i1021 < $_size1017; ++$_i1021) + $_size1026 = 0; + $_etype1029 = 0; + $xfer += $input->readListBegin($_etype1029, $_size1026); + for ($_i1030 = 0; $_i1030 < $_size1026; ++$_i1030) { - $elem1022 = null; - $xfer += $input->readString($elem1022); - $this->success []= $elem1022; + $elem1031 = null; + $xfer += $input->readString($elem1031); + $this->success []= $elem1031; } $xfer += $input->readListEnd(); } else { @@ -22717,9 +23163,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1023) + foreach ($this->success as $iter1032) { - $xfer += $output->writeString($iter1023); + $xfer += $output->writeString($iter1032); } } $output->writeListEnd(); @@ -23034,14 +23480,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size1024 = 0; - $_etype1027 = 0; - $xfer += $input->readListBegin($_etype1027, $_size1024); - for ($_i1028 = 0; $_i1028 < $_size1024; ++$_i1028) + $_size1033 = 0; + $_etype1036 = 0; + $xfer += $input->readListBegin($_etype1036, $_size1033); + for ($_i1037 = 0; $_i1037 < $_size1033; ++$_i1037) { - $elem1029 = null; - $xfer += $input->readString($elem1029); - $this->tbl_names []= $elem1029; + $elem1038 = null; + $xfer += $input->readString($elem1038); + $this->tbl_names []= $elem1038; } $xfer += $input->readListEnd(); } else { @@ -23074,9 +23520,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1030) + foreach ($this->tbl_names as $iter1039) { - $xfer += $output->writeString($iter1030); + $xfer += $output->writeString($iter1039); } } $output->writeListEnd(); @@ -23141,15 +23587,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1031 = 0; - $_etype1034 = 0; - $xfer += $input->readListBegin($_etype1034, $_size1031); - for ($_i1035 = 0; $_i1035 < $_size1031; ++$_i1035) + $_size1040 = 0; + $_etype1043 = 0; + $xfer += $input->readListBegin($_etype1043, $_size1040); + for ($_i1044 = 0; $_i1044 < $_size1040; ++$_i1044) { - $elem1036 = null; - $elem1036 = new \metastore\Table(); - $xfer += $elem1036->read($input); - $this->success []= $elem1036; + $elem1045 = null; + $elem1045 = new \metastore\Table(); + $xfer += $elem1045->read($input); + $this->success []= $elem1045; } $xfer += $input->readListEnd(); } else { @@ -23177,9 +23623,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1037) + foreach ($this->success as $iter1046) { - $xfer += $iter1037->write($output); + $xfer += $iter1046->write($output); } } $output->writeListEnd(); @@ -24379,14 +24825,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1038 = 0; - $_etype1041 = 0; - $xfer += $input->readListBegin($_etype1041, $_size1038); - for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042) + $_size1047 = 0; + $_etype1050 = 0; + $xfer += $input->readListBegin($_etype1050, $_size1047); + for ($_i1051 = 0; $_i1051 < $_size1047; ++$_i1051) { - $elem1043 = null; - $xfer += $input->readString($elem1043); - $this->success []= $elem1043; + $elem1052 = null; + $xfer += $input->readString($elem1052); + $this->success []= $elem1052; } $xfer += $input->readListEnd(); } else { @@ -24438,9 +24884,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1044) + foreach ($this->success as $iter1053) { - $xfer += $output->writeString($iter1044); + $xfer += $output->writeString($iter1053); } } $output->writeListEnd(); @@ -25963,15 +26409,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1045 = 0; - $_etype1048 = 0; - $xfer += $input->readListBegin($_etype1048, $_size1045); - for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) + $_size1054 = 0; + $_etype1057 = 0; + $xfer += $input->readListBegin($_etype1057, $_size1054); + for ($_i1058 = 0; $_i1058 < $_size1054; ++$_i1058) { - $elem1050 = null; - $elem1050 = new \metastore\Partition(); - $xfer += $elem1050->read($input); - $this->new_parts []= $elem1050; + $elem1059 = null; + $elem1059 = new \metastore\Partition(); + $xfer += $elem1059->read($input); + $this->new_parts []= $elem1059; } $xfer += $input->readListEnd(); } else { @@ -25999,9 +26445,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1051) + foreach ($this->new_parts as $iter1060) { - $xfer += $iter1051->write($output); + $xfer += $iter1060->write($output); } } $output->writeListEnd(); @@ -26216,15 +26662,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1052 = 0; - $_etype1055 = 0; - $xfer += $input->readListBegin($_etype1055, $_size1052); - for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) + $_size1061 = 0; + $_etype1064 = 0; + $xfer += $input->readListBegin($_etype1064, $_size1061); + for ($_i1065 = 0; $_i1065 < $_size1061; ++$_i1065) { - $elem1057 = null; - $elem1057 = new \metastore\PartitionSpec(); - $xfer += $elem1057->read($input); - $this->new_parts []= $elem1057; + $elem1066 = null; + $elem1066 = new \metastore\PartitionSpec(); + $xfer += $elem1066->read($input); + $this->new_parts []= $elem1066; } $xfer += $input->readListEnd(); } else { @@ -26252,9 +26698,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1058) + foreach ($this->new_parts as $iter1067) { - $xfer += $iter1058->write($output); + $xfer += $iter1067->write($output); } } $output->writeListEnd(); @@ -26504,14 +26950,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1059 = 0; - $_etype1062 = 0; - $xfer += $input->readListBegin($_etype1062, $_size1059); - for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) + $_size1068 = 0; + $_etype1071 = 0; + $xfer += $input->readListBegin($_etype1071, $_size1068); + for ($_i1072 = 0; $_i1072 < $_size1068; ++$_i1072) { - $elem1064 = null; - $xfer += $input->readString($elem1064); - $this->part_vals []= $elem1064; + $elem1073 = null; + $xfer += $input->readString($elem1073); + $this->part_vals []= $elem1073; } $xfer += $input->readListEnd(); } else { @@ -26549,9 +26995,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1065) + foreach ($this->part_vals as $iter1074) { - $xfer += $output->writeString($iter1065); + $xfer += $output->writeString($iter1074); } } $output->writeListEnd(); @@ -27053,14 +27499,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1066 = 0; - $_etype1069 = 0; - $xfer += $input->readListBegin($_etype1069, $_size1066); - for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) + $_size1075 = 0; + $_etype1078 = 0; + $xfer += $input->readListBegin($_etype1078, $_size1075); + for ($_i1079 = 0; $_i1079 < $_size1075; ++$_i1079) { - $elem1071 = null; - $xfer += $input->readString($elem1071); - $this->part_vals []= $elem1071; + $elem1080 = null; + $xfer += $input->readString($elem1080); + $this->part_vals []= $elem1080; } $xfer += $input->readListEnd(); } else { @@ -27106,9 +27552,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1072) + foreach ($this->part_vals as $iter1081) { - $xfer += $output->writeString($iter1072); + $xfer += $output->writeString($iter1081); } } $output->writeListEnd(); @@ -27962,14 +28408,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1073 = 0; - $_etype1076 = 0; - $xfer += $input->readListBegin($_etype1076, $_size1073); - for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) + $_size1082 = 0; + $_etype1085 = 0; + $xfer += $input->readListBegin($_etype1085, $_size1082); + for ($_i1086 = 0; $_i1086 < $_size1082; ++$_i1086) { - $elem1078 = null; - $xfer += $input->readString($elem1078); - $this->part_vals []= $elem1078; + $elem1087 = null; + $xfer += $input->readString($elem1087); + $this->part_vals []= $elem1087; } $xfer += $input->readListEnd(); } else { @@ -28014,9 +28460,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1079) + foreach ($this->part_vals as $iter1088) { - $xfer += $output->writeString($iter1079); + $xfer += $output->writeString($iter1088); } } $output->writeListEnd(); @@ -28269,14 +28715,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1080 = 0; - $_etype1083 = 0; - $xfer += $input->readListBegin($_etype1083, $_size1080); - for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) + $_size1089 = 0; + $_etype1092 = 0; + $xfer += $input->readListBegin($_etype1092, $_size1089); + for ($_i1093 = 0; $_i1093 < $_size1089; ++$_i1093) { - $elem1085 = null; - $xfer += $input->readString($elem1085); - $this->part_vals []= $elem1085; + $elem1094 = null; + $xfer += $input->readString($elem1094); + $this->part_vals []= $elem1094; } $xfer += $input->readListEnd(); } else { @@ -28329,9 +28775,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1086) + foreach ($this->part_vals as $iter1095) { - $xfer += $output->writeString($iter1086); + $xfer += $output->writeString($iter1095); } } $output->writeListEnd(); @@ -29345,14 +29791,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1087 = 0; - $_etype1090 = 0; - $xfer += $input->readListBegin($_etype1090, $_size1087); - for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) + $_size1096 = 0; + $_etype1099 = 0; + $xfer += $input->readListBegin($_etype1099, $_size1096); + for ($_i1100 = 0; $_i1100 < $_size1096; ++$_i1100) { - $elem1092 = null; - $xfer += $input->readString($elem1092); - $this->part_vals []= $elem1092; + $elem1101 = null; + $xfer += $input->readString($elem1101); + $this->part_vals []= $elem1101; } $xfer += $input->readListEnd(); } else { @@ -29390,9 +29836,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1093) + foreach ($this->part_vals as $iter1102) { - $xfer += $output->writeString($iter1093); + $xfer += $output->writeString($iter1102); } } $output->writeListEnd(); @@ -29616,387 +30062,6 @@ class ThriftHiveMetastore_exchange_partition_args { return 'ThriftHiveMetastore_exchange_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::MAP) { - $this->partitionSpecs = array(); - $_size1094 = 0; - $_ktype1095 = 0; - $_vtype1096 = 0; - $xfer += $input->readMapBegin($_ktype1095, $_vtype1096, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) - { - $key1099 = ''; - $val1100 = ''; - $xfer += $input->readString($key1099); - $xfer += $input->readString($val1100); - $this->partitionSpecs[$key1099] = $val1100; - } - $xfer += $input->readMapEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->source_db); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->source_table_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dest_db); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dest_table_name); - } 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_exchange_partition_args'); - if ($this->partitionSpecs !== null) { - if (!is_array($this->partitionSpecs)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('partitionSpecs', TType::MAP, 1); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); - { - foreach ($this->partitionSpecs as $kiter1101 => $viter1102) - { - $xfer += $output->writeString($kiter1101); - $xfer += $output->writeString($viter1102); - } - } - $output->writeMapEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->source_db !== null) { - $xfer += $output->writeFieldBegin('source_db', TType::STRING, 2); - $xfer += $output->writeString($this->source_db); - $xfer += $output->writeFieldEnd(); - } - if ($this->source_table_name !== null) { - $xfer += $output->writeFieldBegin('source_table_name', TType::STRING, 3); - $xfer += $output->writeString($this->source_table_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->dest_db !== null) { - $xfer += $output->writeFieldBegin('dest_db', TType::STRING, 4); - $xfer += $output->writeString($this->dest_db); - $xfer += $output->writeFieldEnd(); - } - if ($this->dest_table_name !== null) { - $xfer += $output->writeFieldBegin('dest_table_name', TType::STRING, 5); - $xfer += $output->writeString($this->dest_table_name); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class ThriftHiveMetastore_exchange_partition_result { - static $_TSPEC; - - /** - * @var \metastore\Partition - */ - public $success = null; - /** - * @var \metastore\MetaException - */ - public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ - public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ - public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ - public $o4 = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', - ), - 1 => array( - 'var' => 'o1', - 'type' => TType::STRUCT, - 'class' => '\metastore\MetaException', - ), - 2 => array( - 'var' => 'o2', - 'type' => TType::STRUCT, - 'class' => '\metastore\NoSuchObjectException', - ), - 3 => array( - 'var' => 'o3', - 'type' => TType::STRUCT, - 'class' => '\metastore\InvalidObjectException', - ), - 4 => array( - 'var' => 'o4', - 'type' => TType::STRUCT, - 'class' => '\metastore\InvalidInputException', - ), - ); - } - 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']; - } - if (isset($vals['o3'])) { - $this->o3 = $vals['o3']; - } - if (isset($vals['o4'])) { - $this->o4 = $vals['o4']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_exchange_partition_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 \metastore\Partition(); - $xfer += $this->success->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->o1 = new \metastore\MetaException(); - $xfer += $this->o1->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->o2 = new \metastore\NoSuchObjectException(); - $xfer += $this->o2->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->o3 = new \metastore\InvalidObjectException(); - $xfer += $this->o3->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->o4 = new \metastore\InvalidInputException(); - $xfer += $this->o4->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_exchange_partition_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(); - } - if ($this->o3 !== null) { - $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); - $xfer += $this->o3->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->o4 !== null) { - $xfer += $output->writeFieldBegin('o4', TType::STRUCT, 4); - $xfer += $this->o4->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class ThriftHiveMetastore_exchange_partitions_args { - static $_TSPEC; - - /** - * @var array - */ - public $partitionSpecs = null; - /** - * @var string - */ - public $source_db = null; - /** - * @var string - */ - public $source_table_name = null; - /** - * @var string - */ - public $dest_db = null; - /** - * @var string - */ - public $dest_table_name = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'partitionSpecs', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), - ), - 2 => array( - 'var' => 'source_db', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'source_table_name', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'dest_db', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'dest_table_name', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['partitionSpecs'])) { - $this->partitionSpecs = $vals['partitionSpecs']; - } - if (isset($vals['source_db'])) { - $this->source_db = $vals['source_db']; - } - if (isset($vals['source_table_name'])) { - $this->source_table_name = $vals['source_table_name']; - } - if (isset($vals['dest_db'])) { - $this->dest_db = $vals['dest_db']; - } - if (isset($vals['dest_table_name'])) { - $this->dest_table_name = $vals['dest_table_name']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_exchange_partitions_args'; - } - public function read($input) { $xfer = 0; @@ -30072,7 +30137,7 @@ class ThriftHiveMetastore_exchange_partitions_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_args'); if ($this->partitionSpecs !== null) { if (!is_array($this->partitionSpecs)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -30118,11 +30183,11 @@ class ThriftHiveMetastore_exchange_partitions_args { } -class ThriftHiveMetastore_exchange_partitions_result { +class ThriftHiveMetastore_exchange_partition_result { static $_TSPEC; /** - * @var \metastore\Partition[] + * @var \metastore\Partition */ public $success = null; /** @@ -30147,12 +30212,8 @@ class ThriftHiveMetastore_exchange_partitions_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', - ), + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', ), 1 => array( 'var' => 'o1', @@ -30196,7 +30257,7 @@ class ThriftHiveMetastore_exchange_partitions_result { } public function getName() { - return 'ThriftHiveMetastore_exchange_partitions_result'; + return 'ThriftHiveMetastore_exchange_partition_result'; } public function read($input) @@ -30215,19 +30276,9 @@ class ThriftHiveMetastore_exchange_partitions_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size1112 = 0; - $_etype1115 = 0; - $xfer += $input->readListBegin($_etype1115, $_size1112); - for ($_i1116 = 0; $_i1116 < $_size1112; ++$_i1116) - { - $elem1117 = null; - $elem1117 = new \metastore\Partition(); - $xfer += $elem1117->read($input); - $this->success []= $elem1117; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\Partition(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -30276,22 +30327,13 @@ class ThriftHiveMetastore_exchange_partitions_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter1118) - { - $xfer += $iter1118->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -30321,84 +30363,84 @@ class ThriftHiveMetastore_exchange_partitions_result { } -class ThriftHiveMetastore_get_partition_with_auth_args { +class ThriftHiveMetastore_exchange_partitions_args { static $_TSPEC; /** - * @var string + * @var array */ - public $db_name = null; + public $partitionSpecs = null; /** * @var string */ - public $tbl_name = null; + public $source_db = null; /** - * @var string[] + * @var string */ - public $part_vals = null; + public $source_table_name = null; /** * @var string */ - public $user_name = null; + public $dest_db = null; /** - * @var string[] + * @var string */ - public $group_names = null; + public $dest_table_name = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'db_name', - 'type' => TType::STRING, + 'var' => 'partitionSpecs', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), ), 2 => array( - 'var' => 'tbl_name', + 'var' => 'source_db', 'type' => TType::STRING, ), 3 => array( - 'var' => 'part_vals', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'source_table_name', + 'type' => TType::STRING, ), 4 => array( - 'var' => 'user_name', + 'var' => 'dest_db', 'type' => TType::STRING, ), 5 => array( - 'var' => 'group_names', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'dest_table_name', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['db_name'])) { - $this->db_name = $vals['db_name']; + if (isset($vals['partitionSpecs'])) { + $this->partitionSpecs = $vals['partitionSpecs']; } - if (isset($vals['tbl_name'])) { - $this->tbl_name = $vals['tbl_name']; + if (isset($vals['source_db'])) { + $this->source_db = $vals['source_db']; } - if (isset($vals['part_vals'])) { - $this->part_vals = $vals['part_vals']; + if (isset($vals['source_table_name'])) { + $this->source_table_name = $vals['source_table_name']; } - if (isset($vals['user_name'])) { - $this->user_name = $vals['user_name']; + if (isset($vals['dest_db'])) { + $this->dest_db = $vals['dest_db']; } - if (isset($vals['group_names'])) { - $this->group_names = $vals['group_names']; + if (isset($vals['dest_table_name'])) { + $this->dest_table_name = $vals['dest_table_name']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_with_auth_args'; + return 'ThriftHiveMetastore_exchange_partitions_args'; } public function read($input) @@ -30417,56 +30459,49 @@ class ThriftHiveMetastore_get_partition_with_auth_args { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->db_name); + if ($ftype == TType::MAP) { + $this->partitionSpecs = array(); + $_size1112 = 0; + $_ktype1113 = 0; + $_vtype1114 = 0; + $xfer += $input->readMapBegin($_ktype1113, $_vtype1114, $_size1112); + for ($_i1116 = 0; $_i1116 < $_size1112; ++$_i1116) + { + $key1117 = ''; + $val1118 = ''; + $xfer += $input->readString($key1117); + $xfer += $input->readString($val1118); + $this->partitionSpecs[$key1117] = $val1118; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tbl_name); + $xfer += $input->readString($this->source_db); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::LST) { - $this->part_vals = array(); - $_size1119 = 0; - $_etype1122 = 0; - $xfer += $input->readListBegin($_etype1122, $_size1119); - for ($_i1123 = 0; $_i1123 < $_size1119; ++$_i1123) - { - $elem1124 = null; - $xfer += $input->readString($elem1124); - $this->part_vals []= $elem1124; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->source_table_name); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->user_name); + $xfer += $input->readString($this->dest_db); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::LST) { - $this->group_names = array(); - $_size1125 = 0; - $_etype1128 = 0; - $xfer += $input->readListBegin($_etype1128, $_size1125); - for ($_i1129 = 0; $_i1129 < $_size1125; ++$_i1129) - { - $elem1130 = null; - $xfer += $input->readString($elem1130); - $this->group_names []= $elem1130; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dest_table_name); } else { $xfer += $input->skip($ftype); } @@ -30483,54 +30518,43 @@ class ThriftHiveMetastore_get_partition_with_auth_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_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)) { + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_args'); + if ($this->partitionSpecs !== null) { + if (!is_array($this->partitionSpecs)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); + $xfer += $output->writeFieldBegin('partitionSpecs', TType::MAP, 1); { - $output->writeListBegin(TType::STRING, count($this->part_vals)); + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->part_vals as $iter1131) + foreach ($this->partitionSpecs as $kiter1119 => $viter1120) { - $xfer += $output->writeString($iter1131); + $xfer += $output->writeString($kiter1119); + $xfer += $output->writeString($viter1120); } } - $output->writeListEnd(); + $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->user_name !== null) { - $xfer += $output->writeFieldBegin('user_name', TType::STRING, 4); - $xfer += $output->writeString($this->user_name); + if ($this->source_db !== null) { + $xfer += $output->writeFieldBegin('source_db', TType::STRING, 2); + $xfer += $output->writeString($this->source_db); $xfer += $output->writeFieldEnd(); } - if ($this->group_names !== null) { - if (!is_array($this->group_names)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('group_names', TType::LST, 5); - { - $output->writeListBegin(TType::STRING, count($this->group_names)); - { - foreach ($this->group_names as $iter1132) - { - $xfer += $output->writeString($iter1132); - } - } - $output->writeListEnd(); - } + if ($this->source_table_name !== null) { + $xfer += $output->writeFieldBegin('source_table_name', TType::STRING, 3); + $xfer += $output->writeString($this->source_table_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_db !== null) { + $xfer += $output->writeFieldBegin('dest_db', TType::STRING, 4); + $xfer += $output->writeString($this->dest_db); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_table_name !== null) { + $xfer += $output->writeFieldBegin('dest_table_name', TType::STRING, 5); + $xfer += $output->writeString($this->dest_table_name); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -30540,11 +30564,11 @@ class ThriftHiveMetastore_get_partition_with_auth_args { } -class ThriftHiveMetastore_get_partition_with_auth_result { +class ThriftHiveMetastore_exchange_partitions_result { static $_TSPEC; /** - * @var \metastore\Partition + * @var \metastore\Partition[] */ public $success = null; /** @@ -30555,14 +30579,26 @@ class ThriftHiveMetastore_get_partition_with_auth_result { * @var \metastore\NoSuchObjectException */ public $o2 = null; + /** + * @var \metastore\InvalidObjectException + */ + public $o3 = null; + /** + * @var \metastore\InvalidInputException + */ + public $o4 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), ), 1 => array( 'var' => 'o1', @@ -30574,6 +30610,16 @@ class ThriftHiveMetastore_get_partition_with_auth_result { 'type' => TType::STRUCT, 'class' => '\metastore\NoSuchObjectException', ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidObjectException', + ), + 4 => array( + 'var' => 'o4', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidInputException', + ), ); } if (is_array($vals)) { @@ -30586,11 +30632,17 @@ class ThriftHiveMetastore_get_partition_with_auth_result { if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + if (isset($vals['o4'])) { + $this->o4 = $vals['o4']; + } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_with_auth_result'; + return 'ThriftHiveMetastore_exchange_partitions_result'; } public function read($input) @@ -30609,9 +30661,19 @@ class ThriftHiveMetastore_get_partition_with_auth_result { switch ($fid) { case 0: - if ($ftype == TType::STRUCT) { - $this->success = new \metastore\Partition(); - $xfer += $this->success->read($input); + if ($ftype == TType::LST) { + $this->success = array(); + $_size1121 = 0; + $_etype1124 = 0; + $xfer += $input->readListBegin($_etype1124, $_size1121); + for ($_i1125 = 0; $_i1125 < $_size1121; ++$_i1125) + { + $elem1126 = null; + $elem1126 = new \metastore\Partition(); + $xfer += $elem1126->read($input); + $this->success []= $elem1126; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -30632,6 +30694,22 @@ class ThriftHiveMetastore_get_partition_with_auth_result { $xfer += $input->skip($ftype); } break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\InvalidObjectException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRUCT) { + $this->o4 = new \metastore\InvalidInputException(); + $xfer += $this->o4->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -30644,13 +30722,22 @@ class ThriftHiveMetastore_get_partition_with_auth_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_result'); if ($this->success !== null) { - if (!is_object($this->success)) { + if (!is_array($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->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter1127) + { + $xfer += $iter1127->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -30663,6 +30750,16 @@ class ThriftHiveMetastore_get_partition_with_auth_result { $xfer += $this->o2->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o4 !== null) { + $xfer += $output->writeFieldBegin('o4', TType::STRUCT, 4); + $xfer += $this->o4->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -30670,7 +30767,7 @@ class ThriftHiveMetastore_get_partition_with_auth_result { } -class ThriftHiveMetastore_get_partition_by_name_args { +class ThriftHiveMetastore_get_partition_with_auth_args { static $_TSPEC; /** @@ -30681,10 +30778,18 @@ class ThriftHiveMetastore_get_partition_by_name_args { * @var string */ public $tbl_name = null; + /** + * @var string[] + */ + public $part_vals = null; /** * @var string */ - public $part_name = null; + public $user_name = null; + /** + * @var string[] + */ + public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -30698,9 +30803,25 @@ class ThriftHiveMetastore_get_partition_by_name_args { 'type' => TType::STRING, ), 3 => array( - 'var' => 'part_name', + 'var' => 'part_vals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 4 => array( + 'var' => 'user_name', 'type' => TType::STRING, ), + 5 => array( + 'var' => 'group_names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), ); } if (is_array($vals)) { @@ -30710,14 +30831,339 @@ class ThriftHiveMetastore_get_partition_by_name_args { if (isset($vals['tbl_name'])) { $this->tbl_name = $vals['tbl_name']; } - if (isset($vals['part_name'])) { - $this->part_name = $vals['part_name']; + if (isset($vals['part_vals'])) { + $this->part_vals = $vals['part_vals']; + } + if (isset($vals['user_name'])) { + $this->user_name = $vals['user_name']; + } + if (isset($vals['group_names'])) { + $this->group_names = $vals['group_names']; } } } public function getName() { - return 'ThriftHiveMetastore_get_partition_by_name_args'; + return 'ThriftHiveMetastore_get_partition_with_auth_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(); + $_size1128 = 0; + $_etype1131 = 0; + $xfer += $input->readListBegin($_etype1131, $_size1128); + for ($_i1132 = 0; $_i1132 < $_size1128; ++$_i1132) + { + $elem1133 = null; + $xfer += $input->readString($elem1133); + $this->part_vals []= $elem1133; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->user_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->group_names = array(); + $_size1134 = 0; + $_etype1137 = 0; + $xfer += $input->readListBegin($_etype1137, $_size1134); + for ($_i1138 = 0; $_i1138 < $_size1134; ++$_i1138) + { + $elem1139 = null; + $xfer += $input->readString($elem1139); + $this->group_names []= $elem1139; + } + $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_with_auth_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 $iter1140) + { + $xfer += $output->writeString($iter1140); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->user_name !== null) { + $xfer += $output->writeFieldBegin('user_name', TType::STRING, 4); + $xfer += $output->writeString($this->user_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->group_names !== null) { + if (!is_array($this->group_names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('group_names', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->group_names)); + { + foreach ($this->group_names as $iter1141) + { + $xfer += $output->writeString($iter1141); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_with_auth_result { + static $_TSPEC; + + /** + * @var \metastore\Partition + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + 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_with_auth_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 \metastore\Partition(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $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_with_auth_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_by_name_args { + static $_TSPEC; + + /** + * @var string + */ + public $db_name = null; + /** + * @var string + */ + public $tbl_name = null; + /** + * @var string + */ + public $part_name = 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_name', + '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_name'])) { + $this->part_name = $vals['part_name']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_by_name_args'; } public function read($input) @@ -31117,15 +31563,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1133 = 0; - $_etype1136 = 0; - $xfer += $input->readListBegin($_etype1136, $_size1133); - for ($_i1137 = 0; $_i1137 < $_size1133; ++$_i1137) + $_size1142 = 0; + $_etype1145 = 0; + $xfer += $input->readListBegin($_etype1145, $_size1142); + for ($_i1146 = 0; $_i1146 < $_size1142; ++$_i1146) { - $elem1138 = null; - $elem1138 = new \metastore\Partition(); - $xfer += $elem1138->read($input); - $this->success []= $elem1138; + $elem1147 = null; + $elem1147 = new \metastore\Partition(); + $xfer += $elem1147->read($input); + $this->success []= $elem1147; } $xfer += $input->readListEnd(); } else { @@ -31169,9 +31615,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1139) + foreach ($this->success as $iter1148) { - $xfer += $iter1139->write($output); + $xfer += $iter1148->write($output); } } $output->writeListEnd(); @@ -31317,14 +31763,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1140 = 0; - $_etype1143 = 0; - $xfer += $input->readListBegin($_etype1143, $_size1140); - for ($_i1144 = 0; $_i1144 < $_size1140; ++$_i1144) + $_size1149 = 0; + $_etype1152 = 0; + $xfer += $input->readListBegin($_etype1152, $_size1149); + for ($_i1153 = 0; $_i1153 < $_size1149; ++$_i1153) { - $elem1145 = null; - $xfer += $input->readString($elem1145); - $this->group_names []= $elem1145; + $elem1154 = null; + $xfer += $input->readString($elem1154); + $this->group_names []= $elem1154; } $xfer += $input->readListEnd(); } else { @@ -31372,9 +31818,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1146) + foreach ($this->group_names as $iter1155) { - $xfer += $output->writeString($iter1146); + $xfer += $output->writeString($iter1155); } } $output->writeListEnd(); @@ -31463,15 +31909,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1147 = 0; - $_etype1150 = 0; - $xfer += $input->readListBegin($_etype1150, $_size1147); - for ($_i1151 = 0; $_i1151 < $_size1147; ++$_i1151) + $_size1156 = 0; + $_etype1159 = 0; + $xfer += $input->readListBegin($_etype1159, $_size1156); + for ($_i1160 = 0; $_i1160 < $_size1156; ++$_i1160) { - $elem1152 = null; - $elem1152 = new \metastore\Partition(); - $xfer += $elem1152->read($input); - $this->success []= $elem1152; + $elem1161 = null; + $elem1161 = new \metastore\Partition(); + $xfer += $elem1161->read($input); + $this->success []= $elem1161; } $xfer += $input->readListEnd(); } else { @@ -31515,9 +31961,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1153) + foreach ($this->success as $iter1162) { - $xfer += $iter1153->write($output); + $xfer += $iter1162->write($output); } } $output->writeListEnd(); @@ -31737,15 +32183,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1154 = 0; - $_etype1157 = 0; - $xfer += $input->readListBegin($_etype1157, $_size1154); - for ($_i1158 = 0; $_i1158 < $_size1154; ++$_i1158) + $_size1163 = 0; + $_etype1166 = 0; + $xfer += $input->readListBegin($_etype1166, $_size1163); + for ($_i1167 = 0; $_i1167 < $_size1163; ++$_i1167) { - $elem1159 = null; - $elem1159 = new \metastore\PartitionSpec(); - $xfer += $elem1159->read($input); - $this->success []= $elem1159; + $elem1168 = null; + $elem1168 = new \metastore\PartitionSpec(); + $xfer += $elem1168->read($input); + $this->success []= $elem1168; } $xfer += $input->readListEnd(); } else { @@ -31789,9 +32235,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1160) + foreach ($this->success as $iter1169) { - $xfer += $iter1160->write($output); + $xfer += $iter1169->write($output); } } $output->writeListEnd(); @@ -32010,14 +32456,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1161 = 0; - $_etype1164 = 0; - $xfer += $input->readListBegin($_etype1164, $_size1161); - for ($_i1165 = 0; $_i1165 < $_size1161; ++$_i1165) + $_size1170 = 0; + $_etype1173 = 0; + $xfer += $input->readListBegin($_etype1173, $_size1170); + for ($_i1174 = 0; $_i1174 < $_size1170; ++$_i1174) { - $elem1166 = null; - $xfer += $input->readString($elem1166); - $this->success []= $elem1166; + $elem1175 = null; + $xfer += $input->readString($elem1175); + $this->success []= $elem1175; } $xfer += $input->readListEnd(); } else { @@ -32061,9 +32507,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1167) + foreach ($this->success as $iter1176) { - $xfer += $output->writeString($iter1167); + $xfer += $output->writeString($iter1176); } } $output->writeListEnd(); @@ -32394,14 +32840,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1168 = 0; - $_etype1171 = 0; - $xfer += $input->readListBegin($_etype1171, $_size1168); - for ($_i1172 = 0; $_i1172 < $_size1168; ++$_i1172) + $_size1177 = 0; + $_etype1180 = 0; + $xfer += $input->readListBegin($_etype1180, $_size1177); + for ($_i1181 = 0; $_i1181 < $_size1177; ++$_i1181) { - $elem1173 = null; - $xfer += $input->readString($elem1173); - $this->part_vals []= $elem1173; + $elem1182 = null; + $xfer += $input->readString($elem1182); + $this->part_vals []= $elem1182; } $xfer += $input->readListEnd(); } else { @@ -32446,9 +32892,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1174) + foreach ($this->part_vals as $iter1183) { - $xfer += $output->writeString($iter1174); + $xfer += $output->writeString($iter1183); } } $output->writeListEnd(); @@ -32542,15 +32988,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1175 = 0; - $_etype1178 = 0; - $xfer += $input->readListBegin($_etype1178, $_size1175); - for ($_i1179 = 0; $_i1179 < $_size1175; ++$_i1179) + $_size1184 = 0; + $_etype1187 = 0; + $xfer += $input->readListBegin($_etype1187, $_size1184); + for ($_i1188 = 0; $_i1188 < $_size1184; ++$_i1188) { - $elem1180 = null; - $elem1180 = new \metastore\Partition(); - $xfer += $elem1180->read($input); - $this->success []= $elem1180; + $elem1189 = null; + $elem1189 = new \metastore\Partition(); + $xfer += $elem1189->read($input); + $this->success []= $elem1189; } $xfer += $input->readListEnd(); } else { @@ -32594,9 +33040,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1181) + foreach ($this->success as $iter1190) { - $xfer += $iter1181->write($output); + $xfer += $iter1190->write($output); } } $output->writeListEnd(); @@ -32743,14 +33189,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1182 = 0; - $_etype1185 = 0; - $xfer += $input->readListBegin($_etype1185, $_size1182); - for ($_i1186 = 0; $_i1186 < $_size1182; ++$_i1186) + $_size1191 = 0; + $_etype1194 = 0; + $xfer += $input->readListBegin($_etype1194, $_size1191); + for ($_i1195 = 0; $_i1195 < $_size1191; ++$_i1195) { - $elem1187 = null; - $xfer += $input->readString($elem1187); - $this->part_vals []= $elem1187; + $elem1196 = null; + $xfer += $input->readString($elem1196); + $this->part_vals []= $elem1196; } $xfer += $input->readListEnd(); } else { @@ -32774,14 +33220,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1188 = 0; - $_etype1191 = 0; - $xfer += $input->readListBegin($_etype1191, $_size1188); - for ($_i1192 = 0; $_i1192 < $_size1188; ++$_i1192) + $_size1197 = 0; + $_etype1200 = 0; + $xfer += $input->readListBegin($_etype1200, $_size1197); + for ($_i1201 = 0; $_i1201 < $_size1197; ++$_i1201) { - $elem1193 = null; - $xfer += $input->readString($elem1193); - $this->group_names []= $elem1193; + $elem1202 = null; + $xfer += $input->readString($elem1202); + $this->group_names []= $elem1202; } $xfer += $input->readListEnd(); } else { @@ -32819,9 +33265,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1194) + foreach ($this->part_vals as $iter1203) { - $xfer += $output->writeString($iter1194); + $xfer += $output->writeString($iter1203); } } $output->writeListEnd(); @@ -32846,9 +33292,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1195) + foreach ($this->group_names as $iter1204) { - $xfer += $output->writeString($iter1195); + $xfer += $output->writeString($iter1204); } } $output->writeListEnd(); @@ -32937,15 +33383,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1196 = 0; - $_etype1199 = 0; - $xfer += $input->readListBegin($_etype1199, $_size1196); - for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) + $_size1205 = 0; + $_etype1208 = 0; + $xfer += $input->readListBegin($_etype1208, $_size1205); + for ($_i1209 = 0; $_i1209 < $_size1205; ++$_i1209) { - $elem1201 = null; - $elem1201 = new \metastore\Partition(); - $xfer += $elem1201->read($input); - $this->success []= $elem1201; + $elem1210 = null; + $elem1210 = new \metastore\Partition(); + $xfer += $elem1210->read($input); + $this->success []= $elem1210; } $xfer += $input->readListEnd(); } else { @@ -32989,9 +33435,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1202) + foreach ($this->success as $iter1211) { - $xfer += $iter1202->write($output); + $xfer += $iter1211->write($output); } } $output->writeListEnd(); @@ -33112,14 +33558,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1203 = 0; - $_etype1206 = 0; - $xfer += $input->readListBegin($_etype1206, $_size1203); - for ($_i1207 = 0; $_i1207 < $_size1203; ++$_i1207) + $_size1212 = 0; + $_etype1215 = 0; + $xfer += $input->readListBegin($_etype1215, $_size1212); + for ($_i1216 = 0; $_i1216 < $_size1212; ++$_i1216) { - $elem1208 = null; - $xfer += $input->readString($elem1208); - $this->part_vals []= $elem1208; + $elem1217 = null; + $xfer += $input->readString($elem1217); + $this->part_vals []= $elem1217; } $xfer += $input->readListEnd(); } else { @@ -33164,9 +33610,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1209) + foreach ($this->part_vals as $iter1218) { - $xfer += $output->writeString($iter1209); + $xfer += $output->writeString($iter1218); } } $output->writeListEnd(); @@ -33259,14 +33705,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1210 = 0; - $_etype1213 = 0; - $xfer += $input->readListBegin($_etype1213, $_size1210); - for ($_i1214 = 0; $_i1214 < $_size1210; ++$_i1214) + $_size1219 = 0; + $_etype1222 = 0; + $xfer += $input->readListBegin($_etype1222, $_size1219); + for ($_i1223 = 0; $_i1223 < $_size1219; ++$_i1223) { - $elem1215 = null; - $xfer += $input->readString($elem1215); - $this->success []= $elem1215; + $elem1224 = null; + $xfer += $input->readString($elem1224); + $this->success []= $elem1224; } $xfer += $input->readListEnd(); } else { @@ -33310,9 +33756,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1216) + foreach ($this->success as $iter1225) { - $xfer += $output->writeString($iter1216); + $xfer += $output->writeString($iter1225); } } $output->writeListEnd(); @@ -33555,15 +34001,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1217 = 0; - $_etype1220 = 0; - $xfer += $input->readListBegin($_etype1220, $_size1217); - for ($_i1221 = 0; $_i1221 < $_size1217; ++$_i1221) + $_size1226 = 0; + $_etype1229 = 0; + $xfer += $input->readListBegin($_etype1229, $_size1226); + for ($_i1230 = 0; $_i1230 < $_size1226; ++$_i1230) { - $elem1222 = null; - $elem1222 = new \metastore\Partition(); - $xfer += $elem1222->read($input); - $this->success []= $elem1222; + $elem1231 = null; + $elem1231 = new \metastore\Partition(); + $xfer += $elem1231->read($input); + $this->success []= $elem1231; } $xfer += $input->readListEnd(); } else { @@ -33607,9 +34053,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1223) + foreach ($this->success as $iter1232) { - $xfer += $iter1223->write($output); + $xfer += $iter1232->write($output); } } $output->writeListEnd(); @@ -33852,15 +34298,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1224 = 0; - $_etype1227 = 0; - $xfer += $input->readListBegin($_etype1227, $_size1224); - for ($_i1228 = 0; $_i1228 < $_size1224; ++$_i1228) + $_size1233 = 0; + $_etype1236 = 0; + $xfer += $input->readListBegin($_etype1236, $_size1233); + for ($_i1237 = 0; $_i1237 < $_size1233; ++$_i1237) { - $elem1229 = null; - $elem1229 = new \metastore\PartitionSpec(); - $xfer += $elem1229->read($input); - $this->success []= $elem1229; + $elem1238 = null; + $elem1238 = new \metastore\PartitionSpec(); + $xfer += $elem1238->read($input); + $this->success []= $elem1238; } $xfer += $input->readListEnd(); } else { @@ -33904,9 +34350,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1230) + foreach ($this->success as $iter1239) { - $xfer += $iter1230->write($output); + $xfer += $iter1239->write($output); } } $output->writeListEnd(); @@ -34472,14 +34918,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1231 = 0; - $_etype1234 = 0; - $xfer += $input->readListBegin($_etype1234, $_size1231); - for ($_i1235 = 0; $_i1235 < $_size1231; ++$_i1235) + $_size1240 = 0; + $_etype1243 = 0; + $xfer += $input->readListBegin($_etype1243, $_size1240); + for ($_i1244 = 0; $_i1244 < $_size1240; ++$_i1244) { - $elem1236 = null; - $xfer += $input->readString($elem1236); - $this->names []= $elem1236; + $elem1245 = null; + $xfer += $input->readString($elem1245); + $this->names []= $elem1245; } $xfer += $input->readListEnd(); } else { @@ -34517,9 +34963,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1237) + foreach ($this->names as $iter1246) { - $xfer += $output->writeString($iter1237); + $xfer += $output->writeString($iter1246); } } $output->writeListEnd(); @@ -34608,15 +35054,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1238 = 0; - $_etype1241 = 0; - $xfer += $input->readListBegin($_etype1241, $_size1238); - for ($_i1242 = 0; $_i1242 < $_size1238; ++$_i1242) + $_size1247 = 0; + $_etype1250 = 0; + $xfer += $input->readListBegin($_etype1250, $_size1247); + for ($_i1251 = 0; $_i1251 < $_size1247; ++$_i1251) { - $elem1243 = null; - $elem1243 = new \metastore\Partition(); - $xfer += $elem1243->read($input); - $this->success []= $elem1243; + $elem1252 = null; + $elem1252 = new \metastore\Partition(); + $xfer += $elem1252->read($input); + $this->success []= $elem1252; } $xfer += $input->readListEnd(); } else { @@ -34660,9 +35106,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1244) + foreach ($this->success as $iter1253) { - $xfer += $iter1244->write($output); + $xfer += $iter1253->write($output); } } $output->writeListEnd(); @@ -35001,15 +35447,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1245 = 0; - $_etype1248 = 0; - $xfer += $input->readListBegin($_etype1248, $_size1245); - for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) + $_size1254 = 0; + $_etype1257 = 0; + $xfer += $input->readListBegin($_etype1257, $_size1254); + for ($_i1258 = 0; $_i1258 < $_size1254; ++$_i1258) { - $elem1250 = null; - $elem1250 = new \metastore\Partition(); - $xfer += $elem1250->read($input); - $this->new_parts []= $elem1250; + $elem1259 = null; + $elem1259 = new \metastore\Partition(); + $xfer += $elem1259->read($input); + $this->new_parts []= $elem1259; } $xfer += $input->readListEnd(); } else { @@ -35047,9 +35493,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1251) + foreach ($this->new_parts as $iter1260) { - $xfer += $iter1251->write($output); + $xfer += $iter1260->write($output); } } $output->writeListEnd(); @@ -35264,15 +35710,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1252 = 0; - $_etype1255 = 0; - $xfer += $input->readListBegin($_etype1255, $_size1252); - for ($_i1256 = 0; $_i1256 < $_size1252; ++$_i1256) + $_size1261 = 0; + $_etype1264 = 0; + $xfer += $input->readListBegin($_etype1264, $_size1261); + for ($_i1265 = 0; $_i1265 < $_size1261; ++$_i1265) { - $elem1257 = null; - $elem1257 = new \metastore\Partition(); - $xfer += $elem1257->read($input); - $this->new_parts []= $elem1257; + $elem1266 = null; + $elem1266 = new \metastore\Partition(); + $xfer += $elem1266->read($input); + $this->new_parts []= $elem1266; } $xfer += $input->readListEnd(); } else { @@ -35318,9 +35764,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1258) + foreach ($this->new_parts as $iter1267) { - $xfer += $iter1258->write($output); + $xfer += $iter1267->write($output); } } $output->writeListEnd(); @@ -36008,14 +36454,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1259 = 0; - $_etype1262 = 0; - $xfer += $input->readListBegin($_etype1262, $_size1259); - for ($_i1263 = 0; $_i1263 < $_size1259; ++$_i1263) + $_size1268 = 0; + $_etype1271 = 0; + $xfer += $input->readListBegin($_etype1271, $_size1268); + for ($_i1272 = 0; $_i1272 < $_size1268; ++$_i1272) { - $elem1264 = null; - $xfer += $input->readString($elem1264); - $this->part_vals []= $elem1264; + $elem1273 = null; + $xfer += $input->readString($elem1273); + $this->part_vals []= $elem1273; } $xfer += $input->readListEnd(); } else { @@ -36061,9 +36507,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1265) + foreach ($this->part_vals as $iter1274) { - $xfer += $output->writeString($iter1265); + $xfer += $output->writeString($iter1274); } } $output->writeListEnd(); @@ -36458,14 +36904,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1266 = 0; - $_etype1269 = 0; - $xfer += $input->readListBegin($_etype1269, $_size1266); - for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) + $_size1275 = 0; + $_etype1278 = 0; + $xfer += $input->readListBegin($_etype1278, $_size1275); + for ($_i1279 = 0; $_i1279 < $_size1275; ++$_i1279) { - $elem1271 = null; - $xfer += $input->readString($elem1271); - $this->part_vals []= $elem1271; + $elem1280 = null; + $xfer += $input->readString($elem1280); + $this->part_vals []= $elem1280; } $xfer += $input->readListEnd(); } else { @@ -36500,9 +36946,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1272) + foreach ($this->part_vals as $iter1281) { - $xfer += $output->writeString($iter1272); + $xfer += $output->writeString($iter1281); } } $output->writeListEnd(); @@ -36956,14 +37402,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1273 = 0; - $_etype1276 = 0; - $xfer += $input->readListBegin($_etype1276, $_size1273); - for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) + $_size1282 = 0; + $_etype1285 = 0; + $xfer += $input->readListBegin($_etype1285, $_size1282); + for ($_i1286 = 0; $_i1286 < $_size1282; ++$_i1286) { - $elem1278 = null; - $xfer += $input->readString($elem1278); - $this->success []= $elem1278; + $elem1287 = null; + $xfer += $input->readString($elem1287); + $this->success []= $elem1287; } $xfer += $input->readListEnd(); } else { @@ -36999,9 +37445,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1279) + foreach ($this->success as $iter1288) { - $xfer += $output->writeString($iter1279); + $xfer += $output->writeString($iter1288); } } $output->writeListEnd(); @@ -37161,17 +37607,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1280 = 0; - $_ktype1281 = 0; - $_vtype1282 = 0; - $xfer += $input->readMapBegin($_ktype1281, $_vtype1282, $_size1280); - for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) + $_size1289 = 0; + $_ktype1290 = 0; + $_vtype1291 = 0; + $xfer += $input->readMapBegin($_ktype1290, $_vtype1291, $_size1289); + for ($_i1293 = 0; $_i1293 < $_size1289; ++$_i1293) { - $key1285 = ''; - $val1286 = ''; - $xfer += $input->readString($key1285); - $xfer += $input->readString($val1286); - $this->success[$key1285] = $val1286; + $key1294 = ''; + $val1295 = ''; + $xfer += $input->readString($key1294); + $xfer += $input->readString($val1295); + $this->success[$key1294] = $val1295; } $xfer += $input->readMapEnd(); } else { @@ -37207,10 +37653,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1287 => $viter1288) + foreach ($this->success as $kiter1296 => $viter1297) { - $xfer += $output->writeString($kiter1287); - $xfer += $output->writeString($viter1288); + $xfer += $output->writeString($kiter1296); + $xfer += $output->writeString($viter1297); } } $output->writeMapEnd(); @@ -37330,17 +37776,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1289 = 0; - $_ktype1290 = 0; - $_vtype1291 = 0; - $xfer += $input->readMapBegin($_ktype1290, $_vtype1291, $_size1289); - for ($_i1293 = 0; $_i1293 < $_size1289; ++$_i1293) + $_size1298 = 0; + $_ktype1299 = 0; + $_vtype1300 = 0; + $xfer += $input->readMapBegin($_ktype1299, $_vtype1300, $_size1298); + for ($_i1302 = 0; $_i1302 < $_size1298; ++$_i1302) { - $key1294 = ''; - $val1295 = ''; - $xfer += $input->readString($key1294); - $xfer += $input->readString($val1295); - $this->part_vals[$key1294] = $val1295; + $key1303 = ''; + $val1304 = ''; + $xfer += $input->readString($key1303); + $xfer += $input->readString($val1304); + $this->part_vals[$key1303] = $val1304; } $xfer += $input->readMapEnd(); } else { @@ -37385,10 +37831,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1296 => $viter1297) + foreach ($this->part_vals as $kiter1305 => $viter1306) { - $xfer += $output->writeString($kiter1296); - $xfer += $output->writeString($viter1297); + $xfer += $output->writeString($kiter1305); + $xfer += $output->writeString($viter1306); } } $output->writeMapEnd(); @@ -37710,17 +38156,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1298 = 0; - $_ktype1299 = 0; - $_vtype1300 = 0; - $xfer += $input->readMapBegin($_ktype1299, $_vtype1300, $_size1298); - for ($_i1302 = 0; $_i1302 < $_size1298; ++$_i1302) + $_size1307 = 0; + $_ktype1308 = 0; + $_vtype1309 = 0; + $xfer += $input->readMapBegin($_ktype1308, $_vtype1309, $_size1307); + for ($_i1311 = 0; $_i1311 < $_size1307; ++$_i1311) { - $key1303 = ''; - $val1304 = ''; - $xfer += $input->readString($key1303); - $xfer += $input->readString($val1304); - $this->part_vals[$key1303] = $val1304; + $key1312 = ''; + $val1313 = ''; + $xfer += $input->readString($key1312); + $xfer += $input->readString($val1313); + $this->part_vals[$key1312] = $val1313; } $xfer += $input->readMapEnd(); } else { @@ -37765,10 +38211,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1305 => $viter1306) + foreach ($this->part_vals as $kiter1314 => $viter1315) { - $xfer += $output->writeString($kiter1305); - $xfer += $output->writeString($viter1306); + $xfer += $output->writeString($kiter1314); + $xfer += $output->writeString($viter1315); } } $output->writeMapEnd(); @@ -43247,14 +43693,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1307 = 0; - $_etype1310 = 0; - $xfer += $input->readListBegin($_etype1310, $_size1307); - for ($_i1311 = 0; $_i1311 < $_size1307; ++$_i1311) + $_size1316 = 0; + $_etype1319 = 0; + $xfer += $input->readListBegin($_etype1319, $_size1316); + for ($_i1320 = 0; $_i1320 < $_size1316; ++$_i1320) { - $elem1312 = null; - $xfer += $input->readString($elem1312); - $this->success []= $elem1312; + $elem1321 = null; + $xfer += $input->readString($elem1321); + $this->success []= $elem1321; } $xfer += $input->readListEnd(); } else { @@ -43290,9 +43736,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1313) + foreach ($this->success as $iter1322) { - $xfer += $output->writeString($iter1313); + $xfer += $output->writeString($iter1322); } } $output->writeListEnd(); @@ -44161,14 +44607,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1314 = 0; - $_etype1317 = 0; - $xfer += $input->readListBegin($_etype1317, $_size1314); - for ($_i1318 = 0; $_i1318 < $_size1314; ++$_i1318) + $_size1323 = 0; + $_etype1326 = 0; + $xfer += $input->readListBegin($_etype1326, $_size1323); + for ($_i1327 = 0; $_i1327 < $_size1323; ++$_i1327) { - $elem1319 = null; - $xfer += $input->readString($elem1319); - $this->success []= $elem1319; + $elem1328 = null; + $xfer += $input->readString($elem1328); + $this->success []= $elem1328; } $xfer += $input->readListEnd(); } else { @@ -44204,9 +44650,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1320) + foreach ($this->success as $iter1329) { - $xfer += $output->writeString($iter1320); + $xfer += $output->writeString($iter1329); } } $output->writeListEnd(); @@ -44897,15 +45343,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1321 = 0; - $_etype1324 = 0; - $xfer += $input->readListBegin($_etype1324, $_size1321); - for ($_i1325 = 0; $_i1325 < $_size1321; ++$_i1325) + $_size1330 = 0; + $_etype1333 = 0; + $xfer += $input->readListBegin($_etype1333, $_size1330); + for ($_i1334 = 0; $_i1334 < $_size1330; ++$_i1334) { - $elem1326 = null; - $elem1326 = new \metastore\Role(); - $xfer += $elem1326->read($input); - $this->success []= $elem1326; + $elem1335 = null; + $elem1335 = new \metastore\Role(); + $xfer += $elem1335->read($input); + $this->success []= $elem1335; } $xfer += $input->readListEnd(); } else { @@ -44941,9 +45387,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1327) + foreach ($this->success as $iter1336) { - $xfer += $iter1327->write($output); + $xfer += $iter1336->write($output); } } $output->writeListEnd(); @@ -45605,14 +46051,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1328 = 0; - $_etype1331 = 0; - $xfer += $input->readListBegin($_etype1331, $_size1328); - for ($_i1332 = 0; $_i1332 < $_size1328; ++$_i1332) + $_size1337 = 0; + $_etype1340 = 0; + $xfer += $input->readListBegin($_etype1340, $_size1337); + for ($_i1341 = 0; $_i1341 < $_size1337; ++$_i1341) { - $elem1333 = null; - $xfer += $input->readString($elem1333); - $this->group_names []= $elem1333; + $elem1342 = null; + $xfer += $input->readString($elem1342); + $this->group_names []= $elem1342; } $xfer += $input->readListEnd(); } else { @@ -45653,9 +46099,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1334) + foreach ($this->group_names as $iter1343) { - $xfer += $output->writeString($iter1334); + $xfer += $output->writeString($iter1343); } } $output->writeListEnd(); @@ -45963,15 +46409,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1335 = 0; - $_etype1338 = 0; - $xfer += $input->readListBegin($_etype1338, $_size1335); - for ($_i1339 = 0; $_i1339 < $_size1335; ++$_i1339) + $_size1344 = 0; + $_etype1347 = 0; + $xfer += $input->readListBegin($_etype1347, $_size1344); + for ($_i1348 = 0; $_i1348 < $_size1344; ++$_i1348) { - $elem1340 = null; - $elem1340 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1340->read($input); - $this->success []= $elem1340; + $elem1349 = null; + $elem1349 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1349->read($input); + $this->success []= $elem1349; } $xfer += $input->readListEnd(); } else { @@ -46007,9 +46453,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1341) + foreach ($this->success as $iter1350) { - $xfer += $iter1341->write($output); + $xfer += $iter1350->write($output); } } $output->writeListEnd(); @@ -46877,14 +47323,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1342 = 0; - $_etype1345 = 0; - $xfer += $input->readListBegin($_etype1345, $_size1342); - for ($_i1346 = 0; $_i1346 < $_size1342; ++$_i1346) + $_size1351 = 0; + $_etype1354 = 0; + $xfer += $input->readListBegin($_etype1354, $_size1351); + for ($_i1355 = 0; $_i1355 < $_size1351; ++$_i1355) { - $elem1347 = null; - $xfer += $input->readString($elem1347); - $this->group_names []= $elem1347; + $elem1356 = null; + $xfer += $input->readString($elem1356); + $this->group_names []= $elem1356; } $xfer += $input->readListEnd(); } else { @@ -46917,9 +47363,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1348) + foreach ($this->group_names as $iter1357) { - $xfer += $output->writeString($iter1348); + $xfer += $output->writeString($iter1357); } } $output->writeListEnd(); @@ -46995,14 +47441,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1349 = 0; - $_etype1352 = 0; - $xfer += $input->readListBegin($_etype1352, $_size1349); - for ($_i1353 = 0; $_i1353 < $_size1349; ++$_i1353) + $_size1358 = 0; + $_etype1361 = 0; + $xfer += $input->readListBegin($_etype1361, $_size1358); + for ($_i1362 = 0; $_i1362 < $_size1358; ++$_i1362) { - $elem1354 = null; - $xfer += $input->readString($elem1354); - $this->success []= $elem1354; + $elem1363 = null; + $xfer += $input->readString($elem1363); + $this->success []= $elem1363; } $xfer += $input->readListEnd(); } else { @@ -47038,9 +47484,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1355) + foreach ($this->success as $iter1364) { - $xfer += $output->writeString($iter1355); + $xfer += $output->writeString($iter1364); } } $output->writeListEnd(); @@ -48157,14 +48603,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1356 = 0; - $_etype1359 = 0; - $xfer += $input->readListBegin($_etype1359, $_size1356); - for ($_i1360 = 0; $_i1360 < $_size1356; ++$_i1360) + $_size1365 = 0; + $_etype1368 = 0; + $xfer += $input->readListBegin($_etype1368, $_size1365); + for ($_i1369 = 0; $_i1369 < $_size1365; ++$_i1369) { - $elem1361 = null; - $xfer += $input->readString($elem1361); - $this->success []= $elem1361; + $elem1370 = null; + $xfer += $input->readString($elem1370); + $this->success []= $elem1370; } $xfer += $input->readListEnd(); } else { @@ -48192,9 +48638,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1362) + foreach ($this->success as $iter1371) { - $xfer += $output->writeString($iter1362); + $xfer += $output->writeString($iter1371); } } $output->writeListEnd(); @@ -48833,14 +49279,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1363 = 0; - $_etype1366 = 0; - $xfer += $input->readListBegin($_etype1366, $_size1363); - for ($_i1367 = 0; $_i1367 < $_size1363; ++$_i1367) + $_size1372 = 0; + $_etype1375 = 0; + $xfer += $input->readListBegin($_etype1375, $_size1372); + for ($_i1376 = 0; $_i1376 < $_size1372; ++$_i1376) { - $elem1368 = null; - $xfer += $input->readString($elem1368); - $this->success []= $elem1368; + $elem1377 = null; + $xfer += $input->readString($elem1377); + $this->success []= $elem1377; } $xfer += $input->readListEnd(); } else { @@ -48868,9 +49314,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1369) + foreach ($this->success as $iter1378) { - $xfer += $output->writeString($iter1369); + $xfer += $output->writeString($iter1378); } } $output->writeListEnd(); @@ -59699,15 +60145,15 @@ class ThriftHiveMetastore_get_schema_all_versions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1370 = 0; - $_etype1373 = 0; - $xfer += $input->readListBegin($_etype1373, $_size1370); - for ($_i1374 = 0; $_i1374 < $_size1370; ++$_i1374) + $_size1379 = 0; + $_etype1382 = 0; + $xfer += $input->readListBegin($_etype1382, $_size1379); + for ($_i1383 = 0; $_i1383 < $_size1379; ++$_i1383) { - $elem1375 = null; - $elem1375 = new \metastore\SchemaVersion(); - $xfer += $elem1375->read($input); - $this->success []= $elem1375; + $elem1384 = null; + $elem1384 = new \metastore\SchemaVersion(); + $xfer += $elem1384->read($input); + $this->success []= $elem1384; } $xfer += $input->readListEnd(); } else { @@ -59751,9 +60197,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1376) + foreach ($this->success as $iter1385) { - $xfer += $iter1376->write($output); + $xfer += $iter1385->write($output); } } $output->writeListEnd(); @@ -61622,15 +62068,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1377 = 0; - $_etype1380 = 0; - $xfer += $input->readListBegin($_etype1380, $_size1377); - for ($_i1381 = 0; $_i1381 < $_size1377; ++$_i1381) + $_size1386 = 0; + $_etype1389 = 0; + $xfer += $input->readListBegin($_etype1389, $_size1386); + for ($_i1390 = 0; $_i1390 < $_size1386; ++$_i1390) { - $elem1382 = null; - $elem1382 = new \metastore\RuntimeStat(); - $xfer += $elem1382->read($input); - $this->success []= $elem1382; + $elem1391 = null; + $elem1391 = new \metastore\RuntimeStat(); + $xfer += $elem1391->read($input); + $this->success []= $elem1391; } $xfer += $input->readListEnd(); } else { @@ -61666,9 +62112,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1383) + foreach ($this->success as $iter1392) { - $xfer += $iter1383->write($output); + $xfer += $iter1392->write($output); } } $output->writeListEnd(); @@ -61872,4 +62318,1285 @@ class ThriftHiveMetastore_get_partitions_with_specs_result { } +class ThriftHiveMetastore_find_next_compact_args { + static $_TSPEC; + + /** + * @var string + */ + public $workerId = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'workerId', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['workerId'])) { + $this->workerId = $vals['workerId']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_find_next_compact_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->workerId); + } 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_find_next_compact_args'); + if ($this->workerId !== null) { + $xfer += $output->writeFieldBegin('workerId', TType::STRING, 1); + $xfer += $output->writeString($this->workerId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_find_next_compact_result { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_find_next_compact_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 \metastore\CompactionInfoStruct(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->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_find_next_compact_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(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_set_compaction_highest_writeid_args { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $cr = null; + /** + * @var int + */ + public $high_watermark = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'cr', + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + 2 => array( + 'var' => 'high_watermark', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cr'])) { + $this->cr = $vals['cr']; + } + if (isset($vals['high_watermark'])) { + $this->high_watermark = $vals['high_watermark']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_set_compaction_highest_writeid_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::STRUCT) { + $this->cr = new \metastore\CompactionInfoStruct(); + $xfer += $this->cr->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->high_watermark); + } 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_set_compaction_highest_writeid_args'); + if ($this->cr !== null) { + if (!is_object($this->cr)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('cr', TType::STRUCT, 1); + $xfer += $this->cr->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->high_watermark !== null) { + $xfer += $output->writeFieldBegin('high_watermark', TType::I64, 2); + $xfer += $output->writeI64($this->high_watermark); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_set_compaction_highest_writeid_result { + static $_TSPEC; + + + public function __construct() { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + ); + } + } + + public function getName() { + return 'ThriftHiveMetastore_set_compaction_highest_writeid_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) + { + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_set_compaction_highest_writeid_result'); + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_set_run_as_args { + static $_TSPEC; + + /** + * @var int + */ + public $cq_id = null; + /** + * @var string + */ + public $user = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'cq_id', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'user', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cq_id'])) { + $this->cq_id = $vals['cq_id']; + } + if (isset($vals['user'])) { + $this->user = $vals['user']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_set_run_as_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::I64) { + $xfer += $input->readI64($this->cq_id); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->user); + } 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_set_run_as_args'); + if ($this->cq_id !== null) { + $xfer += $output->writeFieldBegin('cq_id', TType::I64, 1); + $xfer += $output->writeI64($this->cq_id); + $xfer += $output->writeFieldEnd(); + } + if ($this->user !== null) { + $xfer += $output->writeFieldBegin('user', TType::STRING, 2); + $xfer += $output->writeString($this->user); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_set_run_as_result { + static $_TSPEC; + + + public function __construct() { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + ); + } + } + + public function getName() { + return 'ThriftHiveMetastore_set_run_as_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) + { + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_set_run_as_result'); + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_find_columns_with_stats_args { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $cr = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'cr', + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cr'])) { + $this->cr = $vals['cr']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_find_columns_with_stats_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::STRUCT) { + $this->cr = new \metastore\CompactionInfoStruct(); + $xfer += $this->cr->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_find_columns_with_stats_args'); + if ($this->cr !== null) { + if (!is_object($this->cr)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('cr', TType::STRUCT, 1); + $xfer += $this->cr->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_find_columns_with_stats_result { + static $_TSPEC; + + /** + * @var string[] + */ + public $success = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_find_columns_with_stats_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::LST) { + $this->success = array(); + $_size1393 = 0; + $_etype1396 = 0; + $xfer += $input->readListBegin($_etype1396, $_size1393); + for ($_i1397 = 0; $_i1397 < $_size1393; ++$_i1397) + { + $elem1398 = null; + $xfer += $input->readString($elem1398); + $this->success []= $elem1398; + } + $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_find_columns_with_stats_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRING, count($this->success)); + { + foreach ($this->success as $iter1399) + { + $xfer += $output->writeString($iter1399); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_mark_cleaned_args { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $cr = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'cr', + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cr'])) { + $this->cr = $vals['cr']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_mark_cleaned_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::STRUCT) { + $this->cr = new \metastore\CompactionInfoStruct(); + $xfer += $this->cr->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_mark_cleaned_args'); + if ($this->cr !== null) { + if (!is_object($this->cr)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('cr', TType::STRUCT, 1); + $xfer += $this->cr->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_mark_cleaned_result { + static $_TSPEC; + + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_mark_cleaned_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 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->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_mark_cleaned_result'); + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_mark_compacted_args { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $cr = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'cr', + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cr'])) { + $this->cr = $vals['cr']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_mark_compacted_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::STRUCT) { + $this->cr = new \metastore\CompactionInfoStruct(); + $xfer += $this->cr->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_mark_compacted_args'); + if ($this->cr !== null) { + if (!is_object($this->cr)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('cr', TType::STRUCT, 1); + $xfer += $this->cr->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_mark_compacted_result { + static $_TSPEC; + + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_mark_compacted_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 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->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_mark_compacted_result'); + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_mark_failed_args { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $cr = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'cr', + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cr'])) { + $this->cr = $vals['cr']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_mark_failed_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::STRUCT) { + $this->cr = new \metastore\CompactionInfoStruct(); + $xfer += $this->cr->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_mark_failed_args'); + if ($this->cr !== null) { + if (!is_object($this->cr)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('cr', TType::STRUCT, 1); + $xfer += $this->cr->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_mark_failed_result { + static $_TSPEC; + + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_mark_failed_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 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->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_mark_failed_result'); + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_set_hadoop_jobid_args { + static $_TSPEC; + + /** + * @var string + */ + public $jobId = null; + /** + * @var int + */ + public $cq_id = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'jobId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'cq_id', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['jobId'])) { + $this->jobId = $vals['jobId']; + } + if (isset($vals['cq_id'])) { + $this->cq_id = $vals['cq_id']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_set_hadoop_jobid_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->jobId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->cq_id); + } 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_set_hadoop_jobid_args'); + if ($this->jobId !== null) { + $xfer += $output->writeFieldBegin('jobId', TType::STRING, 1); + $xfer += $output->writeString($this->jobId); + $xfer += $output->writeFieldEnd(); + } + if ($this->cq_id !== null) { + $xfer += $output->writeFieldBegin('cq_id', TType::I64, 2); + $xfer += $output->writeI64($this->cq_id); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_set_hadoop_jobid_result { + static $_TSPEC; + + + public function __construct() { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + ); + } + } + + public function getName() { + return 'ThriftHiveMetastore_set_hadoop_jobid_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) + { + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_set_hadoop_jobid_result'); + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php index bf6dfba0cc..7b7327e847 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php @@ -20837,6 +20837,253 @@ class CompactionRequest { } +class CompactionInfoStruct { + static $_TSPEC; + + /** + * @var int + */ + public $id = null; + /** + * @var string + */ + public $dbname = null; + /** + * @var string + */ + public $tablename = null; + /** + * @var string + */ + public $partitionname = null; + /** + * @var int + */ + public $type = null; + /** + * @var string + */ + public $runas = null; + /** + * @var array + */ + public $properties = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'id', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'dbname', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'tablename', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'partitionname', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'type', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'runas', + 'type' => TType::STRING, + ), + 7 => array( + 'var' => 'properties', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['id'])) { + $this->id = $vals['id']; + } + if (isset($vals['dbname'])) { + $this->dbname = $vals['dbname']; + } + if (isset($vals['tablename'])) { + $this->tablename = $vals['tablename']; + } + if (isset($vals['partitionname'])) { + $this->partitionname = $vals['partitionname']; + } + if (isset($vals['type'])) { + $this->type = $vals['type']; + } + if (isset($vals['runas'])) { + $this->runas = $vals['runas']; + } + if (isset($vals['properties'])) { + $this->properties = $vals['properties']; + } + } + } + + public function getName() { + return 'CompactionInfoStruct'; + } + + 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::I64) { + $xfer += $input->readI64($this->id); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbname); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tablename); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->partitionname); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->type); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->runas); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::MAP) { + $this->properties = array(); + $_size625 = 0; + $_ktype626 = 0; + $_vtype627 = 0; + $xfer += $input->readMapBegin($_ktype626, $_vtype627, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) + { + $key630 = ''; + $val631 = ''; + $xfer += $input->readString($key630); + $xfer += $input->readString($val631); + $this->properties[$key630] = $val631; + } + $xfer += $input->readMapEnd(); + } 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('CompactionInfoStruct'); + if ($this->id !== null) { + $xfer += $output->writeFieldBegin('id', TType::I64, 1); + $xfer += $output->writeI64($this->id); + $xfer += $output->writeFieldEnd(); + } + if ($this->dbname !== null) { + $xfer += $output->writeFieldBegin('dbname', TType::STRING, 2); + $xfer += $output->writeString($this->dbname); + $xfer += $output->writeFieldEnd(); + } + if ($this->tablename !== null) { + $xfer += $output->writeFieldBegin('tablename', TType::STRING, 3); + $xfer += $output->writeString($this->tablename); + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionname !== null) { + $xfer += $output->writeFieldBegin('partitionname', TType::STRING, 4); + $xfer += $output->writeString($this->partitionname); + $xfer += $output->writeFieldEnd(); + } + if ($this->type !== null) { + $xfer += $output->writeFieldBegin('type', TType::I32, 5); + $xfer += $output->writeI32($this->type); + $xfer += $output->writeFieldEnd(); + } + if ($this->runas !== null) { + $xfer += $output->writeFieldBegin('runas', TType::STRING, 6); + $xfer += $output->writeString($this->runas); + $xfer += $output->writeFieldEnd(); + } + if ($this->properties !== null) { + if (!is_array($this->properties)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('properties', TType::MAP, 7); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); + { + foreach ($this->properties as $kiter632 => $viter633) + { + $xfer += $output->writeString($kiter632); + $xfer += $output->writeString($viter633); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class CompactionResponse { static $_TSPEC; @@ -21410,15 +21657,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size625 = 0; - $_etype628 = 0; - $xfer += $input->readListBegin($_etype628, $_size625); - for ($_i629 = 0; $_i629 < $_size625; ++$_i629) + $_size634 = 0; + $_etype637 = 0; + $xfer += $input->readListBegin($_etype637, $_size634); + for ($_i638 = 0; $_i638 < $_size634; ++$_i638) { - $elem630 = null; - $elem630 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem630->read($input); - $this->compacts []= $elem630; + $elem639 = null; + $elem639 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem639->read($input); + $this->compacts []= $elem639; } $xfer += $input->readListEnd(); } else { @@ -21446,9 +21693,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter631) + foreach ($this->compacts as $iter640) { - $xfer += $iter631->write($output); + $xfer += $iter640->write($output); } } $output->writeListEnd(); @@ -21595,14 +21842,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size632 = 0; - $_etype635 = 0; - $xfer += $input->readListBegin($_etype635, $_size632); - for ($_i636 = 0; $_i636 < $_size632; ++$_i636) + $_size641 = 0; + $_etype644 = 0; + $xfer += $input->readListBegin($_etype644, $_size641); + for ($_i645 = 0; $_i645 < $_size641; ++$_i645) { - $elem637 = null; - $xfer += $input->readString($elem637); - $this->partitionnames []= $elem637; + $elem646 = null; + $xfer += $input->readString($elem646); + $this->partitionnames []= $elem646; } $xfer += $input->readListEnd(); } else { @@ -21657,9 +21904,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter638) + foreach ($this->partitionnames as $iter647) { - $xfer += $output->writeString($iter638); + $xfer += $output->writeString($iter647); } } $output->writeListEnd(); @@ -21994,17 +22241,17 @@ class CreationMetadata { case 4: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size639 = 0; - $_etype642 = 0; - $xfer += $input->readSetBegin($_etype642, $_size639); - for ($_i643 = 0; $_i643 < $_size639; ++$_i643) + $_size648 = 0; + $_etype651 = 0; + $xfer += $input->readSetBegin($_etype651, $_size648); + for ($_i652 = 0; $_i652 < $_size648; ++$_i652) { - $elem644 = null; - $xfer += $input->readString($elem644); - if (is_scalar($elem644)) { - $this->tablesUsed[$elem644] = true; + $elem653 = null; + $xfer += $input->readString($elem653); + if (is_scalar($elem653)) { + $this->tablesUsed[$elem653] = true; } else { - $this->tablesUsed []= $elem644; + $this->tablesUsed []= $elem653; } } $xfer += $input->readSetEnd(); @@ -22062,12 +22309,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter645 => $iter646) + foreach ($this->tablesUsed as $iter654 => $iter655) { - if (is_scalar($iter646)) { - $xfer += $output->writeString($iter645); + if (is_scalar($iter655)) { + $xfer += $output->writeString($iter654); } else { - $xfer += $output->writeString($iter646); + $xfer += $output->writeString($iter655); } } } @@ -22477,15 +22724,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size647 = 0; - $_etype650 = 0; - $xfer += $input->readListBegin($_etype650, $_size647); - for ($_i651 = 0; $_i651 < $_size647; ++$_i651) + $_size656 = 0; + $_etype659 = 0; + $xfer += $input->readListBegin($_etype659, $_size656); + for ($_i660 = 0; $_i660 < $_size656; ++$_i660) { - $elem652 = null; - $elem652 = new \metastore\NotificationEvent(); - $xfer += $elem652->read($input); - $this->events []= $elem652; + $elem661 = null; + $elem661 = new \metastore\NotificationEvent(); + $xfer += $elem661->read($input); + $this->events []= $elem661; } $xfer += $input->readListEnd(); } else { @@ -22513,9 +22760,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter653) + foreach ($this->events as $iter662) { - $xfer += $iter653->write($output); + $xfer += $iter662->write($output); } } $output->writeListEnd(); @@ -22944,14 +23191,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size654 = 0; - $_etype657 = 0; - $xfer += $input->readListBegin($_etype657, $_size654); - for ($_i658 = 0; $_i658 < $_size654; ++$_i658) + $_size663 = 0; + $_etype666 = 0; + $xfer += $input->readListBegin($_etype666, $_size663); + for ($_i667 = 0; $_i667 < $_size663; ++$_i667) { - $elem659 = null; - $xfer += $input->readString($elem659); - $this->filesAdded []= $elem659; + $elem668 = null; + $xfer += $input->readString($elem668); + $this->filesAdded []= $elem668; } $xfer += $input->readListEnd(); } else { @@ -22961,14 +23208,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size660 = 0; - $_etype663 = 0; - $xfer += $input->readListBegin($_etype663, $_size660); - for ($_i664 = 0; $_i664 < $_size660; ++$_i664) + $_size669 = 0; + $_etype672 = 0; + $xfer += $input->readListBegin($_etype672, $_size669); + for ($_i673 = 0; $_i673 < $_size669; ++$_i673) { - $elem665 = null; - $xfer += $input->readString($elem665); - $this->filesAddedChecksum []= $elem665; + $elem674 = null; + $xfer += $input->readString($elem674); + $this->filesAddedChecksum []= $elem674; } $xfer += $input->readListEnd(); } else { @@ -22978,14 +23225,14 @@ class InsertEventRequestData { case 4: if ($ftype == TType::LST) { $this->subDirectoryList = array(); - $_size666 = 0; - $_etype669 = 0; - $xfer += $input->readListBegin($_etype669, $_size666); - for ($_i670 = 0; $_i670 < $_size666; ++$_i670) + $_size675 = 0; + $_etype678 = 0; + $xfer += $input->readListBegin($_etype678, $_size675); + for ($_i679 = 0; $_i679 < $_size675; ++$_i679) { - $elem671 = null; - $xfer += $input->readString($elem671); - $this->subDirectoryList []= $elem671; + $elem680 = null; + $xfer += $input->readString($elem680); + $this->subDirectoryList []= $elem680; } $xfer += $input->readListEnd(); } else { @@ -23018,9 +23265,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter672) + foreach ($this->filesAdded as $iter681) { - $xfer += $output->writeString($iter672); + $xfer += $output->writeString($iter681); } } $output->writeListEnd(); @@ -23035,9 +23282,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter673) + foreach ($this->filesAddedChecksum as $iter682) { - $xfer += $output->writeString($iter673); + $xfer += $output->writeString($iter682); } } $output->writeListEnd(); @@ -23052,9 +23299,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->subDirectoryList)); { - foreach ($this->subDirectoryList as $iter674) + foreach ($this->subDirectoryList as $iter683) { - $xfer += $output->writeString($iter674); + $xfer += $output->writeString($iter683); } } $output->writeListEnd(); @@ -23283,14 +23530,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size675 = 0; - $_etype678 = 0; - $xfer += $input->readListBegin($_etype678, $_size675); - for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + $_size684 = 0; + $_etype687 = 0; + $xfer += $input->readListBegin($_etype687, $_size684); + for ($_i688 = 0; $_i688 < $_size684; ++$_i688) { - $elem680 = null; - $xfer += $input->readString($elem680); - $this->partitionVals []= $elem680; + $elem689 = null; + $xfer += $input->readString($elem689); + $this->partitionVals []= $elem689; } $xfer += $input->readListEnd(); } else { @@ -23348,9 +23595,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter681) + foreach ($this->partitionVals as $iter690) { - $xfer += $output->writeString($iter681); + $xfer += $output->writeString($iter690); } } $output->writeListEnd(); @@ -23561,14 +23808,14 @@ class WriteNotificationLogRequest { case 6: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size682 = 0; - $_etype685 = 0; - $xfer += $input->readListBegin($_etype685, $_size682); - for ($_i686 = 0; $_i686 < $_size682; ++$_i686) + $_size691 = 0; + $_etype694 = 0; + $xfer += $input->readListBegin($_etype694, $_size691); + for ($_i695 = 0; $_i695 < $_size691; ++$_i695) { - $elem687 = null; - $xfer += $input->readString($elem687); - $this->partitionVals []= $elem687; + $elem696 = null; + $xfer += $input->readString($elem696); + $this->partitionVals []= $elem696; } $xfer += $input->readListEnd(); } else { @@ -23624,9 +23871,9 @@ class WriteNotificationLogRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter688) + foreach ($this->partitionVals as $iter697) { - $xfer += $output->writeString($iter688); + $xfer += $output->writeString($iter697); } } $output->writeListEnd(); @@ -23854,18 +24101,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size689 = 0; - $_ktype690 = 0; - $_vtype691 = 0; - $xfer += $input->readMapBegin($_ktype690, $_vtype691, $_size689); - for ($_i693 = 0; $_i693 < $_size689; ++$_i693) + $_size698 = 0; + $_ktype699 = 0; + $_vtype700 = 0; + $xfer += $input->readMapBegin($_ktype699, $_vtype700, $_size698); + for ($_i702 = 0; $_i702 < $_size698; ++$_i702) { - $key694 = 0; - $val695 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key694); - $val695 = new \metastore\MetadataPpdResult(); - $xfer += $val695->read($input); - $this->metadata[$key694] = $val695; + $key703 = 0; + $val704 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key703); + $val704 = new \metastore\MetadataPpdResult(); + $xfer += $val704->read($input); + $this->metadata[$key703] = $val704; } $xfer += $input->readMapEnd(); } else { @@ -23900,10 +24147,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter696 => $viter697) + foreach ($this->metadata as $kiter705 => $viter706) { - $xfer += $output->writeI64($kiter696); - $xfer += $viter697->write($output); + $xfer += $output->writeI64($kiter705); + $xfer += $viter706->write($output); } } $output->writeMapEnd(); @@ -24005,14 +24252,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size698 = 0; - $_etype701 = 0; - $xfer += $input->readListBegin($_etype701, $_size698); - for ($_i702 = 0; $_i702 < $_size698; ++$_i702) + $_size707 = 0; + $_etype710 = 0; + $xfer += $input->readListBegin($_etype710, $_size707); + for ($_i711 = 0; $_i711 < $_size707; ++$_i711) { - $elem703 = null; - $xfer += $input->readI64($elem703); - $this->fileIds []= $elem703; + $elem712 = null; + $xfer += $input->readI64($elem712); + $this->fileIds []= $elem712; } $xfer += $input->readListEnd(); } else { @@ -24061,9 +24308,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter704) + foreach ($this->fileIds as $iter713) { - $xfer += $output->writeI64($iter704); + $xfer += $output->writeI64($iter713); } } $output->writeListEnd(); @@ -24157,17 +24404,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size705 = 0; - $_ktype706 = 0; - $_vtype707 = 0; - $xfer += $input->readMapBegin($_ktype706, $_vtype707, $_size705); - for ($_i709 = 0; $_i709 < $_size705; ++$_i709) + $_size714 = 0; + $_ktype715 = 0; + $_vtype716 = 0; + $xfer += $input->readMapBegin($_ktype715, $_vtype716, $_size714); + for ($_i718 = 0; $_i718 < $_size714; ++$_i718) { - $key710 = 0; - $val711 = ''; - $xfer += $input->readI64($key710); - $xfer += $input->readString($val711); - $this->metadata[$key710] = $val711; + $key719 = 0; + $val720 = ''; + $xfer += $input->readI64($key719); + $xfer += $input->readString($val720); + $this->metadata[$key719] = $val720; } $xfer += $input->readMapEnd(); } else { @@ -24202,10 +24449,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter712 => $viter713) + foreach ($this->metadata as $kiter721 => $viter722) { - $xfer += $output->writeI64($kiter712); - $xfer += $output->writeString($viter713); + $xfer += $output->writeI64($kiter721); + $xfer += $output->writeString($viter722); } } $output->writeMapEnd(); @@ -24274,14 +24521,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size714 = 0; - $_etype717 = 0; - $xfer += $input->readListBegin($_etype717, $_size714); - for ($_i718 = 0; $_i718 < $_size714; ++$_i718) + $_size723 = 0; + $_etype726 = 0; + $xfer += $input->readListBegin($_etype726, $_size723); + for ($_i727 = 0; $_i727 < $_size723; ++$_i727) { - $elem719 = null; - $xfer += $input->readI64($elem719); - $this->fileIds []= $elem719; + $elem728 = null; + $xfer += $input->readI64($elem728); + $this->fileIds []= $elem728; } $xfer += $input->readListEnd(); } else { @@ -24309,9 +24556,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter720) + foreach ($this->fileIds as $iter729) { - $xfer += $output->writeI64($iter720); + $xfer += $output->writeI64($iter729); } } $output->writeListEnd(); @@ -24451,14 +24698,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size721 = 0; - $_etype724 = 0; - $xfer += $input->readListBegin($_etype724, $_size721); - for ($_i725 = 0; $_i725 < $_size721; ++$_i725) + $_size730 = 0; + $_etype733 = 0; + $xfer += $input->readListBegin($_etype733, $_size730); + for ($_i734 = 0; $_i734 < $_size730; ++$_i734) { - $elem726 = null; - $xfer += $input->readI64($elem726); - $this->fileIds []= $elem726; + $elem735 = null; + $xfer += $input->readI64($elem735); + $this->fileIds []= $elem735; } $xfer += $input->readListEnd(); } else { @@ -24468,14 +24715,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size727 = 0; - $_etype730 = 0; - $xfer += $input->readListBegin($_etype730, $_size727); - for ($_i731 = 0; $_i731 < $_size727; ++$_i731) + $_size736 = 0; + $_etype739 = 0; + $xfer += $input->readListBegin($_etype739, $_size736); + for ($_i740 = 0; $_i740 < $_size736; ++$_i740) { - $elem732 = null; - $xfer += $input->readString($elem732); - $this->metadata []= $elem732; + $elem741 = null; + $xfer += $input->readString($elem741); + $this->metadata []= $elem741; } $xfer += $input->readListEnd(); } else { @@ -24510,9 +24757,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter733) + foreach ($this->fileIds as $iter742) { - $xfer += $output->writeI64($iter733); + $xfer += $output->writeI64($iter742); } } $output->writeListEnd(); @@ -24527,9 +24774,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter734) + foreach ($this->metadata as $iter743) { - $xfer += $output->writeString($iter734); + $xfer += $output->writeString($iter743); } } $output->writeListEnd(); @@ -24648,14 +24895,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size735 = 0; - $_etype738 = 0; - $xfer += $input->readListBegin($_etype738, $_size735); - for ($_i739 = 0; $_i739 < $_size735; ++$_i739) + $_size744 = 0; + $_etype747 = 0; + $xfer += $input->readListBegin($_etype747, $_size744); + for ($_i748 = 0; $_i748 < $_size744; ++$_i748) { - $elem740 = null; - $xfer += $input->readI64($elem740); - $this->fileIds []= $elem740; + $elem749 = null; + $xfer += $input->readI64($elem749); + $this->fileIds []= $elem749; } $xfer += $input->readListEnd(); } else { @@ -24683,9 +24930,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter741) + foreach ($this->fileIds as $iter750) { - $xfer += $output->writeI64($iter741); + $xfer += $output->writeI64($iter750); } } $output->writeListEnd(); @@ -24969,15 +25216,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size742 = 0; - $_etype745 = 0; - $xfer += $input->readListBegin($_etype745, $_size742); - for ($_i746 = 0; $_i746 < $_size742; ++$_i746) + $_size751 = 0; + $_etype754 = 0; + $xfer += $input->readListBegin($_etype754, $_size751); + for ($_i755 = 0; $_i755 < $_size751; ++$_i755) { - $elem747 = null; - $elem747 = new \metastore\Function(); - $xfer += $elem747->read($input); - $this->functions []= $elem747; + $elem756 = null; + $elem756 = new \metastore\Function(); + $xfer += $elem756->read($input); + $this->functions []= $elem756; } $xfer += $input->readListEnd(); } else { @@ -25005,9 +25252,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter748) + foreach ($this->functions as $iter757) { - $xfer += $iter748->write($output); + $xfer += $iter757->write($output); } } $output->writeListEnd(); @@ -25071,14 +25318,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size749 = 0; - $_etype752 = 0; - $xfer += $input->readListBegin($_etype752, $_size749); - for ($_i753 = 0; $_i753 < $_size749; ++$_i753) + $_size758 = 0; + $_etype761 = 0; + $xfer += $input->readListBegin($_etype761, $_size758); + for ($_i762 = 0; $_i762 < $_size758; ++$_i762) { - $elem754 = null; - $xfer += $input->readI32($elem754); - $this->values []= $elem754; + $elem763 = null; + $xfer += $input->readI32($elem763); + $this->values []= $elem763; } $xfer += $input->readListEnd(); } else { @@ -25106,9 +25353,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter755) + foreach ($this->values as $iter764) { - $xfer += $output->writeI32($iter755); + $xfer += $output->writeI32($iter764); } } $output->writeListEnd(); @@ -25488,14 +25735,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size756 = 0; - $_etype759 = 0; - $xfer += $input->readListBegin($_etype759, $_size756); - for ($_i760 = 0; $_i760 < $_size756; ++$_i760) + $_size765 = 0; + $_etype768 = 0; + $xfer += $input->readListBegin($_etype768, $_size765); + for ($_i769 = 0; $_i769 < $_size765; ++$_i769) { - $elem761 = null; - $xfer += $input->readString($elem761); - $this->tblNames []= $elem761; + $elem770 = null; + $xfer += $input->readString($elem770); + $this->tblNames []= $elem770; } $xfer += $input->readListEnd(); } else { @@ -25543,9 +25790,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter762) + foreach ($this->tblNames as $iter771) { - $xfer += $output->writeString($iter762); + $xfer += $output->writeString($iter771); } } $output->writeListEnd(); @@ -25623,15 +25870,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size763 = 0; - $_etype766 = 0; - $xfer += $input->readListBegin($_etype766, $_size763); - for ($_i767 = 0; $_i767 < $_size763; ++$_i767) + $_size772 = 0; + $_etype775 = 0; + $xfer += $input->readListBegin($_etype775, $_size772); + for ($_i776 = 0; $_i776 < $_size772; ++$_i776) { - $elem768 = null; - $elem768 = new \metastore\Table(); - $xfer += $elem768->read($input); - $this->tables []= $elem768; + $elem777 = null; + $elem777 = new \metastore\Table(); + $xfer += $elem777->read($input); + $this->tables []= $elem777; } $xfer += $input->readListEnd(); } else { @@ -25659,9 +25906,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter769) + foreach ($this->tables as $iter778) { - $xfer += $iter769->write($output); + $xfer += $iter778->write($output); } } $output->writeListEnd(); @@ -27468,15 +27715,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size770 = 0; - $_etype773 = 0; - $xfer += $input->readListBegin($_etype773, $_size770); - for ($_i774 = 0; $_i774 < $_size770; ++$_i774) + $_size779 = 0; + $_etype782 = 0; + $xfer += $input->readListBegin($_etype782, $_size779); + for ($_i783 = 0; $_i783 < $_size779; ++$_i783) { - $elem775 = null; - $elem775 = new \metastore\WMPool(); - $xfer += $elem775->read($input); - $this->pools []= $elem775; + $elem784 = null; + $elem784 = new \metastore\WMPool(); + $xfer += $elem784->read($input); + $this->pools []= $elem784; } $xfer += $input->readListEnd(); } else { @@ -27486,15 +27733,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size776 = 0; - $_etype779 = 0; - $xfer += $input->readListBegin($_etype779, $_size776); - for ($_i780 = 0; $_i780 < $_size776; ++$_i780) + $_size785 = 0; + $_etype788 = 0; + $xfer += $input->readListBegin($_etype788, $_size785); + for ($_i789 = 0; $_i789 < $_size785; ++$_i789) { - $elem781 = null; - $elem781 = new \metastore\WMMapping(); - $xfer += $elem781->read($input); - $this->mappings []= $elem781; + $elem790 = null; + $elem790 = new \metastore\WMMapping(); + $xfer += $elem790->read($input); + $this->mappings []= $elem790; } $xfer += $input->readListEnd(); } else { @@ -27504,15 +27751,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size782 = 0; - $_etype785 = 0; - $xfer += $input->readListBegin($_etype785, $_size782); - for ($_i786 = 0; $_i786 < $_size782; ++$_i786) + $_size791 = 0; + $_etype794 = 0; + $xfer += $input->readListBegin($_etype794, $_size791); + for ($_i795 = 0; $_i795 < $_size791; ++$_i795) { - $elem787 = null; - $elem787 = new \metastore\WMTrigger(); - $xfer += $elem787->read($input); - $this->triggers []= $elem787; + $elem796 = null; + $elem796 = new \metastore\WMTrigger(); + $xfer += $elem796->read($input); + $this->triggers []= $elem796; } $xfer += $input->readListEnd(); } else { @@ -27522,15 +27769,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size788 = 0; - $_etype791 = 0; - $xfer += $input->readListBegin($_etype791, $_size788); - for ($_i792 = 0; $_i792 < $_size788; ++$_i792) + $_size797 = 0; + $_etype800 = 0; + $xfer += $input->readListBegin($_etype800, $_size797); + for ($_i801 = 0; $_i801 < $_size797; ++$_i801) { - $elem793 = null; - $elem793 = new \metastore\WMPoolTrigger(); - $xfer += $elem793->read($input); - $this->poolTriggers []= $elem793; + $elem802 = null; + $elem802 = new \metastore\WMPoolTrigger(); + $xfer += $elem802->read($input); + $this->poolTriggers []= $elem802; } $xfer += $input->readListEnd(); } else { @@ -27566,9 +27813,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter794) + foreach ($this->pools as $iter803) { - $xfer += $iter794->write($output); + $xfer += $iter803->write($output); } } $output->writeListEnd(); @@ -27583,9 +27830,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter795) + foreach ($this->mappings as $iter804) { - $xfer += $iter795->write($output); + $xfer += $iter804->write($output); } } $output->writeListEnd(); @@ -27600,9 +27847,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter796) + foreach ($this->triggers as $iter805) { - $xfer += $iter796->write($output); + $xfer += $iter805->write($output); } } $output->writeListEnd(); @@ -27617,9 +27864,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter797) + foreach ($this->poolTriggers as $iter806) { - $xfer += $iter797->write($output); + $xfer += $iter806->write($output); } } $output->writeListEnd(); @@ -28245,15 +28492,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size798 = 0; - $_etype801 = 0; - $xfer += $input->readListBegin($_etype801, $_size798); - for ($_i802 = 0; $_i802 < $_size798; ++$_i802) + $_size807 = 0; + $_etype810 = 0; + $xfer += $input->readListBegin($_etype810, $_size807); + for ($_i811 = 0; $_i811 < $_size807; ++$_i811) { - $elem803 = null; - $elem803 = new \metastore\WMResourcePlan(); - $xfer += $elem803->read($input); - $this->resourcePlans []= $elem803; + $elem812 = null; + $elem812 = new \metastore\WMResourcePlan(); + $xfer += $elem812->read($input); + $this->resourcePlans []= $elem812; } $xfer += $input->readListEnd(); } else { @@ -28281,9 +28528,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter804) + foreach ($this->resourcePlans as $iter813) { - $xfer += $iter804->write($output); + $xfer += $iter813->write($output); } } $output->writeListEnd(); @@ -28735,14 +28982,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size805 = 0; - $_etype808 = 0; - $xfer += $input->readListBegin($_etype808, $_size805); - for ($_i809 = 0; $_i809 < $_size805; ++$_i809) + $_size814 = 0; + $_etype817 = 0; + $xfer += $input->readListBegin($_etype817, $_size814); + for ($_i818 = 0; $_i818 < $_size814; ++$_i818) { - $elem810 = null; - $xfer += $input->readString($elem810); - $this->errors []= $elem810; + $elem819 = null; + $xfer += $input->readString($elem819); + $this->errors []= $elem819; } $xfer += $input->readListEnd(); } else { @@ -28752,14 +28999,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size811 = 0; - $_etype814 = 0; - $xfer += $input->readListBegin($_etype814, $_size811); - for ($_i815 = 0; $_i815 < $_size811; ++$_i815) + $_size820 = 0; + $_etype823 = 0; + $xfer += $input->readListBegin($_etype823, $_size820); + for ($_i824 = 0; $_i824 < $_size820; ++$_i824) { - $elem816 = null; - $xfer += $input->readString($elem816); - $this->warnings []= $elem816; + $elem825 = null; + $xfer += $input->readString($elem825); + $this->warnings []= $elem825; } $xfer += $input->readListEnd(); } else { @@ -28787,9 +29034,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter817) + foreach ($this->errors as $iter826) { - $xfer += $output->writeString($iter817); + $xfer += $output->writeString($iter826); } } $output->writeListEnd(); @@ -28804,9 +29051,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter818) + foreach ($this->warnings as $iter827) { - $xfer += $output->writeString($iter818); + $xfer += $output->writeString($iter827); } } $output->writeListEnd(); @@ -29548,15 +29795,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size819 = 0; - $_etype822 = 0; - $xfer += $input->readListBegin($_etype822, $_size819); - for ($_i823 = 0; $_i823 < $_size819; ++$_i823) + $_size828 = 0; + $_etype831 = 0; + $xfer += $input->readListBegin($_etype831, $_size828); + for ($_i832 = 0; $_i832 < $_size828; ++$_i832) { - $elem824 = null; - $elem824 = new \metastore\WMTrigger(); - $xfer += $elem824->read($input); - $this->triggers []= $elem824; + $elem833 = null; + $elem833 = new \metastore\WMTrigger(); + $xfer += $elem833->read($input); + $this->triggers []= $elem833; } $xfer += $input->readListEnd(); } else { @@ -29584,9 +29831,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter825) + foreach ($this->triggers as $iter834) { - $xfer += $iter825->write($output); + $xfer += $iter834->write($output); } } $output->writeListEnd(); @@ -31216,15 +31463,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size826 = 0; - $_etype829 = 0; - $xfer += $input->readListBegin($_etype829, $_size826); - for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + $_size835 = 0; + $_etype838 = 0; + $xfer += $input->readListBegin($_etype838, $_size835); + for ($_i839 = 0; $_i839 < $_size835; ++$_i839) { - $elem831 = null; - $elem831 = new \metastore\FieldSchema(); - $xfer += $elem831->read($input); - $this->cols []= $elem831; + $elem840 = null; + $elem840 = new \metastore\FieldSchema(); + $xfer += $elem840->read($input); + $this->cols []= $elem840; } $xfer += $input->readListEnd(); } else { @@ -31313,9 +31560,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter832) + foreach ($this->cols as $iter841) { - $xfer += $iter832->write($output); + $xfer += $iter841->write($output); } } $output->writeListEnd(); @@ -31637,15 +31884,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size833 = 0; - $_etype836 = 0; - $xfer += $input->readListBegin($_etype836, $_size833); - for ($_i837 = 0; $_i837 < $_size833; ++$_i837) + $_size842 = 0; + $_etype845 = 0; + $xfer += $input->readListBegin($_etype845, $_size842); + for ($_i846 = 0; $_i846 < $_size842; ++$_i846) { - $elem838 = null; - $elem838 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem838->read($input); - $this->schemaVersions []= $elem838; + $elem847 = null; + $elem847 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem847->read($input); + $this->schemaVersions []= $elem847; } $xfer += $input->readListEnd(); } else { @@ -31673,9 +31920,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter839) + foreach ($this->schemaVersions as $iter848) { - $xfer += $iter839->write($output); + $xfer += $iter848->write($output); } } $output->writeListEnd(); @@ -32328,15 +32575,15 @@ class AlterPartitionsRequest { case 4: if ($ftype == TType::LST) { $this->partitions = array(); - $_size840 = 0; - $_etype843 = 0; - $xfer += $input->readListBegin($_etype843, $_size840); - for ($_i844 = 0; $_i844 < $_size840; ++$_i844) + $_size849 = 0; + $_etype852 = 0; + $xfer += $input->readListBegin($_etype852, $_size849); + for ($_i853 = 0; $_i853 < $_size849; ++$_i853) { - $elem845 = null; - $elem845 = new \metastore\Partition(); - $xfer += $elem845->read($input); - $this->partitions []= $elem845; + $elem854 = null; + $elem854 = new \metastore\Partition(); + $xfer += $elem854->read($input); + $this->partitions []= $elem854; } $xfer += $input->readListEnd(); } else { @@ -32401,9 +32648,9 @@ class AlterPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter846) + foreach ($this->partitions as $iter855) { - $xfer += $iter846->write($output); + $xfer += $iter855->write($output); } } $output->writeListEnd(); @@ -32612,14 +32859,14 @@ class RenamePartitionRequest { case 4: if ($ftype == TType::LST) { $this->partVals = array(); - $_size847 = 0; - $_etype850 = 0; - $xfer += $input->readListBegin($_etype850, $_size847); - for ($_i851 = 0; $_i851 < $_size847; ++$_i851) + $_size856 = 0; + $_etype859 = 0; + $xfer += $input->readListBegin($_etype859, $_size856); + for ($_i860 = 0; $_i860 < $_size856; ++$_i860) { - $elem852 = null; - $xfer += $input->readString($elem852); - $this->partVals []= $elem852; + $elem861 = null; + $xfer += $input->readString($elem861); + $this->partVals []= $elem861; } $xfer += $input->readListEnd(); } else { @@ -32677,9 +32924,9 @@ class RenamePartitionRequest { { $output->writeListBegin(TType::STRING, count($this->partVals)); { - foreach ($this->partVals as $iter853) + foreach ($this->partVals as $iter862) { - $xfer += $output->writeString($iter853); + $xfer += $output->writeString($iter862); } } $output->writeListEnd(); @@ -33101,14 +33348,14 @@ class GetPartitionsProjectionSpec { case 1: if ($ftype == TType::LST) { $this->fieldList = array(); - $_size854 = 0; - $_etype857 = 0; - $xfer += $input->readListBegin($_etype857, $_size854); - for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + $_size863 = 0; + $_etype866 = 0; + $xfer += $input->readListBegin($_etype866, $_size863); + for ($_i867 = 0; $_i867 < $_size863; ++$_i867) { - $elem859 = null; - $xfer += $input->readString($elem859); - $this->fieldList []= $elem859; + $elem868 = null; + $xfer += $input->readString($elem868); + $this->fieldList []= $elem868; } $xfer += $input->readListEnd(); } else { @@ -33150,9 +33397,9 @@ class GetPartitionsProjectionSpec { { $output->writeListBegin(TType::STRING, count($this->fieldList)); { - foreach ($this->fieldList as $iter860) + foreach ($this->fieldList as $iter869) { - $xfer += $output->writeString($iter860); + $xfer += $output->writeString($iter869); } } $output->writeListEnd(); @@ -33244,14 +33491,14 @@ class GetPartitionsFilterSpec { case 8: if ($ftype == TType::LST) { $this->filters = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size870 = 0; + $_etype873 = 0; + $xfer += $input->readListBegin($_etype873, $_size870); + for ($_i874 = 0; $_i874 < $_size870; ++$_i874) { - $elem866 = null; - $xfer += $input->readString($elem866); - $this->filters []= $elem866; + $elem875 = null; + $xfer += $input->readString($elem875); + $this->filters []= $elem875; } $xfer += $input->readListEnd(); } else { @@ -33284,9 +33531,9 @@ class GetPartitionsFilterSpec { { $output->writeListBegin(TType::STRING, count($this->filters)); { - foreach ($this->filters as $iter867) + foreach ($this->filters as $iter876) { - $xfer += $output->writeString($iter867); + $xfer += $output->writeString($iter876); } } $output->writeListEnd(); @@ -33351,15 +33598,15 @@ class GetPartitionsResponse { case 1: if ($ftype == TType::LST) { $this->partitionSpec = array(); - $_size868 = 0; - $_etype871 = 0; - $xfer += $input->readListBegin($_etype871, $_size868); - for ($_i872 = 0; $_i872 < $_size868; ++$_i872) + $_size877 = 0; + $_etype880 = 0; + $xfer += $input->readListBegin($_etype880, $_size877); + for ($_i881 = 0; $_i881 < $_size877; ++$_i881) { - $elem873 = null; - $elem873 = new \metastore\PartitionSpec(); - $xfer += $elem873->read($input); - $this->partitionSpec []= $elem873; + $elem882 = null; + $elem882 = new \metastore\PartitionSpec(); + $xfer += $elem882->read($input); + $this->partitionSpec []= $elem882; } $xfer += $input->readListEnd(); } else { @@ -33387,9 +33634,9 @@ class GetPartitionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionSpec)); { - foreach ($this->partitionSpec as $iter874) + foreach ($this->partitionSpec as $iter883) { - $xfer += $iter874->write($output); + $xfer += $iter883->write($output); } } $output->writeListEnd(); @@ -33567,14 +33814,14 @@ class GetPartitionsRequest { case 6: if ($ftype == TType::LST) { $this->groupNames = array(); - $_size875 = 0; - $_etype878 = 0; - $xfer += $input->readListBegin($_etype878, $_size875); - for ($_i879 = 0; $_i879 < $_size875; ++$_i879) + $_size884 = 0; + $_etype887 = 0; + $xfer += $input->readListBegin($_etype887, $_size884); + for ($_i888 = 0; $_i888 < $_size884; ++$_i888) { - $elem880 = null; - $xfer += $input->readString($elem880); - $this->groupNames []= $elem880; + $elem889 = null; + $xfer += $input->readString($elem889); + $this->groupNames []= $elem889; } $xfer += $input->readListEnd(); } else { @@ -33643,9 +33890,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->groupNames)); { - foreach ($this->groupNames as $iter881) + foreach ($this->groupNames as $iter890) { - $xfer += $output->writeString($iter881); + $xfer += $output->writeString($iter890); } } $output->writeListEnd(); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index d57de353c6..c3fe63b98f 100755 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -239,6 +239,14 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void add_runtime_stats(RuntimeStat stat)') print(' get_runtime_stats(GetRuntimeStatsRequest rqst)') print(' GetPartitionsResponse get_partitions_with_specs(GetPartitionsRequest request)') + print(' CompactionInfoStruct find_next_compact(string workerId)') + print(' void set_compaction_highest_writeid(CompactionInfoStruct cr, i64 high_watermark)') + print(' void set_run_as(i64 cq_id, string user)') + print(' find_columns_with_stats(CompactionInfoStruct cr)') + print(' void mark_cleaned(CompactionInfoStruct cr)') + print(' void mark_compacted(CompactionInfoStruct cr)') + print(' void mark_failed(CompactionInfoStruct cr)') + print(' void set_hadoop_jobid(string jobId, i64 cq_id)') print(' string getName()') print(' string getVersion()') print(' fb_status getStatus()') @@ -1598,6 +1606,54 @@ elif cmd == 'get_partitions_with_specs': sys.exit(1) pp.pprint(client.get_partitions_with_specs(eval(args[0]),)) +elif cmd == 'find_next_compact': + if len(args) != 1: + print('find_next_compact requires 1 args') + sys.exit(1) + pp.pprint(client.find_next_compact(args[0],)) + +elif cmd == 'set_compaction_highest_writeid': + if len(args) != 2: + print('set_compaction_highest_writeid requires 2 args') + sys.exit(1) + pp.pprint(client.set_compaction_highest_writeid(eval(args[0]),eval(args[1]),)) + +elif cmd == 'set_run_as': + if len(args) != 2: + print('set_run_as requires 2 args') + sys.exit(1) + pp.pprint(client.set_run_as(eval(args[0]),args[1],)) + +elif cmd == 'find_columns_with_stats': + if len(args) != 1: + print('find_columns_with_stats requires 1 args') + sys.exit(1) + pp.pprint(client.find_columns_with_stats(eval(args[0]),)) + +elif cmd == 'mark_cleaned': + if len(args) != 1: + print('mark_cleaned requires 1 args') + sys.exit(1) + pp.pprint(client.mark_cleaned(eval(args[0]),)) + +elif cmd == 'mark_compacted': + if len(args) != 1: + print('mark_compacted requires 1 args') + sys.exit(1) + pp.pprint(client.mark_compacted(eval(args[0]),)) + +elif cmd == 'mark_failed': + if len(args) != 1: + print('mark_failed requires 1 args') + sys.exit(1) + pp.pprint(client.mark_failed(eval(args[0]),)) + +elif cmd == 'set_hadoop_jobid': + if len(args) != 2: + print('set_hadoop_jobid requires 2 args') + sys.exit(1) + pp.pprint(client.set_hadoop_jobid(args[0],eval(args[1]),)) + elif cmd == 'getName': if len(args) != 0: print('getName requires 0 args') diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 9ec122180d..fe5d9a9f93 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1659,6 +1659,65 @@ def get_partitions_with_specs(self, request): """ pass + def find_next_compact(self, workerId): + """ + Parameters: + - workerId + """ + pass + + def set_compaction_highest_writeid(self, cr, high_watermark): + """ + Parameters: + - cr + - high_watermark + """ + pass + + def set_run_as(self, cq_id, user): + """ + Parameters: + - cq_id + - user + """ + pass + + def find_columns_with_stats(self, cr): + """ + Parameters: + - cr + """ + pass + + def mark_cleaned(self, cr): + """ + Parameters: + - cr + """ + pass + + def mark_compacted(self, cr): + """ + Parameters: + - cr + """ + pass + + def mark_failed(self, cr): + """ + Parameters: + - cr + """ + pass + + def set_hadoop_jobid(self, jobId, cq_id): + """ + Parameters: + - jobId + - cq_id + """ + pass + class Client(fb303.FacebookService.Client, Iface): """ @@ -9337,6 +9396,256 @@ def recv_get_partitions_with_specs(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_specs failed: unknown result") + def find_next_compact(self, workerId): + """ + Parameters: + - workerId + """ + self.send_find_next_compact(workerId) + return self.recv_find_next_compact() + + def send_find_next_compact(self, workerId): + self._oprot.writeMessageBegin('find_next_compact', TMessageType.CALL, self._seqid) + args = find_next_compact_args() + args.workerId = workerId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_find_next_compact(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = find_next_compact_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "find_next_compact failed: unknown result") + + def set_compaction_highest_writeid(self, cr, high_watermark): + """ + Parameters: + - cr + - high_watermark + """ + self.send_set_compaction_highest_writeid(cr, high_watermark) + self.recv_set_compaction_highest_writeid() + + def send_set_compaction_highest_writeid(self, cr, high_watermark): + self._oprot.writeMessageBegin('set_compaction_highest_writeid', TMessageType.CALL, self._seqid) + args = set_compaction_highest_writeid_args() + args.cr = cr + args.high_watermark = high_watermark + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_set_compaction_highest_writeid(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = set_compaction_highest_writeid_result() + result.read(iprot) + iprot.readMessageEnd() + return + + def set_run_as(self, cq_id, user): + """ + Parameters: + - cq_id + - user + """ + self.send_set_run_as(cq_id, user) + self.recv_set_run_as() + + def send_set_run_as(self, cq_id, user): + self._oprot.writeMessageBegin('set_run_as', TMessageType.CALL, self._seqid) + args = set_run_as_args() + args.cq_id = cq_id + args.user = user + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_set_run_as(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = set_run_as_result() + result.read(iprot) + iprot.readMessageEnd() + return + + def find_columns_with_stats(self, cr): + """ + Parameters: + - cr + """ + self.send_find_columns_with_stats(cr) + return self.recv_find_columns_with_stats() + + def send_find_columns_with_stats(self, cr): + self._oprot.writeMessageBegin('find_columns_with_stats', TMessageType.CALL, self._seqid) + args = find_columns_with_stats_args() + args.cr = cr + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_find_columns_with_stats(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = find_columns_with_stats_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "find_columns_with_stats failed: unknown result") + + def mark_cleaned(self, cr): + """ + Parameters: + - cr + """ + self.send_mark_cleaned(cr) + self.recv_mark_cleaned() + + def send_mark_cleaned(self, cr): + self._oprot.writeMessageBegin('mark_cleaned', TMessageType.CALL, self._seqid) + args = mark_cleaned_args() + args.cr = cr + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_mark_cleaned(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = mark_cleaned_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + return + + def mark_compacted(self, cr): + """ + Parameters: + - cr + """ + self.send_mark_compacted(cr) + self.recv_mark_compacted() + + def send_mark_compacted(self, cr): + self._oprot.writeMessageBegin('mark_compacted', TMessageType.CALL, self._seqid) + args = mark_compacted_args() + args.cr = cr + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_mark_compacted(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = mark_compacted_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + return + + def mark_failed(self, cr): + """ + Parameters: + - cr + """ + self.send_mark_failed(cr) + self.recv_mark_failed() + + def send_mark_failed(self, cr): + self._oprot.writeMessageBegin('mark_failed', TMessageType.CALL, self._seqid) + args = mark_failed_args() + args.cr = cr + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_mark_failed(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = mark_failed_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + return + + def set_hadoop_jobid(self, jobId, cq_id): + """ + Parameters: + - jobId + - cq_id + """ + self.send_set_hadoop_jobid(jobId, cq_id) + self.recv_set_hadoop_jobid() + + def send_set_hadoop_jobid(self, jobId, cq_id): + self._oprot.writeMessageBegin('set_hadoop_jobid', TMessageType.CALL, self._seqid) + args = set_hadoop_jobid_args() + args.jobId = jobId + args.cq_id = cq_id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_set_hadoop_jobid(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = set_hadoop_jobid_result() + result.read(iprot) + iprot.readMessageEnd() + return + class Processor(fb303.FacebookService.Processor, Iface, TProcessor): def __init__(self, handler): @@ -9556,6 +9865,14 @@ def __init__(self, handler): self._processMap["add_runtime_stats"] = Processor.process_add_runtime_stats self._processMap["get_runtime_stats"] = Processor.process_get_runtime_stats self._processMap["get_partitions_with_specs"] = Processor.process_get_partitions_with_specs + self._processMap["find_next_compact"] = Processor.process_find_next_compact + self._processMap["set_compaction_highest_writeid"] = Processor.process_set_compaction_highest_writeid + self._processMap["set_run_as"] = Processor.process_set_run_as + self._processMap["find_columns_with_stats"] = Processor.process_find_columns_with_stats + self._processMap["mark_cleaned"] = Processor.process_mark_cleaned + self._processMap["mark_compacted"] = Processor.process_mark_compacted + self._processMap["mark_failed"] = Processor.process_mark_failed + self._processMap["set_hadoop_jobid"] = Processor.process_set_hadoop_jobid def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin() @@ -14881,6 +15198,170 @@ def process_get_partitions_with_specs(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_find_next_compact(self, seqid, iprot, oprot): + args = find_next_compact_args() + args.read(iprot) + iprot.readMessageEnd() + result = find_next_compact_result() + try: + result.success = self._handler.find_next_compact(args.workerId) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("find_next_compact", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_set_compaction_highest_writeid(self, seqid, iprot, oprot): + args = set_compaction_highest_writeid_args() + args.read(iprot) + iprot.readMessageEnd() + result = set_compaction_highest_writeid_result() + try: + self._handler.set_compaction_highest_writeid(args.cr, args.high_watermark) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("set_compaction_highest_writeid", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_set_run_as(self, seqid, iprot, oprot): + args = set_run_as_args() + args.read(iprot) + iprot.readMessageEnd() + result = set_run_as_result() + try: + self._handler.set_run_as(args.cq_id, args.user) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("set_run_as", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_find_columns_with_stats(self, seqid, iprot, oprot): + args = find_columns_with_stats_args() + args.read(iprot) + iprot.readMessageEnd() + result = find_columns_with_stats_result() + try: + result.success = self._handler.find_columns_with_stats(args.cr) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("find_columns_with_stats", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_mark_cleaned(self, seqid, iprot, oprot): + args = mark_cleaned_args() + args.read(iprot) + iprot.readMessageEnd() + result = mark_cleaned_result() + try: + self._handler.mark_cleaned(args.cr) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("mark_cleaned", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_mark_compacted(self, seqid, iprot, oprot): + args = mark_compacted_args() + args.read(iprot) + iprot.readMessageEnd() + result = mark_compacted_result() + try: + self._handler.mark_compacted(args.cr) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("mark_compacted", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_mark_failed(self, seqid, iprot, oprot): + args = mark_failed_args() + args.read(iprot) + iprot.readMessageEnd() + result = mark_failed_result() + try: + self._handler.mark_failed(args.cr) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("mark_failed", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_set_hadoop_jobid(self, seqid, iprot, oprot): + args = set_hadoop_jobid_args() + args.read(iprot) + iprot.readMessageEnd() + result = set_hadoop_jobid_result() + try: + self._handler.set_hadoop_jobid(args.jobId, args.cq_id) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("set_hadoop_jobid", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + # HELPER FUNCTIONS AND STRUCTURES @@ -16531,10 +17012,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype882, _size879) = iprot.readListBegin() - for _i883 in xrange(_size879): - _elem884 = iprot.readString() - self.success.append(_elem884) + (_etype891, _size888) = iprot.readListBegin() + for _i892 in xrange(_size888): + _elem893 = iprot.readString() + self.success.append(_elem893) iprot.readListEnd() else: iprot.skip(ftype) @@ -16557,8 +17038,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter885 in self.success: - oprot.writeString(iter885) + for iter894 in self.success: + oprot.writeString(iter894) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16663,10 +17144,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype889, _size886) = iprot.readListBegin() - for _i890 in xrange(_size886): - _elem891 = iprot.readString() - self.success.append(_elem891) + (_etype898, _size895) = iprot.readListBegin() + for _i899 in xrange(_size895): + _elem900 = iprot.readString() + self.success.append(_elem900) iprot.readListEnd() else: iprot.skip(ftype) @@ -16689,8 +17170,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter892 in self.success: - oprot.writeString(iter892) + for iter901 in self.success: + oprot.writeString(iter901) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17460,12 +17941,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype894, _vtype895, _size893 ) = iprot.readMapBegin() - for _i897 in xrange(_size893): - _key898 = iprot.readString() - _val899 = Type() - _val899.read(iprot) - self.success[_key898] = _val899 + (_ktype903, _vtype904, _size902 ) = iprot.readMapBegin() + for _i906 in xrange(_size902): + _key907 = iprot.readString() + _val908 = Type() + _val908.read(iprot) + self.success[_key907] = _val908 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17488,9 +17969,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter900,viter901 in self.success.items(): - oprot.writeString(kiter900) - viter901.write(oprot) + for kiter909,viter910 in self.success.items(): + oprot.writeString(kiter909) + viter910.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -17633,11 +18114,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype905, _size902) = iprot.readListBegin() - for _i906 in xrange(_size902): - _elem907 = FieldSchema() - _elem907.read(iprot) - self.success.append(_elem907) + (_etype914, _size911) = iprot.readListBegin() + for _i915 in xrange(_size911): + _elem916 = FieldSchema() + _elem916.read(iprot) + self.success.append(_elem916) iprot.readListEnd() else: iprot.skip(ftype) @@ -17672,8 +18153,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter908 in self.success: - iter908.write(oprot) + for iter917 in self.success: + iter917.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17840,11 +18321,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype912, _size909) = iprot.readListBegin() - for _i913 in xrange(_size909): - _elem914 = FieldSchema() - _elem914.read(iprot) - self.success.append(_elem914) + (_etype921, _size918) = iprot.readListBegin() + for _i922 in xrange(_size918): + _elem923 = FieldSchema() + _elem923.read(iprot) + self.success.append(_elem923) iprot.readListEnd() else: iprot.skip(ftype) @@ -17879,8 +18360,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter915 in self.success: - iter915.write(oprot) + for iter924 in self.success: + iter924.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18033,11 +18514,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype919, _size916) = iprot.readListBegin() - for _i920 in xrange(_size916): - _elem921 = FieldSchema() - _elem921.read(iprot) - self.success.append(_elem921) + (_etype928, _size925) = iprot.readListBegin() + for _i929 in xrange(_size925): + _elem930 = FieldSchema() + _elem930.read(iprot) + self.success.append(_elem930) iprot.readListEnd() else: iprot.skip(ftype) @@ -18072,8 +18553,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter922 in self.success: - iter922.write(oprot) + for iter931 in self.success: + iter931.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18240,11 +18721,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype926, _size923) = iprot.readListBegin() - for _i927 in xrange(_size923): - _elem928 = FieldSchema() - _elem928.read(iprot) - self.success.append(_elem928) + (_etype935, _size932) = iprot.readListBegin() + for _i936 in xrange(_size932): + _elem937 = FieldSchema() + _elem937.read(iprot) + self.success.append(_elem937) iprot.readListEnd() else: iprot.skip(ftype) @@ -18279,8 +18760,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter929 in self.success: - iter929.write(oprot) + for iter938 in self.success: + iter938.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18733,66 +19214,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype933, _size930) = iprot.readListBegin() - for _i934 in xrange(_size930): - _elem935 = SQLPrimaryKey() - _elem935.read(iprot) - self.primaryKeys.append(_elem935) + (_etype942, _size939) = iprot.readListBegin() + for _i943 in xrange(_size939): + _elem944 = SQLPrimaryKey() + _elem944.read(iprot) + self.primaryKeys.append(_elem944) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype939, _size936) = iprot.readListBegin() - for _i940 in xrange(_size936): - _elem941 = SQLForeignKey() - _elem941.read(iprot) - self.foreignKeys.append(_elem941) + (_etype948, _size945) = iprot.readListBegin() + for _i949 in xrange(_size945): + _elem950 = SQLForeignKey() + _elem950.read(iprot) + self.foreignKeys.append(_elem950) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype945, _size942) = iprot.readListBegin() - for _i946 in xrange(_size942): - _elem947 = SQLUniqueConstraint() - _elem947.read(iprot) - self.uniqueConstraints.append(_elem947) + (_etype954, _size951) = iprot.readListBegin() + for _i955 in xrange(_size951): + _elem956 = SQLUniqueConstraint() + _elem956.read(iprot) + self.uniqueConstraints.append(_elem956) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype951, _size948) = iprot.readListBegin() - for _i952 in xrange(_size948): - _elem953 = SQLNotNullConstraint() - _elem953.read(iprot) - self.notNullConstraints.append(_elem953) + (_etype960, _size957) = iprot.readListBegin() + for _i961 in xrange(_size957): + _elem962 = SQLNotNullConstraint() + _elem962.read(iprot) + self.notNullConstraints.append(_elem962) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype957, _size954) = iprot.readListBegin() - for _i958 in xrange(_size954): - _elem959 = SQLDefaultConstraint() - _elem959.read(iprot) - self.defaultConstraints.append(_elem959) + (_etype966, _size963) = iprot.readListBegin() + for _i967 in xrange(_size963): + _elem968 = SQLDefaultConstraint() + _elem968.read(iprot) + self.defaultConstraints.append(_elem968) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.checkConstraints = [] - (_etype963, _size960) = iprot.readListBegin() - for _i964 in xrange(_size960): - _elem965 = SQLCheckConstraint() - _elem965.read(iprot) - self.checkConstraints.append(_elem965) + (_etype972, _size969) = iprot.readListBegin() + for _i973 in xrange(_size969): + _elem974 = SQLCheckConstraint() + _elem974.read(iprot) + self.checkConstraints.append(_elem974) iprot.readListEnd() else: iprot.skip(ftype) @@ -18813,43 +19294,43 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter966 in self.primaryKeys: - iter966.write(oprot) + for iter975 in self.primaryKeys: + iter975.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter967 in self.foreignKeys: - iter967.write(oprot) + for iter976 in self.foreignKeys: + iter976.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.uniqueConstraints is not None: oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter968 in self.uniqueConstraints: - iter968.write(oprot) + for iter977 in self.uniqueConstraints: + iter977.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notNullConstraints is not None: oprot.writeFieldBegin('notNullConstraints', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter969 in self.notNullConstraints: - iter969.write(oprot) + for iter978 in self.notNullConstraints: + iter978.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.defaultConstraints is not None: oprot.writeFieldBegin('defaultConstraints', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter970 in self.defaultConstraints: - iter970.write(oprot) + for iter979 in self.defaultConstraints: + iter979.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.checkConstraints is not None: oprot.writeFieldBegin('checkConstraints', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter971 in self.checkConstraints: - iter971.write(oprot) + for iter980 in self.checkConstraints: + iter980.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20409,10 +20890,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype975, _size972) = iprot.readListBegin() - for _i976 in xrange(_size972): - _elem977 = iprot.readString() - self.partNames.append(_elem977) + (_etype984, _size981) = iprot.readListBegin() + for _i985 in xrange(_size981): + _elem986 = iprot.readString() + self.partNames.append(_elem986) iprot.readListEnd() else: iprot.skip(ftype) @@ -20437,8 +20918,8 @@ def write(self, oprot): if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter978 in self.partNames: - oprot.writeString(iter978) + for iter987 in self.partNames: + oprot.writeString(iter987) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20783,10 +21264,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype982, _size979) = iprot.readListBegin() - for _i983 in xrange(_size979): - _elem984 = iprot.readString() - self.success.append(_elem984) + (_etype991, _size988) = iprot.readListBegin() + for _i992 in xrange(_size988): + _elem993 = iprot.readString() + self.success.append(_elem993) iprot.readListEnd() else: iprot.skip(ftype) @@ -20809,8 +21290,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter985 in self.success: - oprot.writeString(iter985) + for iter994 in self.success: + oprot.writeString(iter994) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20960,10 +21441,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype989, _size986) = iprot.readListBegin() - for _i990 in xrange(_size986): - _elem991 = iprot.readString() - self.success.append(_elem991) + (_etype998, _size995) = iprot.readListBegin() + for _i999 in xrange(_size995): + _elem1000 = iprot.readString() + self.success.append(_elem1000) iprot.readListEnd() else: iprot.skip(ftype) @@ -20986,8 +21467,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter992 in self.success: - oprot.writeString(iter992) + for iter1001 in self.success: + oprot.writeString(iter1001) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21111,10 +21592,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype996, _size993) = iprot.readListBegin() - for _i997 in xrange(_size993): - _elem998 = iprot.readString() - self.success.append(_elem998) + (_etype1005, _size1002) = iprot.readListBegin() + for _i1006 in xrange(_size1002): + _elem1007 = iprot.readString() + self.success.append(_elem1007) iprot.readListEnd() else: iprot.skip(ftype) @@ -21137,8 +21618,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter999 in self.success: - oprot.writeString(iter999) + for iter1008 in self.success: + oprot.writeString(iter1008) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21211,10 +21692,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype1003, _size1000) = iprot.readListBegin() - for _i1004 in xrange(_size1000): - _elem1005 = iprot.readString() - self.tbl_types.append(_elem1005) + (_etype1012, _size1009) = iprot.readListBegin() + for _i1013 in xrange(_size1009): + _elem1014 = iprot.readString() + self.tbl_types.append(_elem1014) iprot.readListEnd() else: iprot.skip(ftype) @@ -21239,8 +21720,8 @@ def write(self, oprot): if self.tbl_types is not None: oprot.writeFieldBegin('tbl_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter1006 in self.tbl_types: - oprot.writeString(iter1006) + for iter1015 in self.tbl_types: + oprot.writeString(iter1015) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21296,11 +21777,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1010, _size1007) = iprot.readListBegin() - for _i1011 in xrange(_size1007): - _elem1012 = TableMeta() - _elem1012.read(iprot) - self.success.append(_elem1012) + (_etype1019, _size1016) = iprot.readListBegin() + for _i1020 in xrange(_size1016): + _elem1021 = TableMeta() + _elem1021.read(iprot) + self.success.append(_elem1021) iprot.readListEnd() else: iprot.skip(ftype) @@ -21323,8 +21804,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1013 in self.success: - iter1013.write(oprot) + for iter1022 in self.success: + iter1022.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21448,10 +21929,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1017, _size1014) = iprot.readListBegin() - for _i1018 in xrange(_size1014): - _elem1019 = iprot.readString() - self.success.append(_elem1019) + (_etype1026, _size1023) = iprot.readListBegin() + for _i1027 in xrange(_size1023): + _elem1028 = iprot.readString() + self.success.append(_elem1028) iprot.readListEnd() else: iprot.skip(ftype) @@ -21474,8 +21955,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1020 in self.success: - oprot.writeString(iter1020) + for iter1029 in self.success: + oprot.writeString(iter1029) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21711,10 +22192,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype1024, _size1021) = iprot.readListBegin() - for _i1025 in xrange(_size1021): - _elem1026 = iprot.readString() - self.tbl_names.append(_elem1026) + (_etype1033, _size1030) = iprot.readListBegin() + for _i1034 in xrange(_size1030): + _elem1035 = iprot.readString() + self.tbl_names.append(_elem1035) iprot.readListEnd() else: iprot.skip(ftype) @@ -21735,8 +22216,8 @@ def write(self, oprot): if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter1027 in self.tbl_names: - oprot.writeString(iter1027) + for iter1036 in self.tbl_names: + oprot.writeString(iter1036) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21788,11 +22269,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1031, _size1028) = iprot.readListBegin() - for _i1032 in xrange(_size1028): - _elem1033 = Table() - _elem1033.read(iprot) - self.success.append(_elem1033) + (_etype1040, _size1037) = iprot.readListBegin() + for _i1041 in xrange(_size1037): + _elem1042 = Table() + _elem1042.read(iprot) + self.success.append(_elem1042) iprot.readListEnd() else: iprot.skip(ftype) @@ -21809,8 +22290,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1034 in self.success: - iter1034.write(oprot) + for iter1043 in self.success: + iter1043.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22678,10 +23159,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1038, _size1035) = iprot.readListBegin() - for _i1039 in xrange(_size1035): - _elem1040 = iprot.readString() - self.success.append(_elem1040) + (_etype1047, _size1044) = iprot.readListBegin() + for _i1048 in xrange(_size1044): + _elem1049 = iprot.readString() + self.success.append(_elem1049) iprot.readListEnd() else: iprot.skip(ftype) @@ -22716,8 +23197,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1041 in self.success: - oprot.writeString(iter1041) + for iter1050 in self.success: + oprot.writeString(iter1050) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23846,11 +24327,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1045, _size1042) = iprot.readListBegin() - for _i1046 in xrange(_size1042): - _elem1047 = Partition() - _elem1047.read(iprot) - self.new_parts.append(_elem1047) + (_etype1054, _size1051) = iprot.readListBegin() + for _i1055 in xrange(_size1051): + _elem1056 = Partition() + _elem1056.read(iprot) + self.new_parts.append(_elem1056) iprot.readListEnd() else: iprot.skip(ftype) @@ -23867,8 +24348,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1048 in self.new_parts: - iter1048.write(oprot) + for iter1057 in self.new_parts: + iter1057.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24026,11 +24507,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1052, _size1049) = iprot.readListBegin() - for _i1053 in xrange(_size1049): - _elem1054 = PartitionSpec() - _elem1054.read(iprot) - self.new_parts.append(_elem1054) + (_etype1061, _size1058) = iprot.readListBegin() + for _i1062 in xrange(_size1058): + _elem1063 = PartitionSpec() + _elem1063.read(iprot) + self.new_parts.append(_elem1063) iprot.readListEnd() else: iprot.skip(ftype) @@ -24047,8 +24528,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1055 in self.new_parts: - iter1055.write(oprot) + for iter1064 in self.new_parts: + iter1064.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24222,10 +24703,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1059, _size1056) = iprot.readListBegin() - for _i1060 in xrange(_size1056): - _elem1061 = iprot.readString() - self.part_vals.append(_elem1061) + (_etype1068, _size1065) = iprot.readListBegin() + for _i1069 in xrange(_size1065): + _elem1070 = iprot.readString() + self.part_vals.append(_elem1070) iprot.readListEnd() else: iprot.skip(ftype) @@ -24250,8 +24731,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1062 in self.part_vals: - oprot.writeString(iter1062) + for iter1071 in self.part_vals: + oprot.writeString(iter1071) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24604,10 +25085,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1066, _size1063) = iprot.readListBegin() - for _i1067 in xrange(_size1063): - _elem1068 = iprot.readString() - self.part_vals.append(_elem1068) + (_etype1075, _size1072) = iprot.readListBegin() + for _i1076 in xrange(_size1072): + _elem1077 = iprot.readString() + self.part_vals.append(_elem1077) iprot.readListEnd() else: iprot.skip(ftype) @@ -24638,8 +25119,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1069 in self.part_vals: - oprot.writeString(iter1069) + for iter1078 in self.part_vals: + oprot.writeString(iter1078) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -25234,10 +25715,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1073, _size1070) = iprot.readListBegin() - for _i1074 in xrange(_size1070): - _elem1075 = iprot.readString() - self.part_vals.append(_elem1075) + (_etype1082, _size1079) = iprot.readListBegin() + for _i1083 in xrange(_size1079): + _elem1084 = iprot.readString() + self.part_vals.append(_elem1084) iprot.readListEnd() else: iprot.skip(ftype) @@ -25267,8 +25748,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1076 in self.part_vals: - oprot.writeString(iter1076) + for iter1085 in self.part_vals: + oprot.writeString(iter1085) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -25441,10 +25922,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1080, _size1077) = iprot.readListBegin() - for _i1081 in xrange(_size1077): - _elem1082 = iprot.readString() - self.part_vals.append(_elem1082) + (_etype1089, _size1086) = iprot.readListBegin() + for _i1090 in xrange(_size1086): + _elem1091 = iprot.readString() + self.part_vals.append(_elem1091) iprot.readListEnd() else: iprot.skip(ftype) @@ -25480,8 +25961,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1083 in self.part_vals: - oprot.writeString(iter1083) + for iter1092 in self.part_vals: + oprot.writeString(iter1092) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -26218,10 +26699,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1087, _size1084) = iprot.readListBegin() - for _i1088 in xrange(_size1084): - _elem1089 = iprot.readString() - self.part_vals.append(_elem1089) + (_etype1096, _size1093) = iprot.readListBegin() + for _i1097 in xrange(_size1093): + _elem1098 = iprot.readString() + self.part_vals.append(_elem1098) iprot.readListEnd() else: iprot.skip(ftype) @@ -26246,8 +26727,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1090 in self.part_vals: - oprot.writeString(iter1090) + for iter1099 in self.part_vals: + oprot.writeString(iter1099) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26406,11 +26887,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1092, _vtype1093, _size1091 ) = iprot.readMapBegin() - for _i1095 in xrange(_size1091): - _key1096 = iprot.readString() - _val1097 = iprot.readString() - self.partitionSpecs[_key1096] = _val1097 + (_ktype1101, _vtype1102, _size1100 ) = iprot.readMapBegin() + for _i1104 in xrange(_size1100): + _key1105 = iprot.readString() + _val1106 = iprot.readString() + self.partitionSpecs[_key1105] = _val1106 iprot.readMapEnd() else: iprot.skip(ftype) @@ -26447,9 +26928,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter1098,viter1099 in self.partitionSpecs.items(): - oprot.writeString(kiter1098) - oprot.writeString(viter1099) + for kiter1107,viter1108 in self.partitionSpecs.items(): + oprot.writeString(kiter1107) + oprot.writeString(viter1108) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -26654,11 +27135,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1101, _vtype1102, _size1100 ) = iprot.readMapBegin() - for _i1104 in xrange(_size1100): - _key1105 = iprot.readString() - _val1106 = iprot.readString() - self.partitionSpecs[_key1105] = _val1106 + (_ktype1110, _vtype1111, _size1109 ) = iprot.readMapBegin() + for _i1113 in xrange(_size1109): + _key1114 = iprot.readString() + _val1115 = iprot.readString() + self.partitionSpecs[_key1114] = _val1115 iprot.readMapEnd() else: iprot.skip(ftype) @@ -26695,9 +27176,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter1107,viter1108 in self.partitionSpecs.items(): - oprot.writeString(kiter1107) - oprot.writeString(viter1108) + for kiter1116,viter1117 in self.partitionSpecs.items(): + oprot.writeString(kiter1116) + oprot.writeString(viter1117) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -26780,11 +27261,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1112, _size1109) = iprot.readListBegin() - for _i1113 in xrange(_size1109): - _elem1114 = Partition() - _elem1114.read(iprot) - self.success.append(_elem1114) + (_etype1121, _size1118) = iprot.readListBegin() + for _i1122 in xrange(_size1118): + _elem1123 = Partition() + _elem1123.read(iprot) + self.success.append(_elem1123) iprot.readListEnd() else: iprot.skip(ftype) @@ -26825,8 +27306,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1115 in self.success: - iter1115.write(oprot) + for iter1124 in self.success: + iter1124.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26920,10 +27401,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1119, _size1116) = iprot.readListBegin() - for _i1120 in xrange(_size1116): - _elem1121 = iprot.readString() - self.part_vals.append(_elem1121) + (_etype1128, _size1125) = iprot.readListBegin() + for _i1129 in xrange(_size1125): + _elem1130 = iprot.readString() + self.part_vals.append(_elem1130) iprot.readListEnd() else: iprot.skip(ftype) @@ -26935,10 +27416,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1125, _size1122) = iprot.readListBegin() - for _i1126 in xrange(_size1122): - _elem1127 = iprot.readString() - self.group_names.append(_elem1127) + (_etype1134, _size1131) = iprot.readListBegin() + for _i1135 in xrange(_size1131): + _elem1136 = iprot.readString() + self.group_names.append(_elem1136) iprot.readListEnd() else: iprot.skip(ftype) @@ -26963,8 +27444,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1128 in self.part_vals: - oprot.writeString(iter1128) + for iter1137 in self.part_vals: + oprot.writeString(iter1137) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -26974,8 +27455,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1129 in self.group_names: - oprot.writeString(iter1129) + for iter1138 in self.group_names: + oprot.writeString(iter1138) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27404,11 +27885,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1133, _size1130) = iprot.readListBegin() - for _i1134 in xrange(_size1130): - _elem1135 = Partition() - _elem1135.read(iprot) - self.success.append(_elem1135) + (_etype1142, _size1139) = iprot.readListBegin() + for _i1143 in xrange(_size1139): + _elem1144 = Partition() + _elem1144.read(iprot) + self.success.append(_elem1144) iprot.readListEnd() else: iprot.skip(ftype) @@ -27437,8 +27918,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1136 in self.success: - iter1136.write(oprot) + for iter1145 in self.success: + iter1145.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27532,10 +28013,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1140, _size1137) = iprot.readListBegin() - for _i1141 in xrange(_size1137): - _elem1142 = iprot.readString() - self.group_names.append(_elem1142) + (_etype1149, _size1146) = iprot.readListBegin() + for _i1150 in xrange(_size1146): + _elem1151 = iprot.readString() + self.group_names.append(_elem1151) iprot.readListEnd() else: iprot.skip(ftype) @@ -27568,8 +28049,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1143 in self.group_names: - oprot.writeString(iter1143) + for iter1152 in self.group_names: + oprot.writeString(iter1152) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27630,11 +28111,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1147, _size1144) = iprot.readListBegin() - for _i1148 in xrange(_size1144): - _elem1149 = Partition() - _elem1149.read(iprot) - self.success.append(_elem1149) + (_etype1156, _size1153) = iprot.readListBegin() + for _i1157 in xrange(_size1153): + _elem1158 = Partition() + _elem1158.read(iprot) + self.success.append(_elem1158) iprot.readListEnd() else: iprot.skip(ftype) @@ -27663,8 +28144,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1150 in self.success: - iter1150.write(oprot) + for iter1159 in self.success: + iter1159.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27822,11 +28303,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1154, _size1151) = iprot.readListBegin() - for _i1155 in xrange(_size1151): - _elem1156 = PartitionSpec() - _elem1156.read(iprot) - self.success.append(_elem1156) + (_etype1163, _size1160) = iprot.readListBegin() + for _i1164 in xrange(_size1160): + _elem1165 = PartitionSpec() + _elem1165.read(iprot) + self.success.append(_elem1165) iprot.readListEnd() else: iprot.skip(ftype) @@ -27855,8 +28336,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1157 in self.success: - iter1157.write(oprot) + for iter1166 in self.success: + iter1166.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28014,10 +28495,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1161, _size1158) = iprot.readListBegin() - for _i1162 in xrange(_size1158): - _elem1163 = iprot.readString() - self.success.append(_elem1163) + (_etype1170, _size1167) = iprot.readListBegin() + for _i1171 in xrange(_size1167): + _elem1172 = iprot.readString() + self.success.append(_elem1172) iprot.readListEnd() else: iprot.skip(ftype) @@ -28046,8 +28527,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1164 in self.success: - oprot.writeString(iter1164) + for iter1173 in self.success: + oprot.writeString(iter1173) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28287,10 +28768,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1168, _size1165) = iprot.readListBegin() - for _i1169 in xrange(_size1165): - _elem1170 = iprot.readString() - self.part_vals.append(_elem1170) + (_etype1177, _size1174) = iprot.readListBegin() + for _i1178 in xrange(_size1174): + _elem1179 = iprot.readString() + self.part_vals.append(_elem1179) iprot.readListEnd() else: iprot.skip(ftype) @@ -28320,8 +28801,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1171 in self.part_vals: - oprot.writeString(iter1171) + for iter1180 in self.part_vals: + oprot.writeString(iter1180) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -28385,11 +28866,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1175, _size1172) = iprot.readListBegin() - for _i1176 in xrange(_size1172): - _elem1177 = Partition() - _elem1177.read(iprot) - self.success.append(_elem1177) + (_etype1184, _size1181) = iprot.readListBegin() + for _i1185 in xrange(_size1181): + _elem1186 = Partition() + _elem1186.read(iprot) + self.success.append(_elem1186) iprot.readListEnd() else: iprot.skip(ftype) @@ -28418,8 +28899,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1178 in self.success: - iter1178.write(oprot) + for iter1187 in self.success: + iter1187.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28506,10 +28987,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1182, _size1179) = iprot.readListBegin() - for _i1183 in xrange(_size1179): - _elem1184 = iprot.readString() - self.part_vals.append(_elem1184) + (_etype1191, _size1188) = iprot.readListBegin() + for _i1192 in xrange(_size1188): + _elem1193 = iprot.readString() + self.part_vals.append(_elem1193) iprot.readListEnd() else: iprot.skip(ftype) @@ -28526,10 +29007,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1188, _size1185) = iprot.readListBegin() - for _i1189 in xrange(_size1185): - _elem1190 = iprot.readString() - self.group_names.append(_elem1190) + (_etype1197, _size1194) = iprot.readListBegin() + for _i1198 in xrange(_size1194): + _elem1199 = iprot.readString() + self.group_names.append(_elem1199) iprot.readListEnd() else: iprot.skip(ftype) @@ -28554,8 +29035,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1191 in self.part_vals: - oprot.writeString(iter1191) + for iter1200 in self.part_vals: + oprot.writeString(iter1200) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -28569,8 +29050,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1192 in self.group_names: - oprot.writeString(iter1192) + for iter1201 in self.group_names: + oprot.writeString(iter1201) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28632,11 +29113,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1196, _size1193) = iprot.readListBegin() - for _i1197 in xrange(_size1193): - _elem1198 = Partition() - _elem1198.read(iprot) - self.success.append(_elem1198) + (_etype1205, _size1202) = iprot.readListBegin() + for _i1206 in xrange(_size1202): + _elem1207 = Partition() + _elem1207.read(iprot) + self.success.append(_elem1207) iprot.readListEnd() else: iprot.skip(ftype) @@ -28665,8 +29146,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1199 in self.success: - iter1199.write(oprot) + for iter1208 in self.success: + iter1208.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28747,10 +29228,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1203, _size1200) = iprot.readListBegin() - for _i1204 in xrange(_size1200): - _elem1205 = iprot.readString() - self.part_vals.append(_elem1205) + (_etype1212, _size1209) = iprot.readListBegin() + for _i1213 in xrange(_size1209): + _elem1214 = iprot.readString() + self.part_vals.append(_elem1214) iprot.readListEnd() else: iprot.skip(ftype) @@ -28780,8 +29261,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1206 in self.part_vals: - oprot.writeString(iter1206) + for iter1215 in self.part_vals: + oprot.writeString(iter1215) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -28845,10 +29326,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1210, _size1207) = iprot.readListBegin() - for _i1211 in xrange(_size1207): - _elem1212 = iprot.readString() - self.success.append(_elem1212) + (_etype1219, _size1216) = iprot.readListBegin() + for _i1220 in xrange(_size1216): + _elem1221 = iprot.readString() + self.success.append(_elem1221) iprot.readListEnd() else: iprot.skip(ftype) @@ -28877,8 +29358,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1213 in self.success: - oprot.writeString(iter1213) + for iter1222 in self.success: + oprot.writeString(iter1222) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29049,11 +29530,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1217, _size1214) = iprot.readListBegin() - for _i1218 in xrange(_size1214): - _elem1219 = Partition() - _elem1219.read(iprot) - self.success.append(_elem1219) + (_etype1226, _size1223) = iprot.readListBegin() + for _i1227 in xrange(_size1223): + _elem1228 = Partition() + _elem1228.read(iprot) + self.success.append(_elem1228) iprot.readListEnd() else: iprot.skip(ftype) @@ -29082,8 +29563,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1220 in self.success: - iter1220.write(oprot) + for iter1229 in self.success: + iter1229.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29254,11 +29735,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1224, _size1221) = iprot.readListBegin() - for _i1225 in xrange(_size1221): - _elem1226 = PartitionSpec() - _elem1226.read(iprot) - self.success.append(_elem1226) + (_etype1233, _size1230) = iprot.readListBegin() + for _i1234 in xrange(_size1230): + _elem1235 = PartitionSpec() + _elem1235.read(iprot) + self.success.append(_elem1235) iprot.readListEnd() else: iprot.skip(ftype) @@ -29287,8 +29768,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1227 in self.success: - iter1227.write(oprot) + for iter1236 in self.success: + iter1236.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29708,10 +30189,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1231, _size1228) = iprot.readListBegin() - for _i1232 in xrange(_size1228): - _elem1233 = iprot.readString() - self.names.append(_elem1233) + (_etype1240, _size1237) = iprot.readListBegin() + for _i1241 in xrange(_size1237): + _elem1242 = iprot.readString() + self.names.append(_elem1242) iprot.readListEnd() else: iprot.skip(ftype) @@ -29736,8 +30217,8 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter1234 in self.names: - oprot.writeString(iter1234) + for iter1243 in self.names: + oprot.writeString(iter1243) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29796,11 +30277,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1238, _size1235) = iprot.readListBegin() - for _i1239 in xrange(_size1235): - _elem1240 = Partition() - _elem1240.read(iprot) - self.success.append(_elem1240) + (_etype1247, _size1244) = iprot.readListBegin() + for _i1248 in xrange(_size1244): + _elem1249 = Partition() + _elem1249.read(iprot) + self.success.append(_elem1249) iprot.readListEnd() else: iprot.skip(ftype) @@ -29829,8 +30310,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1241 in self.success: - iter1241.write(oprot) + for iter1250 in self.success: + iter1250.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30080,11 +30561,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1245, _size1242) = iprot.readListBegin() - for _i1246 in xrange(_size1242): - _elem1247 = Partition() - _elem1247.read(iprot) - self.new_parts.append(_elem1247) + (_etype1254, _size1251) = iprot.readListBegin() + for _i1255 in xrange(_size1251): + _elem1256 = Partition() + _elem1256.read(iprot) + self.new_parts.append(_elem1256) iprot.readListEnd() else: iprot.skip(ftype) @@ -30109,8 +30590,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1248 in self.new_parts: - iter1248.write(oprot) + for iter1257 in self.new_parts: + iter1257.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30263,11 +30744,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1252, _size1249) = iprot.readListBegin() - for _i1253 in xrange(_size1249): - _elem1254 = Partition() - _elem1254.read(iprot) - self.new_parts.append(_elem1254) + (_etype1261, _size1258) = iprot.readListBegin() + for _i1262 in xrange(_size1258): + _elem1263 = Partition() + _elem1263.read(iprot) + self.new_parts.append(_elem1263) iprot.readListEnd() else: iprot.skip(ftype) @@ -30298,8 +30779,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1255 in self.new_parts: - iter1255.write(oprot) + for iter1264 in self.new_parts: + iter1264.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -30802,10 +31283,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1259, _size1256) = iprot.readListBegin() - for _i1260 in xrange(_size1256): - _elem1261 = iprot.readString() - self.part_vals.append(_elem1261) + (_etype1268, _size1265) = iprot.readListBegin() + for _i1269 in xrange(_size1265): + _elem1270 = iprot.readString() + self.part_vals.append(_elem1270) iprot.readListEnd() else: iprot.skip(ftype) @@ -30836,8 +31317,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1262 in self.part_vals: - oprot.writeString(iter1262) + for iter1271 in self.part_vals: + oprot.writeString(iter1271) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -31138,10 +31619,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1266, _size1263) = iprot.readListBegin() - for _i1267 in xrange(_size1263): - _elem1268 = iprot.readString() - self.part_vals.append(_elem1268) + (_etype1275, _size1272) = iprot.readListBegin() + for _i1276 in xrange(_size1272): + _elem1277 = iprot.readString() + self.part_vals.append(_elem1277) iprot.readListEnd() else: iprot.skip(ftype) @@ -31163,8 +31644,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1269 in self.part_vals: - oprot.writeString(iter1269) + for iter1278 in self.part_vals: + oprot.writeString(iter1278) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -31522,10 +32003,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1273, _size1270) = iprot.readListBegin() - for _i1274 in xrange(_size1270): - _elem1275 = iprot.readString() - self.success.append(_elem1275) + (_etype1282, _size1279) = iprot.readListBegin() + for _i1283 in xrange(_size1279): + _elem1284 = iprot.readString() + self.success.append(_elem1284) iprot.readListEnd() else: iprot.skip(ftype) @@ -31548,8 +32029,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1276 in self.success: - oprot.writeString(iter1276) + for iter1285 in self.success: + oprot.writeString(iter1285) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31673,11 +32154,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1278, _vtype1279, _size1277 ) = iprot.readMapBegin() - for _i1281 in xrange(_size1277): - _key1282 = iprot.readString() - _val1283 = iprot.readString() - self.success[_key1282] = _val1283 + (_ktype1287, _vtype1288, _size1286 ) = iprot.readMapBegin() + for _i1290 in xrange(_size1286): + _key1291 = iprot.readString() + _val1292 = iprot.readString() + self.success[_key1291] = _val1292 iprot.readMapEnd() else: iprot.skip(ftype) @@ -31700,261 +32181,15 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter1284,viter1285 in self.success.items(): - oprot.writeString(kiter1284) - oprot.writeString(viter1285) - oprot.writeMapEnd() - oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - - 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 markPartitionForEvent_args: - """ - Attributes: - - db_name - - tbl_name - - part_vals - - eventType - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.MAP, 'part_vals', (TType.STRING,None,TType.STRING,None), None, ), # 3 - (4, TType.I32, 'eventType', None, None, ), # 4 - ) - - def __init__(self, db_name=None, tbl_name=None, part_vals=None, eventType=None,): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.eventType = eventType - - 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.MAP: - self.part_vals = {} - (_ktype1287, _vtype1288, _size1286 ) = iprot.readMapBegin() - for _i1290 in xrange(_size1286): - _key1291 = iprot.readString() - _val1292 = iprot.readString() - self.part_vals[_key1291] = _val1292 - iprot.readMapEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.eventType = iprot.readI32() - 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('markPartitionForEvent_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.MAP, 3) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter1293,viter1294 in self.part_vals.items(): + for kiter1293,viter1294 in self.success.items(): oprot.writeString(kiter1293) oprot.writeString(viter1294) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.eventType is not None: - oprot.writeFieldBegin('eventType', TType.I32, 4) - oprot.writeI32(self.eventType) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.eventType) - return value - - 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 markPartitionForEvent_result: - """ - Attributes: - - o1 - - o2 - - o3 - - o4 - - o5 - - o6 - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 4 - (5, TType.STRUCT, 'o5', (UnknownPartitionException, UnknownPartitionException.thrift_spec), None, ), # 5 - (6, TType.STRUCT, 'o6', (InvalidPartitionException, InvalidPartitionException.thrift_spec), None, ), # 6 - ) - - def __init__(self, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,): - self.o1 = o1 - self.o2 = o2 - self.o3 = o3 - self.o4 = o4 - self.o5 = o5 - self.o6 = o6 - - 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.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() - self.o2.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = UnknownDBException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = UnknownTableException() - self.o4.read(iprot) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRUCT: - self.o5 = UnknownPartitionException() - self.o5.read(iprot) - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.STRUCT: - self.o6 = InvalidPartitionException() - self.o6.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('markPartitionForEvent_result') 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() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() - if self.o5 is not None: - oprot.writeFieldBegin('o5', TType.STRUCT, 5) - self.o5.write(oprot) - oprot.writeFieldEnd() - if self.o6 is not None: - oprot.writeFieldBegin('o6', TType.STRUCT, 6) - self.o6.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -31964,12 +32199,8 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - value = (value * 31) ^ hash(self.o5) - value = (value * 31) ^ hash(self.o6) return value def __repr__(self): @@ -31983,7 +32214,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class isPartitionMarkedForEvent_args: +class markPartitionForEvent_args: """ Attributes: - db_name @@ -32050,7 +32281,7 @@ 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('isPartitionMarkedForEvent_args') + oprot.writeStructBegin('markPartitionForEvent_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -32097,10 +32328,9 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class isPartitionMarkedForEvent_result: +class markPartitionForEvent_result: """ Attributes: - - success - o1 - o2 - o3 @@ -32110,7 +32340,7 @@ class isPartitionMarkedForEvent_result: """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + None, # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 @@ -32119,8 +32349,7 @@ class isPartitionMarkedForEvent_result: (6, TType.STRUCT, 'o6', (InvalidPartitionException, InvalidPartitionException.thrift_spec), None, ), # 6 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,): - self.success = success + def __init__(self, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 @@ -32137,12 +32366,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = MetaException() self.o1.read(iprot) @@ -32187,11 +32411,7 @@ 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('isPartitionMarkedForEvent_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) - oprot.writeFieldEnd() + oprot.writeStructBegin('markPartitionForEvent_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -32225,7 +32445,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) @@ -32245,19 +32464,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_primary_keys_args: +class isPartitionMarkedForEvent_args: """ Attributes: - - request + - db_name + - tbl_name + - part_vals + - eventType """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (PrimaryKeysRequest, PrimaryKeysRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.MAP, 'part_vals', (TType.STRING,None,TType.STRING,None), None, ), # 3 + (4, TType.I32, 'eventType', None, None, ), # 4 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, db_name=None, tbl_name=None, part_vals=None, eventType=None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_vals = part_vals + self.eventType = eventType 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: @@ -32269,9 +32497,29 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = PrimaryKeysRequest() - self.request.read(iprot) + 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.MAP: + self.part_vals = {} + (_ktype1305, _vtype1306, _size1304 ) = iprot.readMapBegin() + for _i1308 in xrange(_size1304): + _key1309 = iprot.readString() + _val1310 = iprot.readString() + self.part_vals[_key1309] = _val1310 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.eventType = iprot.readI32() else: iprot.skip(ftype) else: @@ -32283,10 +32531,26 @@ 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_primary_keys_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('isPartitionMarkedForEvent_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.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) + for kiter1311,viter1312 in self.part_vals.items(): + oprot.writeString(kiter1311) + oprot.writeString(viter1312) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.eventType is not None: + oprot.writeFieldBegin('eventType', TType.I32, 4) + oprot.writeI32(self.eventType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32297,7 +32561,10 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.part_vals) + value = (value * 31) ^ hash(self.eventType) return value def __repr__(self): @@ -32311,24 +32578,36 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_primary_keys_result: +class isPartitionMarkedForEvent_result: """ Attributes: - success - o1 - o2 + - o3 + - o4 + - o5 + - o6 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PrimaryKeysResponse, PrimaryKeysResponse.thrift_spec), None, ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (UnknownTableException, UnknownTableException.thrift_spec), None, ), # 4 + (5, TType.STRUCT, 'o5', (UnknownPartitionException, UnknownPartitionException.thrift_spec), None, ), # 5 + (6, TType.STRUCT, 'o6', (InvalidPartitionException, InvalidPartitionException.thrift_spec), None, ), # 6 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None, o5=None, o6=None,): self.success = success self.o1 = o1 self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + self.o5 = o5 + self.o6 = o6 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: @@ -32340,9 +32619,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PrimaryKeysResponse() - self.success.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: @@ -32357,6 +32635,30 @@ def read(self, iprot): self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = UnknownDBException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = UnknownTableException() + self.o4.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.o5 = UnknownPartitionException() + self.o5.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.o6 = InvalidPartitionException() + self.o6.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -32366,10 +32668,10 @@ 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_primary_keys_result') + oprot.writeStructBegin('isPartitionMarkedForEvent_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -32379,6 +32681,22 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + if self.o5 is not None: + oprot.writeFieldBegin('o5', TType.STRUCT, 5) + self.o5.write(oprot) + oprot.writeFieldEnd() + if self.o6 is not None: + oprot.writeFieldBegin('o6', TType.STRUCT, 6) + self.o6.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32391,6 +32709,10 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) + value = (value * 31) ^ hash(self.o5) + value = (value * 31) ^ hash(self.o6) return value def __repr__(self): @@ -32404,7 +32726,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_foreign_keys_args: +class get_primary_keys_args: """ Attributes: - request @@ -32412,7 +32734,7 @@ class get_foreign_keys_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (ForeignKeysRequest, ForeignKeysRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (PrimaryKeysRequest, PrimaryKeysRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -32429,7 +32751,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = ForeignKeysRequest() + self.request = PrimaryKeysRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -32442,7 +32764,7 @@ 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_foreign_keys_args') + oprot.writeStructBegin('get_primary_keys_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -32470,7 +32792,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_foreign_keys_result: +class get_primary_keys_result: """ Attributes: - success @@ -32479,7 +32801,7 @@ class get_foreign_keys_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ForeignKeysResponse, ForeignKeysResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (PrimaryKeysResponse, PrimaryKeysResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -32500,7 +32822,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ForeignKeysResponse() + self.success = PrimaryKeysResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -32525,7 +32847,7 @@ 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_foreign_keys_result') + oprot.writeStructBegin('get_primary_keys_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -32563,7 +32885,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_unique_constraints_args: +class get_foreign_keys_args: """ Attributes: - request @@ -32571,7 +32893,7 @@ class get_unique_constraints_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (UniqueConstraintsRequest, UniqueConstraintsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (ForeignKeysRequest, ForeignKeysRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -32588,7 +32910,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = UniqueConstraintsRequest() + self.request = ForeignKeysRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -32601,7 +32923,7 @@ 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_unique_constraints_args') + oprot.writeStructBegin('get_foreign_keys_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -32629,7 +32951,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_unique_constraints_result: +class get_foreign_keys_result: """ Attributes: - success @@ -32638,7 +32960,7 @@ class get_unique_constraints_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (UniqueConstraintsResponse, UniqueConstraintsResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (ForeignKeysResponse, ForeignKeysResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -32659,7 +32981,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = UniqueConstraintsResponse() + self.success = ForeignKeysResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -32684,7 +33006,7 @@ 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_unique_constraints_result') + oprot.writeStructBegin('get_foreign_keys_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -32722,7 +33044,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_not_null_constraints_args: +class get_unique_constraints_args: """ Attributes: - request @@ -32730,7 +33052,7 @@ class get_not_null_constraints_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (NotNullConstraintsRequest, NotNullConstraintsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (UniqueConstraintsRequest, UniqueConstraintsRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -32747,7 +33069,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = NotNullConstraintsRequest() + self.request = UniqueConstraintsRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -32760,7 +33082,7 @@ 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_not_null_constraints_args') + oprot.writeStructBegin('get_unique_constraints_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -32788,7 +33110,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_not_null_constraints_result: +class get_unique_constraints_result: """ Attributes: - success @@ -32797,7 +33119,7 @@ class get_not_null_constraints_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (NotNullConstraintsResponse, NotNullConstraintsResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (UniqueConstraintsResponse, UniqueConstraintsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -32818,7 +33140,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = NotNullConstraintsResponse() + self.success = UniqueConstraintsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -32843,7 +33165,7 @@ 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_not_null_constraints_result') + oprot.writeStructBegin('get_unique_constraints_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -32881,7 +33203,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_default_constraints_args: +class get_not_null_constraints_args: """ Attributes: - request @@ -32889,7 +33211,7 @@ class get_default_constraints_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (DefaultConstraintsRequest, DefaultConstraintsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (NotNullConstraintsRequest, NotNullConstraintsRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -32906,7 +33228,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = DefaultConstraintsRequest() + self.request = NotNullConstraintsRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -32919,7 +33241,7 @@ 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_default_constraints_args') + oprot.writeStructBegin('get_not_null_constraints_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -32947,7 +33269,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_default_constraints_result: +class get_not_null_constraints_result: """ Attributes: - success @@ -32956,7 +33278,7 @@ class get_default_constraints_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (DefaultConstraintsResponse, DefaultConstraintsResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (NotNullConstraintsResponse, NotNullConstraintsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -32977,7 +33299,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = DefaultConstraintsResponse() + self.success = NotNullConstraintsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -33002,7 +33324,7 @@ 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_default_constraints_result') + oprot.writeStructBegin('get_not_null_constraints_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -33040,7 +33362,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_check_constraints_args: +class get_default_constraints_args: """ Attributes: - request @@ -33048,7 +33370,7 @@ class get_check_constraints_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (CheckConstraintsRequest, CheckConstraintsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (DefaultConstraintsRequest, DefaultConstraintsRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -33065,7 +33387,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = CheckConstraintsRequest() + self.request = DefaultConstraintsRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -33078,7 +33400,7 @@ 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_check_constraints_args') + oprot.writeStructBegin('get_default_constraints_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -33106,7 +33428,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_check_constraints_result: +class get_default_constraints_result: """ Attributes: - success @@ -33115,7 +33437,7 @@ class get_check_constraints_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (CheckConstraintsResponse, CheckConstraintsResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (DefaultConstraintsResponse, DefaultConstraintsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -33136,7 +33458,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CheckConstraintsResponse() + self.success = DefaultConstraintsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -33161,7 +33483,7 @@ 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_check_constraints_result') + oprot.writeStructBegin('get_default_constraints_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -33199,19 +33521,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_table_column_statistics_args: +class get_check_constraints_args: """ Attributes: - - stats_obj + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'stats_obj', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (CheckConstraintsRequest, CheckConstraintsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, stats_obj=None,): - self.stats_obj = stats_obj + def __init__(self, request=None,): + self.request = request 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: @@ -33224,8 +33546,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.stats_obj = ColumnStatistics() - self.stats_obj.read(iprot) + self.request = CheckConstraintsRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -33237,10 +33559,10 @@ 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('update_table_column_statistics_args') - if self.stats_obj is not None: - oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1) - self.stats_obj.write(oprot) + oprot.writeStructBegin('get_check_constraints_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33251,7 +33573,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.stats_obj) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -33265,30 +33587,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_table_column_statistics_result: +class get_check_constraints_result: """ Attributes: - success - o1 - o2 - - o3 - - o4 """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 + (0, TType.STRUCT, 'success', (CheckConstraintsResponse, CheckConstraintsResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 - self.o4 = o4 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: @@ -33300,34 +33616,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if ftype == TType.STRUCT: + self.success = CheckConstraintsResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = InvalidInputException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -33337,10 +33642,10 @@ 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('update_table_column_statistics_result') + oprot.writeStructBegin('get_check_constraints_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -33350,14 +33655,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33370,8 +33667,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -33385,7 +33680,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_partition_column_statistics_args: +class update_table_column_statistics_args: """ Attributes: - stats_obj @@ -33423,7 +33718,7 @@ 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('update_partition_column_statistics_args') + oprot.writeStructBegin('update_table_column_statistics_args') if self.stats_obj is not None: oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1) self.stats_obj.write(oprot) @@ -33451,7 +33746,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_partition_column_statistics_result: +class update_table_column_statistics_result: """ Attributes: - success @@ -33523,7 +33818,7 @@ 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('update_partition_column_statistics_result') + oprot.writeStructBegin('update_table_column_statistics_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) @@ -33571,19 +33866,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_table_column_statistics_req_args: +class update_partition_column_statistics_args: """ Attributes: - - req + - stats_obj """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (SetPartitionsStatsRequest, SetPartitionsStatsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'stats_obj', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, stats_obj=None,): + self.stats_obj = stats_obj 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: @@ -33596,8 +33891,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = SetPartitionsStatsRequest() - self.req.read(iprot) + self.stats_obj = ColumnStatistics() + self.stats_obj.read(iprot) else: iprot.skip(ftype) else: @@ -33609,10 +33904,10 @@ 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('update_table_column_statistics_req_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('update_partition_column_statistics_args') + if self.stats_obj is not None: + oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1) + self.stats_obj.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33623,7 +33918,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.stats_obj) return value def __repr__(self): @@ -33637,7 +33932,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_table_column_statistics_req_result: +class update_partition_column_statistics_result: """ Attributes: - success @@ -33648,7 +33943,7 @@ class update_table_column_statistics_req_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (SetPartitionsStatsResponse, SetPartitionsStatsResponse.thrift_spec), None, ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 @@ -33672,9 +33967,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = SetPartitionsStatsResponse() - self.success.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: @@ -33710,10 +34004,10 @@ 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('update_table_column_statistics_req_result') + oprot.writeStructBegin('update_partition_column_statistics_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -33758,7 +34052,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_partition_column_statistics_req_args: +class update_table_column_statistics_req_args: """ Attributes: - req @@ -33796,7 +34090,7 @@ 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('update_partition_column_statistics_req_args') + oprot.writeStructBegin('update_table_column_statistics_req_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -33824,7 +34118,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_partition_column_statistics_req_result: +class update_table_column_statistics_req_result: """ Attributes: - success @@ -33897,7 +34191,7 @@ 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('update_partition_column_statistics_req_result') + oprot.writeStructBegin('update_table_column_statistics_req_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -33945,25 +34239,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_table_column_statistics_args: +class update_partition_column_statistics_req_args: """ Attributes: - - db_name - - tbl_name - - col_name + - req """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.STRING, 'col_name', None, None, ), # 3 + (1, TType.STRUCT, 'req', (SetPartitionsStatsRequest, SetPartitionsStatsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, col_name=None,): - self.db_name = db_name - self.tbl_name = tbl_name - self.col_name = col_name + def __init__(self, req=None,): + self.req = req 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: @@ -33975,18 +34263,9 @@ def read(self, iprot): 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.STRING: - self.col_name = iprot.readString() + if ftype == TType.STRUCT: + self.req = SetPartitionsStatsRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -33998,18 +34277,10 @@ 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_table_column_statistics_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.col_name is not None: - oprot.writeFieldBegin('col_name', TType.STRING, 3) - oprot.writeString(self.col_name) + oprot.writeStructBegin('update_partition_column_statistics_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34020,9 +34291,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.col_name) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -34036,7 +34305,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_table_column_statistics_result: +class update_partition_column_statistics_req_result: """ Attributes: - success @@ -34047,11 +34316,11 @@ class get_table_column_statistics_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (SetPartitionsStatsResponse, SetPartitionsStatsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 4 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 ) def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): @@ -34072,7 +34341,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ColumnStatistics() + self.success = SetPartitionsStatsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -34084,19 +34353,19 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = InvalidObjectException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = InvalidInputException() + self.o3 = MetaException() self.o3.read(iprot) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: - self.o4 = InvalidObjectException() + self.o4 = InvalidInputException() self.o4.read(iprot) else: iprot.skip(ftype) @@ -34109,7 +34378,7 @@ 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_table_column_statistics_result') + oprot.writeStructBegin('update_partition_column_statistics_req_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -34157,12 +34426,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_column_statistics_args: +class get_table_column_statistics_args: """ Attributes: - db_name - tbl_name - - part_name - col_name """ @@ -34170,14 +34438,12 @@ class get_partition_column_statistics_args: None, # 0 (1, TType.STRING, 'db_name', None, None, ), # 1 (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.STRING, 'part_name', None, None, ), # 3 - (4, TType.STRING, 'col_name', None, None, ), # 4 + (3, TType.STRING, 'col_name', None, None, ), # 3 ) - def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,): + def __init__(self, db_name=None, tbl_name=None, col_name=None,): self.db_name = db_name self.tbl_name = tbl_name - self.part_name = part_name self.col_name = col_name def read(self, iprot): @@ -34200,11 +34466,6 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.part_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: if ftype == TType.STRING: self.col_name = iprot.readString() else: @@ -34218,7 +34479,7 @@ 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_column_statistics_args') + oprot.writeStructBegin('get_table_column_statistics_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -34227,12 +34488,8 @@ def write(self, oprot): oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_name is not None: - oprot.writeFieldBegin('part_name', TType.STRING, 3) - oprot.writeString(self.part_name) - oprot.writeFieldEnd() if self.col_name is not None: - oprot.writeFieldBegin('col_name', TType.STRING, 4) + oprot.writeFieldBegin('col_name', TType.STRING, 3) oprot.writeString(self.col_name) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34246,7 +34503,6 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.db_name) value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) value = (value * 31) ^ hash(self.col_name) return value @@ -34261,7 +34517,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partition_column_statistics_result: +class get_table_column_statistics_result: """ Attributes: - success @@ -34334,7 +34590,7 @@ 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_column_statistics_result') + oprot.writeStructBegin('get_table_column_statistics_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -34382,19 +34638,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_table_statistics_req_args: +class get_partition_column_statistics_args: """ Attributes: - - request + - db_name + - tbl_name + - part_name + - col_name """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (TableStatsRequest, TableStatsRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.STRING, 'part_name', None, None, ), # 3 + (4, TType.STRING, 'col_name', None, None, ), # 4 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_name = part_name + self.col_name = col_name 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: @@ -34406,9 +34671,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = TableStatsRequest() - self.request.read(iprot) + 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.STRING: + self.part_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.col_name = iprot.readString() else: iprot.skip(ftype) else: @@ -34420,10 +34699,22 @@ 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_table_statistics_req_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('get_partition_column_statistics_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_name is not None: + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name) + oprot.writeFieldEnd() + if self.col_name is not None: + oprot.writeFieldBegin('col_name', TType.STRING, 4) + oprot.writeString(self.col_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34434,7 +34725,10 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.part_name) + value = (value * 31) ^ hash(self.col_name) return value def __repr__(self): @@ -34448,24 +34742,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_table_statistics_req_result: +class get_partition_column_statistics_result: """ Attributes: - success - o1 - o2 + - o3 + - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (TableStatsResult, TableStatsResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): self.success = success self.o1 = o1 self.o2 = o2 + self.o3 = o3 + self.o4 = o4 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: @@ -34478,7 +34778,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = TableStatsResult() + self.success = ColumnStatistics() self.success.read(iprot) else: iprot.skip(ftype) @@ -34494,6 +34794,18 @@ def read(self, iprot): self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidInputException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = InvalidObjectException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -34503,7 +34815,7 @@ 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_table_statistics_req_result') + oprot.writeStructBegin('get_partition_column_statistics_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -34516,6 +34828,14 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34528,6 +34848,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -34541,7 +34863,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_statistics_req_args: +class get_table_statistics_req_args: """ Attributes: - request @@ -34549,7 +34871,7 @@ class get_partitions_statistics_req_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (PartitionsStatsRequest, PartitionsStatsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (TableStatsRequest, TableStatsRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -34566,7 +34888,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = PartitionsStatsRequest() + self.request = TableStatsRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -34579,7 +34901,7 @@ 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_partitions_statistics_req_args') + oprot.writeStructBegin('get_table_statistics_req_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -34607,7 +34929,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_statistics_req_result: +class get_table_statistics_req_result: """ Attributes: - success @@ -34616,7 +34938,7 @@ class get_partitions_statistics_req_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PartitionsStatsResult, PartitionsStatsResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (TableStatsResult, TableStatsResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) @@ -34637,7 +34959,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = PartitionsStatsResult() + self.success = TableStatsResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -34662,7 +34984,7 @@ 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_partitions_statistics_req_result') + oprot.writeStructBegin('get_table_statistics_req_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -34700,7 +35022,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_aggr_stats_for_args: +class get_partitions_statistics_req_args: """ Attributes: - request @@ -34738,7 +35060,7 @@ 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_aggr_stats_for_args') + oprot.writeStructBegin('get_partitions_statistics_req_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -34766,7 +35088,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_aggr_stats_for_result: +class get_partitions_statistics_req_result: """ Attributes: - success @@ -34775,7 +35097,7 @@ class get_aggr_stats_for_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (AggrStats, AggrStats.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (PartitionsStatsResult, PartitionsStatsResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) @@ -34796,7 +35118,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AggrStats() + self.success = PartitionsStatsResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -34821,7 +35143,7 @@ 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_aggr_stats_for_result') + oprot.writeStructBegin('get_partitions_statistics_req_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -34859,7 +35181,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class set_aggr_stats_for_args: +class get_aggr_stats_for_args: """ Attributes: - request @@ -34867,7 +35189,7 @@ class set_aggr_stats_for_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (SetPartitionsStatsRequest, SetPartitionsStatsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (PartitionsStatsRequest, PartitionsStatsRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -34884,7 +35206,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = SetPartitionsStatsRequest() + self.request = PartitionsStatsRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -34897,7 +35219,7 @@ 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('set_aggr_stats_for_args') + oprot.writeStructBegin('get_aggr_stats_for_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -34925,30 +35247,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class set_aggr_stats_for_result: +class get_aggr_stats_for_result: """ Attributes: - success - o1 - o2 - - o3 - - o4 """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.STRUCT, 'success', (AggrStats, AggrStats.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 - self.o4 = o4 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: @@ -34960,8 +35276,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if ftype == TType.STRUCT: + self.success = AggrStats() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -34972,22 +35289,10 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = InvalidInputException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -34997,10 +35302,10 @@ 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('set_aggr_stats_for_result') + oprot.writeStructBegin('get_aggr_stats_for_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -35010,14 +35315,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35030,8 +35327,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -35045,28 +35340,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class delete_partition_column_statistics_args: +class set_aggr_stats_for_args: """ Attributes: - - db_name - - tbl_name - - part_name - - col_name + - request """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.STRING, 'part_name', None, None, ), # 3 - (4, TType.STRING, 'col_name', None, None, ), # 4 + (1, TType.STRUCT, 'request', (SetPartitionsStatsRequest, SetPartitionsStatsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_name = part_name - self.col_name = col_name + def __init__(self, request=None,): + self.request = request 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: @@ -35078,23 +35364,9 @@ def read(self, iprot): 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.STRING: - self.part_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.col_name = iprot.readString() + if ftype == TType.STRUCT: + self.request = SetPartitionsStatsRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -35106,22 +35378,10 @@ 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('delete_partition_column_statistics_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_name is not None: - oprot.writeFieldBegin('part_name', TType.STRING, 3) - oprot.writeString(self.part_name) - oprot.writeFieldEnd() - if self.col_name is not None: - oprot.writeFieldBegin('col_name', TType.STRING, 4) - oprot.writeString(self.col_name) + oprot.writeStructBegin('set_aggr_stats_for_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35132,10 +35392,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.col_name) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -35149,7 +35406,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class delete_partition_column_statistics_result: +class set_aggr_stats_for_result: """ Attributes: - success @@ -35162,8 +35419,8 @@ class delete_partition_column_statistics_result: thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 ) @@ -35196,13 +35453,13 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = InvalidObjectException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = InvalidObjectException() + self.o3 = MetaException() self.o3.read(iprot) else: iprot.skip(ftype) @@ -35221,7 +35478,7 @@ 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('delete_partition_column_statistics_result') + oprot.writeStructBegin('set_aggr_stats_for_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) @@ -35269,11 +35526,12 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class delete_table_column_statistics_args: +class delete_partition_column_statistics_args: """ Attributes: - db_name - tbl_name + - part_name - col_name """ @@ -35281,12 +35539,14 @@ class delete_table_column_statistics_args: None, # 0 (1, TType.STRING, 'db_name', None, None, ), # 1 (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.STRING, 'col_name', None, None, ), # 3 + (3, TType.STRING, 'part_name', None, None, ), # 3 + (4, TType.STRING, 'col_name', None, None, ), # 4 ) - def __init__(self, db_name=None, tbl_name=None, col_name=None,): + def __init__(self, db_name=None, tbl_name=None, part_name=None, col_name=None,): self.db_name = db_name self.tbl_name = tbl_name + self.part_name = part_name self.col_name = col_name def read(self, iprot): @@ -35309,6 +35569,11 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.STRING: + self.part_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.STRING: self.col_name = iprot.readString() else: @@ -35322,7 +35587,7 @@ 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('delete_table_column_statistics_args') + oprot.writeStructBegin('delete_partition_column_statistics_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -35331,8 +35596,12 @@ def write(self, oprot): oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() + if self.part_name is not None: + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name) + oprot.writeFieldEnd() if self.col_name is not None: - oprot.writeFieldBegin('col_name', TType.STRING, 3) + oprot.writeFieldBegin('col_name', TType.STRING, 4) oprot.writeString(self.col_name) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -35346,6 +35615,7 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.db_name) value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.part_name) value = (value * 31) ^ hash(self.col_name) return value @@ -35360,7 +35630,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class delete_table_column_statistics_result: +class delete_partition_column_statistics_result: """ Attributes: - success @@ -35432,7 +35702,7 @@ 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('delete_table_column_statistics_result') + oprot.writeStructBegin('delete_partition_column_statistics_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) @@ -35480,19 +35750,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_function_args: +class delete_table_column_statistics_args: """ Attributes: - - func + - db_name + - tbl_name + - col_name """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'func', (Function, Function.thrift_spec), None, ), # 1 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.STRING, 'col_name', None, None, ), # 3 ) - def __init__(self, func=None,): - self.func = func + def __init__(self, db_name=None, tbl_name=None, col_name=None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.col_name = col_name 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: @@ -35504,9 +35780,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.func = Function() - self.func.read(iprot) + 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.STRING: + self.col_name = iprot.readString() else: iprot.skip(ftype) else: @@ -35518,10 +35803,18 @@ 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('create_function_args') - if self.func is not None: - oprot.writeFieldBegin('func', TType.STRUCT, 1) - self.func.write(oprot) + oprot.writeStructBegin('delete_table_column_statistics_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.col_name is not None: + oprot.writeFieldBegin('col_name', TType.STRING, 3) + oprot.writeString(self.col_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35532,7 +35825,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.func) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.col_name) return value def __repr__(self): @@ -35546,9 +35841,10 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_function_result: +class delete_table_column_statistics_result: """ Attributes: + - success - o1 - o2 - o3 @@ -35556,14 +35852,15 @@ class create_function_result: """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 ) - def __init__(self, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 @@ -35578,27 +35875,32 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.BOOL: + self.success = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = MetaException() + self.o3 = InvalidObjectException() self.o3.read(iprot) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: - self.o4 = NoSuchObjectException() + self.o4 = InvalidInputException() self.o4.read(iprot) else: iprot.skip(ftype) @@ -35611,7 +35913,186 @@ 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('create_function_result') + oprot.writeStructBegin('delete_table_column_statistics_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + 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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) + return value + + 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 create_function_args: + """ + Attributes: + - func + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'func', (Function, Function.thrift_spec), None, ), # 1 + ) + + def __init__(self, func=None,): + self.func = func + + 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.STRUCT: + self.func = Function() + self.func.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('create_function_args') + if self.func is not None: + oprot.writeFieldBegin('func', TType.STRUCT, 1) + self.func.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.func) + return value + + 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 create_function_result: + """ + Attributes: + - o1 + - o2 + - o3 + - o4 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 4 + ) + + def __init__(self, o1=None, o2=None, o3=None, o4=None,): + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + + 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.STRUCT: + self.o1 = AlreadyExistsException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = NoSuchObjectException() + self.o4.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('create_function_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -36090,10 +36571,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1307, _size1304) = iprot.readListBegin() - for _i1308 in xrange(_size1304): - _elem1309 = iprot.readString() - self.success.append(_elem1309) + (_etype1316, _size1313) = iprot.readListBegin() + for _i1317 in xrange(_size1313): + _elem1318 = iprot.readString() + self.success.append(_elem1318) iprot.readListEnd() else: iprot.skip(ftype) @@ -36116,8 +36597,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1310 in self.success: - oprot.writeString(iter1310) + for iter1319 in self.success: + oprot.writeString(iter1319) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36731,11 +37212,1135 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_role_names_args: +class get_role_names_args: + + thrift_spec = ( + ) + + 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 + 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_role_names_args') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + return value + + 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_role_names_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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.LIST: + self.success = [] + (_etype1323, _size1320) = iprot.readListBegin() + for _i1324 in xrange(_size1320): + _elem1325 = iprot.readString() + self.success.append(_elem1325) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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_role_names_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1326 in self.success: + oprot.writeString(iter1326) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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 grant_role_args: + """ + Attributes: + - role_name + - principal_name + - principal_type + - grantor + - grantorType + - grant_option + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'role_name', None, None, ), # 1 + (2, TType.STRING, 'principal_name', None, None, ), # 2 + (3, TType.I32, 'principal_type', None, None, ), # 3 + (4, TType.STRING, 'grantor', None, None, ), # 4 + (5, TType.I32, 'grantorType', None, None, ), # 5 + (6, TType.BOOL, 'grant_option', None, None, ), # 6 + ) + + def __init__(self, role_name=None, principal_name=None, principal_type=None, grantor=None, grantorType=None, grant_option=None,): + self.role_name = role_name + self.principal_name = principal_name + self.principal_type = principal_type + self.grantor = grantor + self.grantorType = grantorType + self.grant_option = grant_option + + 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.role_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.principal_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.principal_type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.grantor = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.grantorType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.grant_option = iprot.readBool() + 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('grant_role_args') + if self.role_name is not None: + oprot.writeFieldBegin('role_name', TType.STRING, 1) + oprot.writeString(self.role_name) + oprot.writeFieldEnd() + if self.principal_name is not None: + oprot.writeFieldBegin('principal_name', TType.STRING, 2) + oprot.writeString(self.principal_name) + oprot.writeFieldEnd() + if self.principal_type is not None: + oprot.writeFieldBegin('principal_type', TType.I32, 3) + oprot.writeI32(self.principal_type) + oprot.writeFieldEnd() + if self.grantor is not None: + oprot.writeFieldBegin('grantor', TType.STRING, 4) + oprot.writeString(self.grantor) + oprot.writeFieldEnd() + if self.grantorType is not None: + oprot.writeFieldBegin('grantorType', TType.I32, 5) + oprot.writeI32(self.grantorType) + oprot.writeFieldEnd() + if self.grant_option is not None: + oprot.writeFieldBegin('grant_option', TType.BOOL, 6) + oprot.writeBool(self.grant_option) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.role_name) + value = (value * 31) ^ hash(self.principal_name) + value = (value * 31) ^ hash(self.principal_type) + value = (value * 31) ^ hash(self.grantor) + value = (value * 31) ^ hash(self.grantorType) + value = (value * 31) ^ hash(self.grant_option) + return value + + 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 grant_role_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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.BOOL: + self.success = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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('grant_role_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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 revoke_role_args: + """ + Attributes: + - role_name + - principal_name + - principal_type + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'role_name', None, None, ), # 1 + (2, TType.STRING, 'principal_name', None, None, ), # 2 + (3, TType.I32, 'principal_type', None, None, ), # 3 + ) + + def __init__(self, role_name=None, principal_name=None, principal_type=None,): + self.role_name = role_name + self.principal_name = principal_name + self.principal_type = principal_type + + 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.role_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.principal_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.principal_type = iprot.readI32() + 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('revoke_role_args') + if self.role_name is not None: + oprot.writeFieldBegin('role_name', TType.STRING, 1) + oprot.writeString(self.role_name) + oprot.writeFieldEnd() + if self.principal_name is not None: + oprot.writeFieldBegin('principal_name', TType.STRING, 2) + oprot.writeString(self.principal_name) + oprot.writeFieldEnd() + if self.principal_type is not None: + oprot.writeFieldBegin('principal_type', TType.I32, 3) + oprot.writeI32(self.principal_type) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.role_name) + value = (value * 31) ^ hash(self.principal_name) + value = (value * 31) ^ hash(self.principal_type) + return value + + 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 revoke_role_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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.BOOL: + self.success = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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('revoke_role_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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 list_roles_args: + """ + Attributes: + - principal_name + - principal_type + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'principal_name', None, None, ), # 1 + (2, TType.I32, 'principal_type', None, None, ), # 2 + ) + + def __init__(self, principal_name=None, principal_type=None,): + self.principal_name = principal_name + self.principal_type = principal_type + + 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.principal_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.principal_type = iprot.readI32() + 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('list_roles_args') + if self.principal_name is not None: + oprot.writeFieldBegin('principal_name', TType.STRING, 1) + oprot.writeString(self.principal_name) + oprot.writeFieldEnd() + if self.principal_type is not None: + oprot.writeFieldBegin('principal_type', TType.I32, 2) + oprot.writeI32(self.principal_type) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.principal_name) + value = (value * 31) ^ hash(self.principal_type) + return value + + 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 list_roles_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(Role, Role.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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.LIST: + self.success = [] + (_etype1330, _size1327) = iprot.readListBegin() + for _i1331 in xrange(_size1327): + _elem1332 = Role() + _elem1332.read(iprot) + self.success.append(_elem1332) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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('list_roles_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1333 in self.success: + iter1333.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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 grant_revoke_role_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (GrantRevokeRoleRequest, GrantRevokeRoleRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, request=None,): + self.request = request + + 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.STRUCT: + self.request = GrantRevokeRoleRequest() + self.request.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('grant_revoke_role_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.request) + return value + + 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 grant_revoke_role_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (GrantRevokeRoleResponse, GrantRevokeRoleResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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 = GrantRevokeRoleResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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('grant_revoke_role_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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_principals_in_role_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (GetPrincipalsInRoleRequest, GetPrincipalsInRoleRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, request=None,): + self.request = request + + 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.STRUCT: + self.request = GetPrincipalsInRoleRequest() + self.request.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_principals_in_role_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.request) + return value + + 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_principals_in_role_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (GetPrincipalsInRoleResponse, GetPrincipalsInRoleResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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 = GetPrincipalsInRoleResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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_principals_in_role_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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_role_grants_for_principal_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (GetRoleGrantsForPrincipalRequest, GetRoleGrantsForPrincipalRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, request=None,): + self.request = request + + 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.STRUCT: + self.request = GetRoleGrantsForPrincipalRequest() + self.request.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_role_grants_for_principal_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.request) + return value + + 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_role_grants_for_principal_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (GetRoleGrantsForPrincipalResponse, GetRoleGrantsForPrincipalResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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 = GetRoleGrantsForPrincipalResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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_role_grants_for_principal_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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_privilege_set_args: + """ + Attributes: + - hiveObject + - user_name + - group_names + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 1 + (2, TType.STRING, 'user_name', None, None, ), # 2 + (3, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 3 ) + def __init__(self, hiveObject=None, user_name=None, group_names=None,): + self.hiveObject = hiveObject + self.user_name = user_name + self.group_names = group_names + 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)) @@ -36745,6 +38350,27 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.hiveObject = HiveObjectRef() + self.hiveObject.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.user_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.group_names = [] + (_etype1337, _size1334) = iprot.readListBegin() + for _i1338 in xrange(_size1334): + _elem1339 = iprot.readString() + self.group_names.append(_elem1339) + iprot.readListEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36754,7 +38380,22 @@ 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_role_names_args') + oprot.writeStructBegin('get_privilege_set_args') + if self.hiveObject is not None: + oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1) + self.hiveObject.write(oprot) + oprot.writeFieldEnd() + if self.user_name is not None: + oprot.writeFieldBegin('user_name', TType.STRING, 2) + oprot.writeString(self.user_name) + oprot.writeFieldEnd() + if self.group_names is not None: + oprot.writeFieldBegin('group_names', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.group_names)) + for iter1340 in self.group_names: + oprot.writeString(iter1340) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36764,6 +38405,9 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.hiveObject) + value = (value * 31) ^ hash(self.user_name) + value = (value * 31) ^ hash(self.group_names) return value def __repr__(self): @@ -36777,7 +38421,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_role_names_result: +class get_privilege_set_result: """ Attributes: - success @@ -36785,7 +38429,7 @@ class get_role_names_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (0, TType.STRUCT, 'success', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -36803,13 +38447,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1314, _size1311) = iprot.readListBegin() - for _i1315 in xrange(_size1311): - _elem1316 = iprot.readString() - self.success.append(_elem1316) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = PrincipalPrivilegeSet() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -36827,13 +38467,10 @@ 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_role_names_result') + oprot.writeStructBegin('get_privilege_set_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1317 in self.success: - oprot.writeString(iter1317) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -36863,34 +38500,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_role_args: +class list_privileges_args: """ Attributes: - - role_name - principal_name - principal_type - - grantor - - grantorType - - grant_option + - hiveObject """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'role_name', None, None, ), # 1 - (2, TType.STRING, 'principal_name', None, None, ), # 2 - (3, TType.I32, 'principal_type', None, None, ), # 3 - (4, TType.STRING, 'grantor', None, None, ), # 4 - (5, TType.I32, 'grantorType', None, None, ), # 5 - (6, TType.BOOL, 'grant_option', None, None, ), # 6 + (1, TType.STRING, 'principal_name', None, None, ), # 1 + (2, TType.I32, 'principal_type', None, None, ), # 2 + (3, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 3 ) - def __init__(self, role_name=None, principal_name=None, principal_type=None, grantor=None, grantorType=None, grant_option=None,): - self.role_name = role_name + def __init__(self, principal_name=None, principal_type=None, hiveObject=None,): self.principal_name = principal_name self.principal_type = principal_type - self.grantor = grantor - self.grantorType = grantorType - self.grant_option = grant_option + self.hiveObject = hiveObject 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: @@ -36902,33 +38530,19 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.role_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: if ftype == TType.STRING: self.principal_name = iprot.readString() else: iprot.skip(ftype) - elif fid == 3: + elif fid == 2: if ftype == TType.I32: self.principal_type = iprot.readI32() else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.grantor = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.grantorType = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.BOOL: - self.grant_option = iprot.readBool() + elif fid == 3: + if ftype == TType.STRUCT: + self.hiveObject = HiveObjectRef() + self.hiveObject.read(iprot) else: iprot.skip(ftype) else: @@ -36940,30 +38554,18 @@ 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('grant_role_args') - if self.role_name is not None: - oprot.writeFieldBegin('role_name', TType.STRING, 1) - oprot.writeString(self.role_name) - oprot.writeFieldEnd() + oprot.writeStructBegin('list_privileges_args') if self.principal_name is not None: - oprot.writeFieldBegin('principal_name', TType.STRING, 2) + oprot.writeFieldBegin('principal_name', TType.STRING, 1) oprot.writeString(self.principal_name) oprot.writeFieldEnd() if self.principal_type is not None: - oprot.writeFieldBegin('principal_type', TType.I32, 3) + oprot.writeFieldBegin('principal_type', TType.I32, 2) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() - if self.grantor is not None: - oprot.writeFieldBegin('grantor', TType.STRING, 4) - oprot.writeString(self.grantor) - oprot.writeFieldEnd() - if self.grantorType is not None: - oprot.writeFieldBegin('grantorType', TType.I32, 5) - oprot.writeI32(self.grantorType) - oprot.writeFieldEnd() - if self.grant_option is not None: - oprot.writeFieldBegin('grant_option', TType.BOOL, 6) - oprot.writeBool(self.grant_option) + if self.hiveObject is not None: + oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3) + self.hiveObject.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36974,12 +38576,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.role_name) value = (value * 31) ^ hash(self.principal_name) value = (value * 31) ^ hash(self.principal_type) - value = (value * 31) ^ hash(self.grantor) - value = (value * 31) ^ hash(self.grantorType) - value = (value * 31) ^ hash(self.grant_option) + value = (value * 31) ^ hash(self.hiveObject) return value def __repr__(self): @@ -36993,7 +38592,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_role_result: +class list_privileges_result: """ Attributes: - success @@ -37001,7 +38600,7 @@ class grant_role_result: """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(HiveObjectPrivilege, HiveObjectPrivilege.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -37019,8 +38618,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if ftype == TType.LIST: + self.success = [] + (_etype1344, _size1341) = iprot.readListBegin() + for _i1345 in xrange(_size1341): + _elem1346 = HiveObjectPrivilege() + _elem1346.read(iprot) + self.success.append(_elem1346) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -37038,10 +38643,13 @@ 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('grant_role_result') + oprot.writeStructBegin('list_privileges_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1347 in self.success: + iter1347.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -37071,25 +38679,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class revoke_role_args: +class grant_privileges_args: """ Attributes: - - role_name - - principal_name - - principal_type + - privileges """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'role_name', None, None, ), # 1 - (2, TType.STRING, 'principal_name', None, None, ), # 2 - (3, TType.I32, 'principal_type', None, None, ), # 3 + (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1 ) - def __init__(self, role_name=None, principal_name=None, principal_type=None,): - self.role_name = role_name - self.principal_name = principal_name - self.principal_type = principal_type + def __init__(self, privileges=None,): + self.privileges = privileges 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: @@ -37101,18 +38703,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.role_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.principal_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I32: - self.principal_type = iprot.readI32() + if ftype == TType.STRUCT: + self.privileges = PrivilegeBag() + self.privileges.read(iprot) else: iprot.skip(ftype) else: @@ -37124,18 +38717,10 @@ 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('revoke_role_args') - if self.role_name is not None: - oprot.writeFieldBegin('role_name', TType.STRING, 1) - oprot.writeString(self.role_name) - oprot.writeFieldEnd() - if self.principal_name is not None: - oprot.writeFieldBegin('principal_name', TType.STRING, 2) - oprot.writeString(self.principal_name) - oprot.writeFieldEnd() - if self.principal_type is not None: - oprot.writeFieldBegin('principal_type', TType.I32, 3) - oprot.writeI32(self.principal_type) + oprot.writeStructBegin('grant_privileges_args') + if self.privileges is not None: + oprot.writeFieldBegin('privileges', TType.STRUCT, 1) + self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -37146,9 +38731,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.role_name) - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) + value = (value * 31) ^ hash(self.privileges) return value def __repr__(self): @@ -37162,7 +38745,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class revoke_role_result: +class grant_privileges_result: """ Attributes: - success @@ -37207,7 +38790,7 @@ 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('revoke_role_result') + oprot.writeStructBegin('grant_privileges_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) @@ -37240,22 +38823,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class list_roles_args: +class revoke_privileges_args: """ Attributes: - - principal_name - - principal_type + - privileges """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'principal_name', None, None, ), # 1 - (2, TType.I32, 'principal_type', None, None, ), # 2 + (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1 ) - def __init__(self, principal_name=None, principal_type=None,): - self.principal_name = principal_name - self.principal_type = principal_type + def __init__(self, privileges=None,): + self.privileges = privileges 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: @@ -37267,13 +38847,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.principal_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.I32: - self.principal_type = iprot.readI32() + if ftype == TType.STRUCT: + self.privileges = PrivilegeBag() + self.privileges.read(iprot) else: iprot.skip(ftype) else: @@ -37285,14 +38861,10 @@ 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('list_roles_args') - if self.principal_name is not None: - oprot.writeFieldBegin('principal_name', TType.STRING, 1) - oprot.writeString(self.principal_name) - oprot.writeFieldEnd() - if self.principal_type is not None: - oprot.writeFieldBegin('principal_type', TType.I32, 2) - oprot.writeI32(self.principal_type) + oprot.writeStructBegin('revoke_privileges_args') + if self.privileges is not None: + oprot.writeFieldBegin('privileges', TType.STRUCT, 1) + self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -37303,8 +38875,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) + value = (value * 31) ^ hash(self.privileges) return value def __repr__(self): @@ -37318,7 +38889,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class list_roles_result: +class revoke_privileges_result: """ Attributes: - success @@ -37326,7 +38897,7 @@ class list_roles_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(Role, Role.thrift_spec)), None, ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -37344,14 +38915,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1321, _size1318) = iprot.readListBegin() - for _i1322 in xrange(_size1318): - _elem1323 = Role() - _elem1323.read(iprot) - self.success.append(_elem1323) - iprot.readListEnd() + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: @@ -37369,13 +38934,10 @@ 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('list_roles_result') + oprot.writeStructBegin('revoke_privileges_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1324 in self.success: - iter1324.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -37405,7 +38967,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_revoke_role_args: +class grant_revoke_privileges_args: """ Attributes: - request @@ -37413,7 +38975,7 @@ class grant_revoke_role_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (GrantRevokeRoleRequest, GrantRevokeRoleRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (GrantRevokePrivilegeRequest, GrantRevokePrivilegeRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -37430,7 +38992,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = GrantRevokeRoleRequest() + self.request = GrantRevokePrivilegeRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -37443,7 +39005,7 @@ 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('grant_revoke_role_args') + oprot.writeStructBegin('grant_revoke_privileges_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -37471,7 +39033,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_revoke_role_result: +class grant_revoke_privileges_result: """ Attributes: - success @@ -37479,7 +39041,7 @@ class grant_revoke_role_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GrantRevokeRoleResponse, GrantRevokeRoleResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (GrantRevokePrivilegeResponse, GrantRevokePrivilegeResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -37498,7 +39060,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GrantRevokeRoleResponse() + self.success = GrantRevokePrivilegeResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -37517,7 +39079,7 @@ 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('grant_revoke_role_result') + oprot.writeStructBegin('grant_revoke_privileges_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -37550,19 +39112,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_principals_in_role_args: +class refresh_privileges_args: """ Attributes: - - request + - objToRefresh + - authorizer + - grantRequest """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (GetPrincipalsInRoleRequest, GetPrincipalsInRoleRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'objToRefresh', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 1 + (2, TType.STRING, 'authorizer', None, None, ), # 2 + (3, TType.STRUCT, 'grantRequest', (GrantRevokePrivilegeRequest, GrantRevokePrivilegeRequest.thrift_spec), None, ), # 3 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, objToRefresh=None, authorizer=None, grantRequest=None,): + self.objToRefresh = objToRefresh + self.authorizer = authorizer + self.grantRequest = grantRequest 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: @@ -37575,8 +39143,19 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = GetPrincipalsInRoleRequest() - self.request.read(iprot) + self.objToRefresh = HiveObjectRef() + self.objToRefresh.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.authorizer = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.grantRequest = GrantRevokePrivilegeRequest() + self.grantRequest.read(iprot) else: iprot.skip(ftype) else: @@ -37588,10 +39167,18 @@ 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_principals_in_role_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('refresh_privileges_args') + if self.objToRefresh is not None: + oprot.writeFieldBegin('objToRefresh', TType.STRUCT, 1) + self.objToRefresh.write(oprot) + oprot.writeFieldEnd() + if self.authorizer is not None: + oprot.writeFieldBegin('authorizer', TType.STRING, 2) + oprot.writeString(self.authorizer) + oprot.writeFieldEnd() + if self.grantRequest is not None: + oprot.writeFieldBegin('grantRequest', TType.STRUCT, 3) + self.grantRequest.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -37602,7 +39189,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.objToRefresh) + value = (value * 31) ^ hash(self.authorizer) + value = (value * 31) ^ hash(self.grantRequest) return value def __repr__(self): @@ -37616,7 +39205,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_principals_in_role_result: +class refresh_privileges_result: """ Attributes: - success @@ -37624,7 +39213,7 @@ class get_principals_in_role_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetPrincipalsInRoleResponse, GetPrincipalsInRoleResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (GrantRevokePrivilegeResponse, GrantRevokePrivilegeResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -37643,7 +39232,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetPrincipalsInRoleResponse() + self.success = GrantRevokePrivilegeResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -37662,7 +39251,7 @@ 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_principals_in_role_result') + oprot.writeStructBegin('refresh_privileges_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -37695,19 +39284,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_role_grants_for_principal_args: +class set_ugi_args: """ Attributes: - - request + - user_name + - group_names """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (GetRoleGrantsForPrincipalRequest, GetRoleGrantsForPrincipalRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'user_name', None, None, ), # 1 + (2, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 2 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, user_name=None, group_names=None,): + self.user_name = user_name + self.group_names = group_names 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: @@ -37719,9 +39311,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = GetRoleGrantsForPrincipalRequest() - self.request.read(iprot) + if ftype == TType.STRING: + self.user_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.group_names = [] + (_etype1351, _size1348) = iprot.readListBegin() + for _i1352 in xrange(_size1348): + _elem1353 = iprot.readString() + self.group_names.append(_elem1353) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -37733,10 +39334,17 @@ 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_role_grants_for_principal_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('set_ugi_args') + if self.user_name is not None: + oprot.writeFieldBegin('user_name', TType.STRING, 1) + oprot.writeString(self.user_name) + oprot.writeFieldEnd() + if self.group_names is not None: + oprot.writeFieldBegin('group_names', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.group_names)) + for iter1354 in self.group_names: + oprot.writeString(iter1354) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -37747,7 +39355,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.user_name) + value = (value * 31) ^ hash(self.group_names) return value def __repr__(self): @@ -37761,7 +39370,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_role_grants_for_principal_result: +class set_ugi_result: """ Attributes: - success @@ -37769,7 +39378,7 @@ class get_role_grants_for_principal_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetRoleGrantsForPrincipalResponse, GetRoleGrantsForPrincipalResponse.thrift_spec), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -37787,9 +39396,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = GetRoleGrantsForPrincipalResponse() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1358, _size1355) = iprot.readListBegin() + for _i1359 in xrange(_size1355): + _elem1360 = iprot.readString() + self.success.append(_elem1360) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -37807,10 +39420,13 @@ 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_role_grants_for_principal_result') + oprot.writeStructBegin('set_ugi_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1361 in self.success: + oprot.writeString(iter1361) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -37840,25 +39456,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_privilege_set_args: +class get_delegation_token_args: """ Attributes: - - hiveObject - - user_name - - group_names + - token_owner + - renewer_kerberos_principal_name """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 1 - (2, TType.STRING, 'user_name', None, None, ), # 2 - (3, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 3 + (1, TType.STRING, 'token_owner', None, None, ), # 1 + (2, TType.STRING, 'renewer_kerberos_principal_name', None, None, ), # 2 ) - def __init__(self, hiveObject=None, user_name=None, group_names=None,): - self.hiveObject = hiveObject - self.user_name = user_name - self.group_names = group_names + def __init__(self, token_owner=None, renewer_kerberos_principal_name=None,): + self.token_owner = token_owner + self.renewer_kerberos_principal_name = renewer_kerberos_principal_name 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: @@ -37870,24 +39483,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.hiveObject = HiveObjectRef() - self.hiveObject.read(iprot) + if ftype == TType.STRING: + self.token_owner = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.group_names = [] - (_etype1328, _size1325) = iprot.readListBegin() - for _i1329 in xrange(_size1325): - _elem1330 = iprot.readString() - self.group_names.append(_elem1330) - iprot.readListEnd() + self.renewer_kerberos_principal_name = iprot.readString() else: iprot.skip(ftype) else: @@ -37899,21 +39501,14 @@ 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_privilege_set_args') - if self.hiveObject is not None: - oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1) - self.hiveObject.write(oprot) - oprot.writeFieldEnd() - if self.user_name is not None: - oprot.writeFieldBegin('user_name', TType.STRING, 2) - oprot.writeString(self.user_name) + oprot.writeStructBegin('get_delegation_token_args') + if self.token_owner is not None: + oprot.writeFieldBegin('token_owner', TType.STRING, 1) + oprot.writeString(self.token_owner) oprot.writeFieldEnd() - if self.group_names is not None: - oprot.writeFieldBegin('group_names', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1331 in self.group_names: - oprot.writeString(iter1331) - oprot.writeListEnd() + if self.renewer_kerberos_principal_name is not None: + oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 2) + oprot.writeString(self.renewer_kerberos_principal_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -37924,9 +39519,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.hiveObject) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) + value = (value * 31) ^ hash(self.token_owner) + value = (value * 31) ^ hash(self.renewer_kerberos_principal_name) return value def __repr__(self): @@ -37940,7 +39534,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_privilege_set_result: +class get_delegation_token_result: """ Attributes: - success @@ -37948,7 +39542,7 @@ class get_privilege_set_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 0 + (0, TType.STRING, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -37966,9 +39560,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PrincipalPrivilegeSet() - self.success.read(iprot) + if ftype == TType.STRING: + self.success = iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -37986,10 +39579,10 @@ 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_privilege_set_result') + oprot.writeStructBegin('get_delegation_token_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -38019,25 +39612,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class list_privileges_args: +class renew_delegation_token_args: """ Attributes: - - principal_name - - principal_type - - hiveObject + - token_str_form """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'principal_name', None, None, ), # 1 - (2, TType.I32, 'principal_type', None, None, ), # 2 - (3, TType.STRUCT, 'hiveObject', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 3 + (1, TType.STRING, 'token_str_form', None, None, ), # 1 ) - def __init__(self, principal_name=None, principal_type=None, hiveObject=None,): - self.principal_name = principal_name - self.principal_type = principal_type - self.hiveObject = hiveObject + def __init__(self, token_str_form=None,): + self.token_str_form = token_str_form 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: @@ -38050,18 +39637,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.principal_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.I32: - self.principal_type = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.hiveObject = HiveObjectRef() - self.hiveObject.read(iprot) + self.token_str_form = iprot.readString() else: iprot.skip(ftype) else: @@ -38073,18 +39649,10 @@ 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('list_privileges_args') - if self.principal_name is not None: - oprot.writeFieldBegin('principal_name', TType.STRING, 1) - oprot.writeString(self.principal_name) - oprot.writeFieldEnd() - if self.principal_type is not None: - oprot.writeFieldBegin('principal_type', TType.I32, 2) - oprot.writeI32(self.principal_type) - oprot.writeFieldEnd() - if self.hiveObject is not None: - oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3) - self.hiveObject.write(oprot) + oprot.writeStructBegin('renew_delegation_token_args') + if self.token_str_form is not None: + oprot.writeFieldBegin('token_str_form', TType.STRING, 1) + oprot.writeString(self.token_str_form) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38095,9 +39663,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - value = (value * 31) ^ hash(self.hiveObject) + value = (value * 31) ^ hash(self.token_str_form) return value def __repr__(self): @@ -38111,7 +39677,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class list_privileges_result: +class renew_delegation_token_result: """ Attributes: - success @@ -38119,7 +39685,7 @@ class list_privileges_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(HiveObjectPrivilege, HiveObjectPrivilege.thrift_spec)), None, ), # 0 + (0, TType.I64, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -38137,14 +39703,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1335, _size1332) = iprot.readListBegin() - for _i1336 in xrange(_size1332): - _elem1337 = HiveObjectPrivilege() - _elem1337.read(iprot) - self.success.append(_elem1337) - iprot.readListEnd() + if ftype == TType.I64: + self.success = iprot.readI64() else: iprot.skip(ftype) elif fid == 1: @@ -38162,13 +39722,10 @@ 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('list_privileges_result') + oprot.writeStructBegin('renew_delegation_token_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1338 in self.success: - iter1338.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.I64, 0) + oprot.writeI64(self.success) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -38198,19 +39755,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_privileges_args: +class cancel_delegation_token_args: """ Attributes: - - privileges + - token_str_form """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1 + (1, TType.STRING, 'token_str_form', None, None, ), # 1 ) - def __init__(self, privileges=None,): - self.privileges = privileges + def __init__(self, token_str_form=None,): + self.token_str_form = token_str_form 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: @@ -38222,9 +39779,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.privileges = PrivilegeBag() - self.privileges.read(iprot) + if ftype == TType.STRING: + self.token_str_form = iprot.readString() else: iprot.skip(ftype) else: @@ -38236,10 +39792,10 @@ 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('grant_privileges_args') - if self.privileges is not None: - oprot.writeFieldBegin('privileges', TType.STRUCT, 1) - self.privileges.write(oprot) + oprot.writeStructBegin('cancel_delegation_token_args') + if self.token_str_form is not None: + oprot.writeFieldBegin('token_str_form', TType.STRING, 1) + oprot.writeString(self.token_str_form) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38250,7 +39806,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.privileges) + value = (value * 31) ^ hash(self.token_str_form) return value def __repr__(self): @@ -38264,20 +39820,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_privileges_result: +class cancel_delegation_token_result: """ Attributes: - - success - o1 """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + None, # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None,): - self.success = success + def __init__(self, o1=None,): self.o1 = o1 def read(self, iprot): @@ -38289,12 +39843,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = MetaException() self.o1.read(iprot) @@ -38309,11 +39858,7 @@ 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('grant_privileges_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) - oprot.writeFieldEnd() + oprot.writeStructBegin('cancel_delegation_token_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -38327,7 +39872,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) return value @@ -38342,19 +39886,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class revoke_privileges_args: +class add_token_args: """ Attributes: - - privileges + - token_identifier + - delegation_token """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'privileges', (PrivilegeBag, PrivilegeBag.thrift_spec), None, ), # 1 + (1, TType.STRING, 'token_identifier', None, None, ), # 1 + (2, TType.STRING, 'delegation_token', None, None, ), # 2 ) - def __init__(self, privileges=None,): - self.privileges = privileges + def __init__(self, token_identifier=None, delegation_token=None,): + self.token_identifier = token_identifier + self.delegation_token = delegation_token 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: @@ -38366,9 +39913,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.privileges = PrivilegeBag() - self.privileges.read(iprot) + if ftype == TType.STRING: + self.token_identifier = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.delegation_token = iprot.readString() else: iprot.skip(ftype) else: @@ -38380,10 +39931,14 @@ 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('revoke_privileges_args') - if self.privileges is not None: - oprot.writeFieldBegin('privileges', TType.STRUCT, 1) - self.privileges.write(oprot) + oprot.writeStructBegin('add_token_args') + if self.token_identifier is not None: + oprot.writeFieldBegin('token_identifier', TType.STRING, 1) + oprot.writeString(self.token_identifier) + oprot.writeFieldEnd() + if self.delegation_token is not None: + oprot.writeFieldBegin('delegation_token', TType.STRING, 2) + oprot.writeString(self.delegation_token) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38394,7 +39949,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.privileges) + value = (value * 31) ^ hash(self.token_identifier) + value = (value * 31) ^ hash(self.delegation_token) return value def __repr__(self): @@ -38408,21 +39964,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class revoke_privileges_result: +class add_token_result: """ Attributes: - success - - o1 """ thrift_spec = ( (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None,): + def __init__(self, success=None,): self.success = success - self.o1 = o1 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: @@ -38438,12 +39991,6 @@ def read(self, iprot): self.success = iprot.readBool() else: iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -38453,15 +40000,11 @@ 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('revoke_privileges_result') + oprot.writeStructBegin('add_token_result') if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38472,7 +40015,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) return value def __repr__(self): @@ -38486,19 +40028,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_revoke_privileges_args: +class remove_token_args: """ Attributes: - - request + - token_identifier """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (GrantRevokePrivilegeRequest, GrantRevokePrivilegeRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'token_identifier', None, None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, token_identifier=None,): + self.token_identifier = token_identifier 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: @@ -38510,9 +40052,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = GrantRevokePrivilegeRequest() - self.request.read(iprot) + if ftype == TType.STRING: + self.token_identifier = iprot.readString() else: iprot.skip(ftype) else: @@ -38524,10 +40065,10 @@ 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('grant_revoke_privileges_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('remove_token_args') + if self.token_identifier is not None: + oprot.writeFieldBegin('token_identifier', TType.STRING, 1) + oprot.writeString(self.token_identifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38538,7 +40079,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.token_identifier) return value def __repr__(self): @@ -38552,21 +40093,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class grant_revoke_privileges_result: +class remove_token_result: """ Attributes: - success - - o1 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GrantRevokePrivilegeResponse, GrantRevokePrivilegeResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 ) - def __init__(self, success=None, o1=None,): + def __init__(self, success=None,): self.success = success - self.o1 = o1 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: @@ -38578,15 +40116,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = GrantRevokePrivilegeResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) else: @@ -38598,14 +40129,10 @@ 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('grant_revoke_privileges_result') + oprot.writeStructBegin('remove_token_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.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38617,7 +40144,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) return value def __repr__(self): @@ -38631,25 +40157,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class refresh_privileges_args: +class get_token_args: """ Attributes: - - objToRefresh - - authorizer - - grantRequest + - token_identifier """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'objToRefresh', (HiveObjectRef, HiveObjectRef.thrift_spec), None, ), # 1 - (2, TType.STRING, 'authorizer', None, None, ), # 2 - (3, TType.STRUCT, 'grantRequest', (GrantRevokePrivilegeRequest, GrantRevokePrivilegeRequest.thrift_spec), None, ), # 3 + (1, TType.STRING, 'token_identifier', None, None, ), # 1 ) - def __init__(self, objToRefresh=None, authorizer=None, grantRequest=None,): - self.objToRefresh = objToRefresh - self.authorizer = authorizer - self.grantRequest = grantRequest + def __init__(self, token_identifier=None,): + self.token_identifier = token_identifier 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: @@ -38661,20 +40181,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.objToRefresh = HiveObjectRef() - self.objToRefresh.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: if ftype == TType.STRING: - self.authorizer = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.grantRequest = GrantRevokePrivilegeRequest() - self.grantRequest.read(iprot) + self.token_identifier = iprot.readString() else: iprot.skip(ftype) else: @@ -38686,18 +40194,10 @@ 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('refresh_privileges_args') - if self.objToRefresh is not None: - oprot.writeFieldBegin('objToRefresh', TType.STRUCT, 1) - self.objToRefresh.write(oprot) - oprot.writeFieldEnd() - if self.authorizer is not None: - oprot.writeFieldBegin('authorizer', TType.STRING, 2) - oprot.writeString(self.authorizer) - oprot.writeFieldEnd() - if self.grantRequest is not None: - oprot.writeFieldBegin('grantRequest', TType.STRUCT, 3) - self.grantRequest.write(oprot) + oprot.writeStructBegin('get_token_args') + if self.token_identifier is not None: + oprot.writeFieldBegin('token_identifier', TType.STRING, 1) + oprot.writeString(self.token_identifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38708,9 +40208,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.objToRefresh) - value = (value * 31) ^ hash(self.authorizer) - value = (value * 31) ^ hash(self.grantRequest) + value = (value * 31) ^ hash(self.token_identifier) return value def __repr__(self): @@ -38724,21 +40222,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class refresh_privileges_result: +class get_token_result: """ Attributes: - success - - o1 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GrantRevokePrivilegeResponse, GrantRevokePrivilegeResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.STRING, 'success', None, None, ), # 0 ) - def __init__(self, success=None, o1=None,): + def __init__(self, success=None,): self.success = success - self.o1 = o1 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: @@ -38750,15 +40245,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = GrantRevokePrivilegeResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) + if ftype == TType.STRING: + self.success = iprot.readString() else: iprot.skip(ftype) else: @@ -38770,14 +40258,10 @@ 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('refresh_privileges_result') + oprot.writeStructBegin('get_token_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.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38789,7 +40273,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) return value def __repr__(self): @@ -38803,23 +40286,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class set_ugi_args: - """ - Attributes: - - user_name - - group_names - """ +class get_all_token_identifiers_args: thrift_spec = ( - None, # 0 - (1, TType.STRING, 'user_name', None, None, ), # 1 - (2, TType.LIST, 'group_names', (TType.STRING,None), None, ), # 2 ) - def __init__(self, user_name=None, group_names=None,): - self.user_name = user_name - self.group_names = group_names - 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)) @@ -38829,21 +40300,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.user_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.group_names = [] - (_etype1342, _size1339) = iprot.readListBegin() - for _i1343 in xrange(_size1339): - _elem1344 = iprot.readString() - self.group_names.append(_elem1344) - iprot.readListEnd() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -38853,18 +40309,7 @@ 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('set_ugi_args') - if self.user_name is not None: - oprot.writeFieldBegin('user_name', TType.STRING, 1) - oprot.writeString(self.user_name) - oprot.writeFieldEnd() - if self.group_names is not None: - oprot.writeFieldBegin('group_names', TType.LIST, 2) - oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1345 in self.group_names: - oprot.writeString(iter1345) - oprot.writeListEnd() - oprot.writeFieldEnd() + oprot.writeStructBegin('get_all_token_identifiers_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -38874,8 +40319,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) return value def __repr__(self): @@ -38889,21 +40332,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class set_ugi_result: +class get_all_token_identifiers_result: """ Attributes: - success - - o1 """ thrift_spec = ( (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None,): + def __init__(self, success=None,): self.success = success - self.o1 = o1 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: @@ -38917,19 +40357,13 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1349, _size1346) = iprot.readListBegin() - for _i1350 in xrange(_size1346): - _elem1351 = iprot.readString() - self.success.append(_elem1351) + (_etype1365, _size1362) = iprot.readListBegin() + for _i1366 in xrange(_size1362): + _elem1367 = iprot.readString() + self.success.append(_elem1367) iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -38939,18 +40373,14 @@ 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('set_ugi_result') + oprot.writeStructBegin('get_all_token_identifiers_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1352 in self.success: - oprot.writeString(iter1352) + for iter1368 in self.success: + oprot.writeString(iter1368) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38961,7 +40391,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) return value def __repr__(self): @@ -38975,22 +40404,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_delegation_token_args: +class add_master_key_args: """ Attributes: - - token_owner - - renewer_kerberos_principal_name + - key """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'token_owner', None, None, ), # 1 - (2, TType.STRING, 'renewer_kerberos_principal_name', None, None, ), # 2 + (1, TType.STRING, 'key', None, None, ), # 1 ) - def __init__(self, token_owner=None, renewer_kerberos_principal_name=None,): - self.token_owner = token_owner - self.renewer_kerberos_principal_name = renewer_kerberos_principal_name + def __init__(self, key=None,): + self.key = key 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: @@ -39003,12 +40429,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_owner = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.renewer_kerberos_principal_name = iprot.readString() + self.key = iprot.readString() else: iprot.skip(ftype) else: @@ -39020,14 +40441,10 @@ 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_delegation_token_args') - if self.token_owner is not None: - oprot.writeFieldBegin('token_owner', TType.STRING, 1) - oprot.writeString(self.token_owner) - oprot.writeFieldEnd() - if self.renewer_kerberos_principal_name is not None: - oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 2) - oprot.writeString(self.renewer_kerberos_principal_name) + oprot.writeStructBegin('add_master_key_args') + if self.key is not None: + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39038,8 +40455,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.token_owner) - value = (value * 31) ^ hash(self.renewer_kerberos_principal_name) + value = (value * 31) ^ hash(self.key) return value def __repr__(self): @@ -39053,7 +40469,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_delegation_token_result: +class add_master_key_result: """ Attributes: - success @@ -39061,7 +40477,7 @@ class get_delegation_token_result: """ thrift_spec = ( - (0, TType.STRING, 'success', None, None, ), # 0 + (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -39079,8 +40495,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRING: - self.success = iprot.readString() + if ftype == TType.I32: + self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: @@ -39098,10 +40514,10 @@ 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_delegation_token_result') + oprot.writeStructBegin('add_master_key_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success) + oprot.writeFieldBegin('success', TType.I32, 0) + oprot.writeI32(self.success) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -39131,19 +40547,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class renew_delegation_token_args: +class update_master_key_args: """ Attributes: - - token_str_form + - seq_number + - key """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'token_str_form', None, None, ), # 1 + (1, TType.I32, 'seq_number', None, None, ), # 1 + (2, TType.STRING, 'key', None, None, ), # 2 ) - def __init__(self, token_str_form=None,): - self.token_str_form = token_str_form + def __init__(self, seq_number=None, key=None,): + self.seq_number = seq_number + self.key = key 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: @@ -39155,8 +40574,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.I32: + self.seq_number = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRING: - self.token_str_form = iprot.readString() + self.key = iprot.readString() else: iprot.skip(ftype) else: @@ -39168,10 +40592,14 @@ 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('renew_delegation_token_args') - if self.token_str_form is not None: - oprot.writeFieldBegin('token_str_form', TType.STRING, 1) - oprot.writeString(self.token_str_form) + oprot.writeStructBegin('update_master_key_args') + if self.seq_number is not None: + oprot.writeFieldBegin('seq_number', TType.I32, 1) + oprot.writeI32(self.seq_number) + oprot.writeFieldEnd() + if self.key is not None: + oprot.writeFieldBegin('key', TType.STRING, 2) + oprot.writeString(self.key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39182,7 +40610,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.token_str_form) + value = (value * 31) ^ hash(self.seq_number) + value = (value * 31) ^ hash(self.key) return value def __repr__(self): @@ -39196,21 +40625,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class renew_delegation_token_result: +class update_master_key_result: """ Attributes: - - success - o1 + - o2 """ thrift_spec = ( - (0, TType.I64, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None,): - self.success = success + def __init__(self, o1=None, o2=None,): 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: @@ -39221,15 +40651,16 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.I64: - self.success = iprot.readI64() + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) else: iprot.skip(ftype) - elif fid == 1: + elif fid == 2: if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) + self.o2 = MetaException() + self.o2.read(iprot) else: iprot.skip(ftype) else: @@ -39241,15 +40672,15 @@ 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('renew_delegation_token_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.I64, 0) - oprot.writeI64(self.success) - oprot.writeFieldEnd() + oprot.writeStructBegin('update_master_key_result') 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() @@ -39259,8 +40690,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -39274,19 +40705,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cancel_delegation_token_args: +class remove_master_key_args: """ Attributes: - - token_str_form + - key_seq """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'token_str_form', None, None, ), # 1 + (1, TType.I32, 'key_seq', None, None, ), # 1 ) - def __init__(self, token_str_form=None,): - self.token_str_form = token_str_form + def __init__(self, key_seq=None,): + self.key_seq = key_seq 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: @@ -39298,8 +40729,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.token_str_form = iprot.readString() + if ftype == TType.I32: + self.key_seq = iprot.readI32() else: iprot.skip(ftype) else: @@ -39311,10 +40742,10 @@ 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('cancel_delegation_token_args') - if self.token_str_form is not None: - oprot.writeFieldBegin('token_str_form', TType.STRING, 1) - oprot.writeString(self.token_str_form) + oprot.writeStructBegin('remove_master_key_args') + if self.key_seq is not None: + oprot.writeFieldBegin('key_seq', TType.I32, 1) + oprot.writeI32(self.key_seq) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39325,7 +40756,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.token_str_form) + value = (value * 31) ^ hash(self.key_seq) return value def __repr__(self): @@ -39339,19 +40770,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cancel_delegation_token_result: +class remove_master_key_result: """ Attributes: - - o1 + - success """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 ) - def __init__(self, o1=None,): - self.o1 = o1 + def __init__(self, success=None,): + self.success = success 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: @@ -39362,10 +40792,9 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) + if fid == 0: + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) else: @@ -39377,10 +40806,10 @@ 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('cancel_delegation_token_result') - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) + oprot.writeStructBegin('remove_master_key_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39391,7 +40820,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -39405,23 +40834,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_token_args: - """ - Attributes: - - token_identifier - - delegation_token - """ +class get_master_keys_args: thrift_spec = ( - None, # 0 - (1, TType.STRING, 'token_identifier', None, None, ), # 1 - (2, TType.STRING, 'delegation_token', None, None, ), # 2 ) - def __init__(self, token_identifier=None, delegation_token=None,): - self.token_identifier = token_identifier - self.delegation_token = delegation_token - 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)) @@ -39431,16 +40848,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.token_identifier = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.delegation_token = iprot.readString() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -39450,15 +40857,7 @@ 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('add_token_args') - if self.token_identifier is not None: - oprot.writeFieldBegin('token_identifier', TType.STRING, 1) - oprot.writeString(self.token_identifier) - oprot.writeFieldEnd() - if self.delegation_token is not None: - oprot.writeFieldBegin('delegation_token', TType.STRING, 2) - oprot.writeString(self.delegation_token) - oprot.writeFieldEnd() + oprot.writeStructBegin('get_master_keys_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -39468,8 +40867,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.token_identifier) - value = (value * 31) ^ hash(self.delegation_token) return value def __repr__(self): @@ -39483,14 +40880,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_token_result: +class get_master_keys_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 ) def __init__(self, success=None,): @@ -39506,8 +40903,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if ftype == TType.LIST: + self.success = [] + (_etype1372, _size1369) = iprot.readListBegin() + for _i1373 in xrange(_size1369): + _elem1374 = iprot.readString() + self.success.append(_elem1374) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -39519,10 +40921,13 @@ 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('add_token_result') + oprot.writeStructBegin('get_master_keys_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1375 in self.success: + oprot.writeString(iter1375) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39547,20 +40952,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class remove_token_args: - """ - Attributes: - - token_identifier - """ +class get_open_txns_args: thrift_spec = ( - None, # 0 - (1, TType.STRING, 'token_identifier', None, None, ), # 1 ) - def __init__(self, token_identifier=None,): - self.token_identifier = token_identifier - 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)) @@ -39570,11 +40966,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.token_identifier = iprot.readString() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -39584,11 +40975,7 @@ 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('remove_token_args') - if self.token_identifier is not None: - oprot.writeFieldBegin('token_identifier', TType.STRING, 1) - oprot.writeString(self.token_identifier) - oprot.writeFieldEnd() + oprot.writeStructBegin('get_open_txns_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -39598,7 +40985,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.token_identifier) return value def __repr__(self): @@ -39612,14 +40998,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class remove_token_result: +class get_open_txns_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.STRUCT, 'success', (GetOpenTxnsResponse, GetOpenTxnsResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -39635,8 +41021,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if ftype == TType.STRUCT: + self.success = GetOpenTxnsResponse() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -39648,10 +41035,10 @@ 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('remove_token_result') + oprot.writeStructBegin('get_open_txns_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39676,20 +41063,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_token_args: - """ - Attributes: - - token_identifier - """ +class get_open_txns_info_args: thrift_spec = ( - None, # 0 - (1, TType.STRING, 'token_identifier', None, None, ), # 1 ) - def __init__(self, token_identifier=None,): - self.token_identifier = token_identifier - 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)) @@ -39699,11 +41077,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.token_identifier = iprot.readString() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -39713,11 +41086,7 @@ 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_token_args') - if self.token_identifier is not None: - oprot.writeFieldBegin('token_identifier', TType.STRING, 1) - oprot.writeString(self.token_identifier) - oprot.writeFieldEnd() + oprot.writeStructBegin('get_open_txns_info_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -39727,7 +41096,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.token_identifier) return value def __repr__(self): @@ -39741,14 +41109,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_token_result: +class get_open_txns_info_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRING, 'success', None, None, ), # 0 + (0, TType.STRUCT, 'success', (GetOpenTxnsInfoResponse, GetOpenTxnsInfoResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -39764,8 +41132,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRING: - self.success = iprot.readString() + if ftype == TType.STRUCT: + self.success = GetOpenTxnsInfoResponse() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -39777,10 +41146,10 @@ 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_token_result') + oprot.writeStructBegin('get_open_txns_info_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success) + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39805,11 +41174,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_all_token_identifiers_args: +class open_txns_args: + """ + Attributes: + - rqst + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (OpenTxnRequest, OpenTxnRequest.thrift_spec), None, ), # 1 ) + def __init__(self, rqst=None,): + self.rqst = rqst + 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)) @@ -39819,6 +41197,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.rqst = OpenTxnRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -39828,7 +41212,11 @@ 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_all_token_identifiers_args') + oprot.writeStructBegin('open_txns_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39838,6 +41226,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -39851,14 +41240,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_all_token_identifiers_result: +class open_txns_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (0, TType.STRUCT, 'success', (OpenTxnsResponse, OpenTxnsResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -39874,13 +41263,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1356, _size1353) = iprot.readListBegin() - for _i1357 in xrange(_size1353): - _elem1358 = iprot.readString() - self.success.append(_elem1358) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = OpenTxnsResponse() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -39892,13 +41277,10 @@ 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_all_token_identifiers_result') + oprot.writeStructBegin('open_txns_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1359 in self.success: - oprot.writeString(iter1359) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39923,19 +41305,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_master_key_args: +class abort_txn_args: """ Attributes: - - key + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'key', None, None, ), # 1 + (1, TType.STRUCT, 'rqst', (AbortTxnRequest, AbortTxnRequest.thrift_spec), None, ), # 1 ) - def __init__(self, key=None,): - self.key = key + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -39947,8 +41329,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.key = iprot.readString() + if ftype == TType.STRUCT: + self.rqst = AbortTxnRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -39960,10 +41343,10 @@ 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('add_master_key_args') - if self.key is not None: - oprot.writeFieldBegin('key', TType.STRING, 1) - oprot.writeString(self.key) + oprot.writeStructBegin('abort_txn_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39974,7 +41357,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.key) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -39988,20 +41371,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_master_key_result: +class abort_txn_result: """ Attributes: - - success - o1 """ thrift_spec = ( - (0, TType.I32, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None,): - self.success = success + def __init__(self, o1=None,): self.o1 = o1 def read(self, iprot): @@ -40013,14 +41394,9 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.I32: - self.success = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = NoSuchTxnException() self.o1.read(iprot) else: iprot.skip(ftype) @@ -40033,11 +41409,7 @@ 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('add_master_key_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.I32, 0) - oprot.writeI32(self.success) - oprot.writeFieldEnd() + oprot.writeStructBegin('abort_txn_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -40051,7 +41423,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) return value @@ -40066,22 +41437,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_master_key_args: +class abort_txns_args: """ Attributes: - - seq_number - - key + - rqst """ thrift_spec = ( None, # 0 - (1, TType.I32, 'seq_number', None, None, ), # 1 - (2, TType.STRING, 'key', None, None, ), # 2 + (1, TType.STRUCT, 'rqst', (AbortTxnsRequest, AbortTxnsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, seq_number=None, key=None,): - self.seq_number = seq_number - self.key = key + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -40093,13 +41461,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I32: - self.seq_number = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.key = iprot.readString() + if ftype == TType.STRUCT: + self.rqst = AbortTxnsRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -40111,14 +41475,10 @@ 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('update_master_key_args') - if self.seq_number is not None: - oprot.writeFieldBegin('seq_number', TType.I32, 1) - oprot.writeI32(self.seq_number) - oprot.writeFieldEnd() - if self.key is not None: - oprot.writeFieldBegin('key', TType.STRING, 2) - oprot.writeString(self.key) + oprot.writeStructBegin('abort_txns_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40129,8 +41489,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.seq_number) - value = (value * 31) ^ hash(self.key) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -40144,22 +41503,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class update_master_key_result: +class abort_txns_result: """ Attributes: - o1 - - o2 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, o1=None,): 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: @@ -40172,16 +41528,10 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = NoSuchTxnException() 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() @@ -40191,15 +41541,11 @@ 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('update_master_key_result') + oprot.writeStructBegin('abort_txns_result') 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() @@ -40210,7 +41556,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -40224,19 +41569,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class remove_master_key_args: +class commit_txn_args: """ Attributes: - - key_seq + - rqst """ thrift_spec = ( None, # 0 - (1, TType.I32, 'key_seq', None, None, ), # 1 + (1, TType.STRUCT, 'rqst', (CommitTxnRequest, CommitTxnRequest.thrift_spec), None, ), # 1 ) - def __init__(self, key_seq=None,): - self.key_seq = key_seq + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -40248,8 +41593,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I32: - self.key_seq = iprot.readI32() + if ftype == TType.STRUCT: + self.rqst = CommitTxnRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -40261,10 +41607,10 @@ 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('remove_master_key_args') - if self.key_seq is not None: - oprot.writeFieldBegin('key_seq', TType.I32, 1) - oprot.writeI32(self.key_seq) + oprot.writeStructBegin('commit_txn_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40275,7 +41621,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.key_seq) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -40289,18 +41635,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class remove_master_key_result: +class commit_txn_result: """ Attributes: - - success + - o1 + - o2 """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None,): - self.success = success + def __init__(self, o1=None, o2=None,): + 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: @@ -40311,9 +41661,16 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchTxnException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException() + self.o2.read(iprot) else: iprot.skip(ftype) else: @@ -40325,10 +41682,14 @@ 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('remove_master_key_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeStructBegin('commit_txn_result') + 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() @@ -40339,7 +41700,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -40353,11 +41715,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_master_keys_args: +class repl_tbl_writeid_state_args: + """ + Attributes: + - rqst + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (ReplTblWriteIdStateRequest, ReplTblWriteIdStateRequest.thrift_spec), None, ), # 1 ) + def __init__(self, rqst=None,): + self.rqst = rqst + 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)) @@ -40367,6 +41738,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.rqst = ReplTblWriteIdStateRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -40376,7 +41753,11 @@ 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_master_keys_args') + oprot.writeStructBegin('repl_tbl_writeid_state_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40386,6 +41767,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -40399,19 +41781,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_master_keys_result: - """ - Attributes: - - success - """ +class repl_tbl_writeid_state_result: thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 ) - def __init__(self, success=None,): - self.success = success - 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)) @@ -40421,16 +41795,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1363, _size1360) = iprot.readListBegin() - for _i1364 in xrange(_size1360): - _elem1365 = iprot.readString() - self.success.append(_elem1365) - iprot.readListEnd() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -40440,14 +41804,7 @@ 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_master_keys_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1366 in self.success: - oprot.writeString(iter1366) - oprot.writeListEnd() - oprot.writeFieldEnd() + oprot.writeStructBegin('repl_tbl_writeid_state_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -40457,7 +41814,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -40471,11 +41827,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_open_txns_args: +class get_valid_write_ids_args: + """ + Attributes: + - rqst + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (GetValidWriteIdsRequest, GetValidWriteIdsRequest.thrift_spec), None, ), # 1 ) + def __init__(self, rqst=None,): + self.rqst = rqst + 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)) @@ -40485,6 +41850,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.rqst = GetValidWriteIdsRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -40494,7 +41865,11 @@ 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_open_txns_args') + oprot.writeStructBegin('get_valid_write_ids_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40504,6 +41879,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -40517,18 +41893,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_open_txns_result: +class get_valid_write_ids_result: """ Attributes: - success + - o1 + - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetOpenTxnsResponse, GetOpenTxnsResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (GetValidWriteIdsResponse, GetValidWriteIdsResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None,): + 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: @@ -40541,10 +41923,22 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetOpenTxnsResponse() + self.success = GetValidWriteIdsResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchTxnException() + 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() @@ -40554,11 +41948,19 @@ 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_open_txns_result') + oprot.writeStructBegin('get_valid_write_ids_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() @@ -40569,6 +41971,8 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -40582,11 +41986,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_open_txns_info_args: +class allocate_table_write_ids_args: + """ + Attributes: + - rqst + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (AllocateTableWriteIdsRequest, AllocateTableWriteIdsRequest.thrift_spec), None, ), # 1 ) + def __init__(self, rqst=None,): + self.rqst = rqst + 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)) @@ -40596,6 +42009,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.rqst = AllocateTableWriteIdsRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -40605,7 +42024,11 @@ 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_open_txns_info_args') + oprot.writeStructBegin('allocate_table_write_ids_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40615,6 +42038,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -40628,18 +42052,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_open_txns_info_result: +class allocate_table_write_ids_result: """ Attributes: - success + - o1 + - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetOpenTxnsInfoResponse, GetOpenTxnsInfoResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (AllocateTableWriteIdsResponse, AllocateTableWriteIdsResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 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: @@ -40652,10 +42085,28 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetOpenTxnsInfoResponse() + self.success = AllocateTableWriteIdsResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchTxnException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -40665,11 +42116,23 @@ 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_open_txns_info_result') + oprot.writeStructBegin('allocate_table_write_ids_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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40680,6 +42143,9 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -40693,7 +42159,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class open_txns_args: +class lock_args: """ Attributes: - rqst @@ -40701,7 +42167,7 @@ class open_txns_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (OpenTxnRequest, OpenTxnRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (LockRequest, LockRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -40718,7 +42184,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = OpenTxnRequest() + self.rqst = LockRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -40731,7 +42197,7 @@ 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('open_txns_args') + oprot.writeStructBegin('lock_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -40759,18 +42225,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class open_txns_result: +class lock_result: """ Attributes: - success + - o1 + - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (OpenTxnsResponse, OpenTxnsResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None,): + 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: @@ -40783,10 +42255,22 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = OpenTxnsResponse() + self.success = LockResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchTxnException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException() + self.o2.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -40796,11 +42280,19 @@ 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('open_txns_result') + oprot.writeStructBegin('lock_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() @@ -40811,6 +42303,8 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -40824,7 +42318,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txn_args: +class check_lock_args: """ Attributes: - rqst @@ -40832,7 +42326,7 @@ class abort_txn_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (AbortTxnRequest, AbortTxnRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CheckLockRequest, CheckLockRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -40849,7 +42343,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AbortTxnRequest() + self.rqst = CheckLockRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -40862,7 +42356,7 @@ 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('abort_txn_args') + oprot.writeStructBegin('check_lock_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -40890,19 +42384,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txn_result: +class check_lock_result: """ Attributes: + - success - o1 + - o2 + - o3 """ thrift_spec = ( - None, # 0 + (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 3 ) - def __init__(self, o1=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): + self.success = success self.o1 = o1 + self.o2 = o2 + self.o3 = o3 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: @@ -40913,12 +42415,30 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.STRUCT: + self.success = LockResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: self.o1 = NoSuchTxnException() self.o1.read(iprot) else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = NoSuchLockException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -40928,11 +42448,23 @@ 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('abort_txn_result') + oprot.writeStructBegin('check_lock_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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40942,7 +42474,10 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -40956,7 +42491,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txns_args: +class unlock_args: """ Attributes: - rqst @@ -40964,7 +42499,7 @@ class abort_txns_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (AbortTxnsRequest, AbortTxnsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (UnlockRequest, UnlockRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -40981,7 +42516,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AbortTxnsRequest() + self.rqst = UnlockRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -40994,7 +42529,7 @@ 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('abort_txns_args') + oprot.writeStructBegin('unlock_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41022,19 +42557,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txns_result: +class unlock_result: """ Attributes: - o1 + - o2 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnOpenException, TxnOpenException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None,): + def __init__(self, o1=None, o2=None,): 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: @@ -41047,10 +42585,16 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() + self.o1 = NoSuchLockException() self.o1.read(iprot) else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnOpenException() + self.o2.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -41060,11 +42604,15 @@ 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('abort_txns_result') + oprot.writeStructBegin('unlock_result') 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() @@ -41075,6 +42623,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -41088,7 +42637,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class commit_txn_args: +class show_locks_args: """ Attributes: - rqst @@ -41096,7 +42645,7 @@ class commit_txn_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CommitTxnRequest, CommitTxnRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (ShowLocksRequest, ShowLocksRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41113,7 +42662,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = CommitTxnRequest() + self.rqst = ShowLocksRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41126,7 +42675,7 @@ 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('commit_txn_args') + oprot.writeStructBegin('show_locks_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41154,22 +42703,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class commit_txn_result: +class show_locks_result: """ Attributes: - - o1 - - o2 + - success """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (ShowLocksResponse, ShowLocksResponse.thrift_spec), None, ), # 0 ) - def __init__(self, o1=None, o2=None,): - self.o1 = o1 - self.o2 = o2 + def __init__(self, success=None,): + self.success = success 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: @@ -41180,16 +42725,10 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: + if fid == 0: if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) + self.success = ShowLocksResponse() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -41201,14 +42740,10 @@ 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('commit_txn_result') - 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.writeStructBegin('show_locks_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41219,8 +42754,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -41234,19 +42768,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class repl_tbl_writeid_state_args: +class heartbeat_args: """ Attributes: - - rqst + - ids """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ReplTblWriteIdStateRequest, ReplTblWriteIdStateRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'ids', (HeartbeatRequest, HeartbeatRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, ids=None,): + self.ids = ids 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: @@ -41259,8 +42793,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = ReplTblWriteIdStateRequest() - self.rqst.read(iprot) + self.ids = HeartbeatRequest() + self.ids.read(iprot) else: iprot.skip(ftype) else: @@ -41272,10 +42806,10 @@ 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('repl_tbl_writeid_state_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('heartbeat_args') + if self.ids is not None: + oprot.writeFieldBegin('ids', TType.STRUCT, 1) + self.ids.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41286,7 +42820,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.ids) return value def __repr__(self): @@ -41300,11 +42834,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class repl_tbl_writeid_state_result: +class heartbeat_result: + """ + Attributes: + - o1 + - o2 + - o3 + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 3 ) + def __init__(self, o1=None, o2=None, o3=None,): + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + 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)) @@ -41314,6 +42863,24 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchLockException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchTxnException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = TxnAbortedException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -41323,7 +42890,19 @@ 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('repl_tbl_writeid_state_result') + oprot.writeStructBegin('heartbeat_result') + 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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41333,6 +42912,9 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -41346,19 +42928,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_valid_write_ids_args: +class heartbeat_txn_range_args: """ Attributes: - - rqst + - txns """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (GetValidWriteIdsRequest, GetValidWriteIdsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'txns', (HeartbeatTxnRangeRequest, HeartbeatTxnRangeRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, txns=None,): + self.txns = txns 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: @@ -41371,8 +42953,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = GetValidWriteIdsRequest() - self.rqst.read(iprot) + self.txns = HeartbeatTxnRangeRequest() + self.txns.read(iprot) else: iprot.skip(ftype) else: @@ -41384,10 +42966,10 @@ 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_valid_write_ids_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('heartbeat_txn_range_args') + if self.txns is not None: + oprot.writeFieldBegin('txns', TType.STRUCT, 1) + self.txns.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41398,7 +42980,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.txns) return value def __repr__(self): @@ -41412,24 +42994,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_valid_write_ids_result: +class heartbeat_txn_range_result: """ Attributes: - success - - o1 - - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetValidWriteIdsResponse, GetValidWriteIdsResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (HeartbeatTxnRangeResponse, HeartbeatTxnRangeResponse.thrift_spec), None, ), # 0 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=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: @@ -41442,22 +43018,10 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetValidWriteIdsResponse() + self.success = HeartbeatTxnRangeResponse() self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - 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() @@ -41467,19 +43031,11 @@ 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_valid_write_ids_result') + oprot.writeStructBegin('heartbeat_txn_range_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() @@ -41490,8 +43046,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -41505,7 +43059,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class allocate_table_write_ids_args: +class compact_args: """ Attributes: - rqst @@ -41513,7 +43067,7 @@ class allocate_table_write_ids_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (AllocateTableWriteIdsRequest, AllocateTableWriteIdsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41530,7 +43084,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AllocateTableWriteIdsRequest() + self.rqst = CompactionRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41543,7 +43097,7 @@ 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('allocate_table_write_ids_args') + oprot.writeStructBegin('compact_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41571,28 +43125,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class allocate_table_write_ids_result: - """ - Attributes: - - success - - o1 - - o2 - - o3 - """ +class compact_result: thrift_spec = ( - (0, TType.STRUCT, 'success', (AllocateTableWriteIdsResponse, AllocateTableWriteIdsResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): - self.success = success - self.o1 = o1 - self.o2 = o2 - self.o3 = o3 - 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)) @@ -41602,30 +43139,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = AllocateTableWriteIdsResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException() - self.o3.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -41635,23 +43148,7 @@ 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('allocate_table_write_ids_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() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('compact_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -41661,10 +43158,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -41678,7 +43171,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class lock_args: +class compact2_args: """ Attributes: - rqst @@ -41686,7 +43179,7 @@ class lock_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (LockRequest, LockRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41703,7 +43196,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = LockRequest() + self.rqst = CompactionRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41716,7 +43209,7 @@ 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('lock_args') + oprot.writeStructBegin('compact2_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41744,24 +43237,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class lock_result: +class compact2_result: """ Attributes: - success - - o1 - - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (CompactionResponse, CompactionResponse.thrift_spec), None, ), # 0 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=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: @@ -41774,22 +43261,10 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = LockResponse() + self.success = CompactionResponse() self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -41799,19 +43274,11 @@ 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('lock_result') + oprot.writeStructBegin('compact2_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() @@ -41822,8 +43289,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -41837,7 +43302,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class check_lock_args: +class show_compact_args: """ Attributes: - rqst @@ -41845,7 +43310,7 @@ class check_lock_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CheckLockRequest, CheckLockRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (ShowCompactRequest, ShowCompactRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41862,7 +43327,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = CheckLockRequest() + self.rqst = ShowCompactRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41875,7 +43340,7 @@ 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('check_lock_args') + oprot.writeStructBegin('show_compact_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41903,27 +43368,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class check_lock_result: +class show_compact_result: """ Attributes: - success - - o1 - - o2 - - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 3 + (0, TType.STRUCT, 'success', (ShowCompactResponse, ShowCompactResponse.thrift_spec), None, ), # 0 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): + def __init__(self, success=None,): self.success = success - self.o1 = o1 - self.o2 = o2 - self.o3 = o3 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: @@ -41936,28 +43392,10 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = LockResponse() + self.success = ShowCompactResponse() self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = NoSuchLockException() - self.o3.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -41967,23 +43405,11 @@ 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('check_lock_result') + oprot.writeStructBegin('show_compact_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() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41994,9 +43420,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -42010,7 +43433,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class unlock_args: +class add_dynamic_partitions_args: """ Attributes: - rqst @@ -42018,7 +43441,7 @@ class unlock_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (UnlockRequest, UnlockRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (AddDynamicPartitions, AddDynamicPartitions.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -42035,7 +43458,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = UnlockRequest() + self.rqst = AddDynamicPartitions() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -42048,7 +43471,7 @@ 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('unlock_args') + oprot.writeStructBegin('add_dynamic_partitions_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -42076,7 +43499,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class unlock_result: +class add_dynamic_partitions_result: """ Attributes: - o1 @@ -42085,8 +43508,8 @@ class unlock_result: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnOpenException, TxnOpenException.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 ) def __init__(self, o1=None, o2=None,): @@ -42104,13 +43527,13 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchLockException() + self.o1 = NoSuchTxnException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = TxnOpenException() + self.o2 = TxnAbortedException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -42123,7 +43546,7 @@ 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('unlock_result') + oprot.writeStructBegin('add_dynamic_partitions_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -42156,7 +43579,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_locks_args: +class get_next_notification_args: """ Attributes: - rqst @@ -42164,7 +43587,7 @@ class show_locks_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ShowLocksRequest, ShowLocksRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (NotificationEventRequest, NotificationEventRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -42181,7 +43604,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = ShowLocksRequest() + self.rqst = NotificationEventRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -42194,7 +43617,7 @@ 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('show_locks_args') + oprot.writeStructBegin('get_next_notification_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -42222,14 +43645,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_locks_result: +class get_next_notification_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ShowLocksResponse, ShowLocksResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (NotificationEventResponse, NotificationEventResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -42246,7 +43669,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ShowLocksResponse() + self.success = NotificationEventResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -42259,7 +43682,7 @@ 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('show_locks_result') + oprot.writeStructBegin('get_next_notification_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -42287,20 +43710,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_args: - """ - Attributes: - - ids - """ +class get_current_notificationEventId_args: thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'ids', (HeartbeatRequest, HeartbeatRequest.thrift_spec), None, ), # 1 ) - def __init__(self, ids=None,): - self.ids = ids - 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)) @@ -42310,12 +43724,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.ids = HeartbeatRequest() - self.ids.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -42325,11 +43733,7 @@ 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('heartbeat_args') - if self.ids is not None: - oprot.writeFieldBegin('ids', TType.STRUCT, 1) - self.ids.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('get_current_notificationEventId_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -42339,7 +43743,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.ids) return value def __repr__(self): @@ -42353,25 +43756,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_result: +class get_current_notificationEventId_result: """ Attributes: - - o1 - - o2 - - o3 + - success """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 3 + (0, TType.STRUCT, 'success', (CurrentNotificationEventId, CurrentNotificationEventId.thrift_spec), None, ), # 0 ) - def __init__(self, o1=None, o2=None, o3=None,): - self.o1 = o1 - self.o2 = o2 - self.o3 = o3 + def __init__(self, success=None,): + self.success = success 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: @@ -42382,22 +43778,10 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchLockException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = NoSuchTxnException() - self.o2.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: + if fid == 0: if ftype == TType.STRUCT: - self.o3 = TxnAbortedException() - self.o3.read(iprot) + self.success = CurrentNotificationEventId() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -42409,18 +43793,10 @@ 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('heartbeat_result') - 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() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) + oprot.writeStructBegin('get_current_notificationEventId_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42431,9 +43807,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -42447,19 +43821,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_txn_range_args: +class get_notification_events_count_args: """ Attributes: - - txns + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'txns', (HeartbeatTxnRangeRequest, HeartbeatTxnRangeRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (NotificationEventsCountRequest, NotificationEventsCountRequest.thrift_spec), None, ), # 1 ) - def __init__(self, txns=None,): - self.txns = txns + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -42472,8 +43846,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.txns = HeartbeatTxnRangeRequest() - self.txns.read(iprot) + self.rqst = NotificationEventsCountRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -42485,10 +43859,10 @@ 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('heartbeat_txn_range_args') - if self.txns is not None: - oprot.writeFieldBegin('txns', TType.STRUCT, 1) - self.txns.write(oprot) + oprot.writeStructBegin('get_notification_events_count_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42499,7 +43873,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.txns) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -42513,14 +43887,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_txn_range_result: +class get_notification_events_count_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (HeartbeatTxnRangeResponse, HeartbeatTxnRangeResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (NotificationEventsCountResponse, NotificationEventsCountResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -42537,7 +43911,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = HeartbeatTxnRangeResponse() + self.success = NotificationEventsCountResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -42550,7 +43924,7 @@ 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('heartbeat_txn_range_result') + oprot.writeStructBegin('get_notification_events_count_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -42578,7 +43952,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact_args: +class fire_listener_event_args: """ Attributes: - rqst @@ -42586,7 +43960,7 @@ class compact_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (FireEventRequest, FireEventRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -42603,7 +43977,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = CompactionRequest() + self.rqst = FireEventRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -42616,7 +43990,7 @@ 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('compact_args') + oprot.writeStructBegin('fire_listener_event_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -42644,11 +44018,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact_result: +class fire_listener_event_result: + """ + Attributes: + - success + """ thrift_spec = ( + (0, TType.STRUCT, 'success', (FireEventResponse, FireEventResponse.thrift_spec), None, ), # 0 ) + def __init__(self, success=None,): + self.success = success + 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)) @@ -42658,6 +44040,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 0: + if ftype == TType.STRUCT: + self.success = FireEventResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -42667,7 +44055,11 @@ 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('compact_result') + oprot.writeStructBegin('fire_listener_event_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42677,6 +44069,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -42690,20 +44083,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact2_args: - """ - Attributes: - - rqst - """ +class flushCache_args: thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst - 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)) @@ -42713,12 +44097,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.rqst = CompactionRequest() - self.rqst.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -42728,11 +44106,7 @@ 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('compact2_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('flushCache_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -42742,7 +44116,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -42756,19 +44129,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact2_result: - """ - Attributes: - - success - """ +class flushCache_result: thrift_spec = ( - (0, TType.STRUCT, 'success', (CompactionResponse, CompactionResponse.thrift_spec), None, ), # 0 ) - def __init__(self, success=None,): - self.success = success - 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)) @@ -42778,12 +44143,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = CompactionResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -42793,11 +44152,7 @@ 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('compact2_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('flushCache_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -42807,7 +44162,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -42821,7 +44175,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_compact_args: +class add_write_notification_log_args: """ Attributes: - rqst @@ -42829,7 +44183,7 @@ class show_compact_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ShowCompactRequest, ShowCompactRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (WriteNotificationLogRequest, WriteNotificationLogRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -42846,7 +44200,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = ShowCompactRequest() + self.rqst = WriteNotificationLogRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -42859,7 +44213,7 @@ 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('show_compact_args') + oprot.writeStructBegin('add_write_notification_log_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -42887,14 +44241,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_compact_result: +class add_write_notification_log_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ShowCompactResponse, ShowCompactResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WriteNotificationLogResponse, WriteNotificationLogResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -42911,7 +44265,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ShowCompactResponse() + self.success = WriteNotificationLogResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -42924,7 +44278,7 @@ 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('show_compact_result') + oprot.writeStructBegin('add_write_notification_log_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -42952,19 +44306,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_dynamic_partitions_args: +class cm_recycle_args: """ Attributes: - - rqst + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (AddDynamicPartitions, AddDynamicPartitions.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (CmRecycleRequest, CmRecycleRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, request=None,): + self.request = request 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: @@ -42977,8 +44331,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AddDynamicPartitions() - self.rqst.read(iprot) + self.request = CmRecycleRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -42990,10 +44344,10 @@ 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('add_dynamic_partitions_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('cm_recycle_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43004,7 +44358,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -43018,22 +44372,21 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_dynamic_partitions_result: +class cm_recycle_result: """ Attributes: + - success - o1 - - o2 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (CmRecycleResponse, CmRecycleResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, success=None, o1=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: @@ -43044,16 +44397,16 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) + self.success = CmRecycleResponse() + self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 2: + elif fid == 1: if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) + self.o1 = MetaException() + self.o1.read(iprot) else: iprot.skip(ftype) else: @@ -43065,15 +44418,15 @@ 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('add_dynamic_partitions_result') + oprot.writeStructBegin('cm_recycle_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() @@ -43083,8 +44436,8 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -43098,19 +44451,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_next_notification_args: +class get_file_metadata_by_expr_args: """ Attributes: - - rqst + - req """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (NotificationEventRequest, NotificationEventRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (GetFileMetadataByExprRequest, GetFileMetadataByExprRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, req=None,): + self.req = req 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: @@ -43123,73 +44476,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = NotificationEventRequest() - self.rqst.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_next_notification_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - - 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_next_notification_result: - """ - Attributes: - - success - """ - - thrift_spec = ( - (0, TType.STRUCT, 'success', (NotificationEventResponse, NotificationEventResponse.thrift_spec), None, ), # 0 - ) - - def __init__(self, success=None,): - self.success = success - - 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 = NotificationEventResponse() - self.success.read(iprot) + self.req = GetFileMetadataByExprRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -43201,10 +44489,10 @@ 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_next_notification_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeStructBegin('get_file_metadata_by_expr_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43215,53 +44503,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) - return value - - 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_current_notificationEventId_args: - - thrift_spec = ( - ) - - 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 - 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_current_notificationEventId_args') - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -43275,14 +44517,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_current_notificationEventId_result: +class get_file_metadata_by_expr_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (CurrentNotificationEventId, CurrentNotificationEventId.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (GetFileMetadataByExprResult, GetFileMetadataByExprResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -43299,7 +44541,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CurrentNotificationEventId() + self.success = GetFileMetadataByExprResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -43312,7 +44554,7 @@ 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_current_notificationEventId_result') + oprot.writeStructBegin('get_file_metadata_by_expr_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -43340,19 +44582,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_notification_events_count_args: +class get_file_metadata_args: """ Attributes: - - rqst + - req """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (NotificationEventsCountRequest, NotificationEventsCountRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (GetFileMetadataRequest, GetFileMetadataRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, req=None,): + self.req = req 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: @@ -43365,8 +44607,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = NotificationEventsCountRequest() - self.rqst.read(iprot) + self.req = GetFileMetadataRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -43378,10 +44620,10 @@ 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_notification_events_count_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('get_file_metadata_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43392,7 +44634,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -43406,14 +44648,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_notification_events_count_result: +class get_file_metadata_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (NotificationEventsCountResponse, NotificationEventsCountResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (GetFileMetadataResult, GetFileMetadataResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -43430,7 +44672,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = NotificationEventsCountResponse() + self.success = GetFileMetadataResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -43443,7 +44685,7 @@ 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_notification_events_count_result') + oprot.writeStructBegin('get_file_metadata_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -43471,19 +44713,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class fire_listener_event_args: +class put_file_metadata_args: """ Attributes: - - rqst + - req """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (FireEventRequest, FireEventRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (PutFileMetadataRequest, PutFileMetadataRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, req=None,): + self.req = req 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: @@ -43496,8 +44738,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = FireEventRequest() - self.rqst.read(iprot) + self.req = PutFileMetadataRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -43509,10 +44751,10 @@ 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('fire_listener_event_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('put_file_metadata_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43523,7 +44765,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -43537,14 +44779,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class fire_listener_event_result: +class put_file_metadata_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (FireEventResponse, FireEventResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (PutFileMetadataResult, PutFileMetadataResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -43561,7 +44803,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = FireEventResponse() + self.success = PutFileMetadataResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -43574,7 +44816,7 @@ 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('fire_listener_event_result') + oprot.writeStructBegin('put_file_metadata_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -43602,11 +44844,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class flushCache_args: +class clear_file_metadata_args: + """ + Attributes: + - req + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (ClearFileMetadataRequest, ClearFileMetadataRequest.thrift_spec), None, ), # 1 ) + def __init__(self, req=None,): + self.req = req + 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)) @@ -43616,6 +44867,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.req = ClearFileMetadataRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -43625,7 +44882,11 @@ 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('flushCache_args') + oprot.writeStructBegin('clear_file_metadata_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43635,6 +44896,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -43648,11 +44910,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class flushCache_result: +class clear_file_metadata_result: + """ + Attributes: + - success + """ thrift_spec = ( + (0, TType.STRUCT, 'success', (ClearFileMetadataResult, ClearFileMetadataResult.thrift_spec), None, ), # 0 ) + def __init__(self, success=None,): + self.success = success + 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)) @@ -43662,6 +44932,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 0: + if ftype == TType.STRUCT: + self.success = ClearFileMetadataResult() + self.success.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -43671,7 +44947,11 @@ 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('flushCache_result') + oprot.writeStructBegin('clear_file_metadata_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43681,6 +44961,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -43694,19 +44975,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_write_notification_log_args: +class cache_file_metadata_args: """ Attributes: - - rqst + - req """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (WriteNotificationLogRequest, WriteNotificationLogRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (CacheFileMetadataRequest, CacheFileMetadataRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, req=None,): + self.req = req 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: @@ -43719,8 +45000,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = WriteNotificationLogRequest() - self.rqst.read(iprot) + self.req = CacheFileMetadataRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -43732,10 +45013,10 @@ 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('add_write_notification_log_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('cache_file_metadata_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43746,7 +45027,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -43760,14 +45041,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_write_notification_log_result: +class cache_file_metadata_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WriteNotificationLogResponse, WriteNotificationLogResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (CacheFileMetadataResult, CacheFileMetadataResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -43784,7 +45065,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WriteNotificationLogResponse() + self.success = CacheFileMetadataResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -43797,7 +45078,7 @@ 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('add_write_notification_log_result') + oprot.writeStructBegin('cache_file_metadata_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -43825,7 +45106,131 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cm_recycle_args: +class get_metastore_db_uuid_args: + + thrift_spec = ( + ) + + 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 + 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_metastore_db_uuid_args') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + return value + + 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_metastore_db_uuid_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.STRING, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + 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.STRING: + self.success = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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_metastore_db_uuid_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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 create_resource_plan_args: """ Attributes: - request @@ -43833,7 +45238,7 @@ class cm_recycle_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (CmRecycleRequest, CmRecycleRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMCreateResourcePlanRequest, WMCreateResourcePlanRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -43850,7 +45255,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = CmRecycleRequest() + self.request = WMCreateResourcePlanRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -43863,7 +45268,7 @@ 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('cm_recycle_args') + oprot.writeStructBegin('create_resource_plan_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -43891,21 +45296,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cm_recycle_result: +class create_resource_plan_result: """ Attributes: - success - o1 + - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (CmRecycleResponse, CmRecycleResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.STRUCT, 'success', (WMCreateResourcePlanResponse, WMCreateResourcePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): self.success = success self.o1 = o1 + self.o2 = o2 + self.o3 = o3 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: @@ -43918,16 +45329,28 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CmRecycleResponse() + self.success = WMCreateResourcePlanResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -43937,7 +45360,7 @@ 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('cm_recycle_result') + oprot.writeStructBegin('create_resource_plan_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -43946,6 +45369,14 @@ def write(self, oprot): 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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -43957,6 +45388,8 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -43970,19 +45403,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_by_expr_args: +class get_resource_plan_args: """ Attributes: - - req + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (GetFileMetadataByExprRequest, GetFileMetadataByExprRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMGetResourcePlanRequest, WMGetResourcePlanRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, request=None,): + self.request = request 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: @@ -43995,8 +45428,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetFileMetadataByExprRequest() - self.req.read(iprot) + self.request = WMGetResourcePlanRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -44008,10 +45441,10 @@ 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_file_metadata_by_expr_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_resource_plan_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44022,7 +45455,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -44036,18 +45469,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_by_expr_result: +class get_resource_plan_result: """ Attributes: - success + - o1 + - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetFileMetadataByExprResult, GetFileMetadataByExprResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMGetResourcePlanResponse, WMGetResourcePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None,): + 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: @@ -44060,10 +45499,22 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetFileMetadataByExprResult() + self.success = WMGetResourcePlanResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + 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() @@ -44073,11 +45524,19 @@ 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_file_metadata_by_expr_result') + oprot.writeStructBegin('get_resource_plan_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() @@ -44088,6 +45547,8 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -44101,19 +45562,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_args: +class get_active_resource_plan_args: """ Attributes: - - req + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (GetFileMetadataRequest, GetFileMetadataRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMGetActiveResourcePlanRequest, WMGetActiveResourcePlanRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, request=None,): + self.request = request 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: @@ -44126,8 +45587,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetFileMetadataRequest() - self.req.read(iprot) + self.request = WMGetActiveResourcePlanRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -44139,10 +45600,10 @@ 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_file_metadata_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_active_resource_plan_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44153,7 +45614,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -44167,18 +45628,21 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_result: +class get_active_resource_plan_result: """ Attributes: - success + - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetFileMetadataResult, GetFileMetadataResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMGetActiveResourcePlanResponse, WMGetActiveResourcePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None,): + def __init__(self, success=None, o2=None,): self.success = success + 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: @@ -44191,10 +45655,16 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetFileMetadataResult() + self.success = WMGetActiveResourcePlanResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -44204,11 +45674,15 @@ 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_file_metadata_result') + oprot.writeStructBegin('get_active_resource_plan_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 1) + self.o2.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44219,6 +45693,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -44232,19 +45707,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class put_file_metadata_args: +class get_all_resource_plans_args: """ Attributes: - - req + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (PutFileMetadataRequest, PutFileMetadataRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMGetAllResourcePlanRequest, WMGetAllResourcePlanRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, request=None,): + self.request = request 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: @@ -44257,8 +45732,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = PutFileMetadataRequest() - self.req.read(iprot) + self.request = WMGetAllResourcePlanRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -44270,10 +45745,10 @@ 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('put_file_metadata_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_all_resource_plans_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44284,7 +45759,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -44298,18 +45773,21 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class put_file_metadata_result: +class get_all_resource_plans_result: """ Attributes: - success + - o1 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PutFileMetadataResult, PutFileMetadataResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMGetAllResourcePlanResponse, WMGetAllResourcePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None,): + def __init__(self, success=None, o1=None,): self.success = success + self.o1 = o1 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: @@ -44322,10 +45800,16 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = PutFileMetadataResult() + self.success = WMGetAllResourcePlanResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -44335,11 +45819,15 @@ 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('put_file_metadata_result') + oprot.writeStructBegin('get_all_resource_plans_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() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44350,6 +45838,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) return value def __repr__(self): @@ -44363,19 +45852,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class clear_file_metadata_args: +class alter_resource_plan_args: """ Attributes: - - req + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (ClearFileMetadataRequest, ClearFileMetadataRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMAlterResourcePlanRequest, WMAlterResourcePlanRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, request=None,): + self.request = request 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: @@ -44388,8 +45877,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ClearFileMetadataRequest() - self.req.read(iprot) + self.request = WMAlterResourcePlanRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -44401,10 +45890,10 @@ 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('clear_file_metadata_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('alter_resource_plan_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44415,7 +45904,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -44429,18 +45918,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class clear_file_metadata_result: +class alter_resource_plan_result: """ Attributes: - success + - o1 + - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ClearFileMetadataResult, ClearFileMetadataResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMAlterResourcePlanResponse, WMAlterResourcePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 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: @@ -44453,10 +45951,28 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ClearFileMetadataResult() + self.success = WMAlterResourcePlanResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidOperationException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -44466,11 +45982,23 @@ 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('clear_file_metadata_result') + oprot.writeStructBegin('alter_resource_plan_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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44481,6 +46009,9 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -44494,19 +46025,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cache_file_metadata_args: +class validate_resource_plan_args: """ Attributes: - - req + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (CacheFileMetadataRequest, CacheFileMetadataRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMValidateResourcePlanRequest, WMValidateResourcePlanRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, request=None,): + self.request = request 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: @@ -44519,8 +46050,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CacheFileMetadataRequest() - self.req.read(iprot) + self.request = WMValidateResourcePlanRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -44532,10 +46063,10 @@ 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('cache_file_metadata_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('validate_resource_plan_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44546,7 +46077,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -44560,18 +46091,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cache_file_metadata_result: +class validate_resource_plan_result: """ Attributes: - success + - o1 + - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (CacheFileMetadataResult, CacheFileMetadataResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMValidateResourcePlanResponse, WMValidateResourcePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None,): + 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: @@ -44584,10 +46121,22 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CacheFileMetadataResult() + self.success = WMValidateResourcePlanResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + 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() @@ -44597,11 +46146,19 @@ 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('cache_file_metadata_result') + oprot.writeStructBegin('validate_resource_plan_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() @@ -44612,6 +46169,8 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -44625,11 +46184,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_metastore_db_uuid_args: +class drop_resource_plan_args: + """ + Attributes: + - request + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (WMDropResourcePlanRequest, WMDropResourcePlanRequest.thrift_spec), None, ), # 1 ) + def __init__(self, request=None,): + self.request = request + 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)) @@ -44639,6 +46207,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.request = WMDropResourcePlanRequest() + self.request.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -44648,7 +46222,11 @@ 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_metastore_db_uuid_args') + oprot.writeStructBegin('drop_resource_plan_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44658,6 +46236,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -44671,21 +46250,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_metastore_db_uuid_result: +class drop_resource_plan_result: """ Attributes: - success - o1 + - o2 + - o3 """ thrift_spec = ( - (0, TType.STRING, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.STRUCT, 'success', (WMDropResourcePlanResponse, WMDropResourcePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): self.success = success self.o1 = o1 + self.o2 = o2 + self.o3 = o3 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: @@ -44697,16 +46282,29 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRING: - self.success = iprot.readString() + if ftype == TType.STRUCT: + self.success = WMDropResourcePlanResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidOperationException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -44716,15 +46314,23 @@ 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_metastore_db_uuid_result') + oprot.writeStructBegin('drop_resource_plan_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success) + 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() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44736,6 +46342,8 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -44749,7 +46357,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_resource_plan_args: +class create_wm_trigger_args: """ Attributes: - request @@ -44757,7 +46365,7 @@ class create_resource_plan_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMCreateResourcePlanRequest, WMCreateResourcePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMCreateTriggerRequest, WMCreateTriggerRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -44774,7 +46382,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMCreateResourcePlanRequest() + self.request = WMCreateTriggerRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -44787,7 +46395,7 @@ 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('create_resource_plan_args') + oprot.writeStructBegin('create_wm_trigger_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -44815,27 +46423,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_resource_plan_result: +class create_wm_trigger_result: """ Attributes: - success - o1 - o2 - o3 + - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMCreateResourcePlanResponse, WMCreateResourcePlanResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMCreateTriggerResponse, WMCreateTriggerResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 + self.o4 = o4 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: @@ -44848,7 +46459,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMCreateResourcePlanResponse() + self.success = WMCreateTriggerResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -44860,16 +46471,22 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = MetaException() + self.o3 = InvalidObjectException() self.o3.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = MetaException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -44879,7 +46496,7 @@ 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('create_resource_plan_result') + oprot.writeStructBegin('create_wm_trigger_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -44896,6 +46513,10 @@ def write(self, oprot): oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44909,6 +46530,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -44922,7 +46544,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_resource_plan_args: +class alter_wm_trigger_args: """ Attributes: - request @@ -44930,7 +46552,7 @@ class get_resource_plan_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMGetResourcePlanRequest, WMGetResourcePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMAlterTriggerRequest, WMAlterTriggerRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -44947,7 +46569,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMGetResourcePlanRequest() + self.request = WMAlterTriggerRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -44960,7 +46582,7 @@ 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_resource_plan_args') + oprot.writeStructBegin('alter_wm_trigger_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -44988,24 +46610,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_resource_plan_result: +class alter_wm_trigger_result: """ Attributes: - success - o1 - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMGetResourcePlanResponse, WMGetResourcePlanResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMAlterTriggerResponse, WMAlterTriggerResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): self.success = success self.o1 = o1 self.o2 = o2 + self.o3 = o3 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: @@ -45018,7 +46643,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMGetResourcePlanResponse() + self.success = WMAlterTriggerResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -45030,10 +46655,16 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = InvalidObjectException() self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -45043,7 +46674,7 @@ 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_resource_plan_result') + oprot.writeStructBegin('alter_wm_trigger_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -45056,6 +46687,10 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -45068,6 +46703,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -45081,7 +46717,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_active_resource_plan_args: +class drop_wm_trigger_args: """ Attributes: - request @@ -45089,7 +46725,7 @@ class get_active_resource_plan_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMGetActiveResourcePlanRequest, WMGetActiveResourcePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMDropTriggerRequest, WMDropTriggerRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -45106,7 +46742,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMGetActiveResourcePlanRequest() + self.request = WMDropTriggerRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -45119,7 +46755,7 @@ 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_active_resource_plan_args') + oprot.writeStructBegin('drop_wm_trigger_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -45147,21 +46783,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_active_resource_plan_result: +class drop_wm_trigger_result: """ Attributes: - success + - o1 - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMGetActiveResourcePlanResponse, WMGetActiveResourcePlanResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.STRUCT, 'success', (WMDropTriggerResponse, WMDropTriggerResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o2=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): self.success = success + self.o1 = o1 self.o2 = o2 + self.o3 = o3 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: @@ -45174,16 +46816,28 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMGetActiveResourcePlanResponse() + self.success = WMDropTriggerResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidOperationException() self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -45193,15 +46847,23 @@ 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_active_resource_plan_result') + oprot.writeStructBegin('drop_wm_trigger_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, 1) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -45212,7 +46874,9 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -45226,7 +46890,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_all_resource_plans_args: +class get_triggers_for_resourceplan_args: """ Attributes: - request @@ -45234,7 +46898,7 @@ class get_all_resource_plans_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMGetAllResourcePlanRequest, WMGetAllResourcePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMGetTriggersForResourePlanRequest, WMGetTriggersForResourePlanRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -45251,7 +46915,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMGetAllResourcePlanRequest() + self.request = WMGetTriggersForResourePlanRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -45264,7 +46928,7 @@ 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_all_resource_plans_args') + oprot.writeStructBegin('get_triggers_for_resourceplan_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -45292,21 +46956,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_all_resource_plans_result: +class get_triggers_for_resourceplan_result: """ Attributes: - success - o1 + - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMGetAllResourcePlanResponse, WMGetAllResourcePlanResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.STRUCT, 'success', (WMGetTriggersForResourePlanResponse, WMGetTriggersForResourePlanResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None,): + 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: @@ -45319,16 +46986,22 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMGetAllResourcePlanResponse() + self.success = WMGetTriggersForResourePlanResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException() + self.o1 = NoSuchObjectException() 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() @@ -45338,7 +47011,7 @@ 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_all_resource_plans_result') + oprot.writeStructBegin('get_triggers_for_resourceplan_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -45347,6 +47020,10 @@ def write(self, oprot): 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() @@ -45358,6 +47035,7 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -45371,7 +47049,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_resource_plan_args: +class create_wm_pool_args: """ Attributes: - request @@ -45379,7 +47057,7 @@ class alter_resource_plan_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMAlterResourcePlanRequest, WMAlterResourcePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMCreatePoolRequest, WMCreatePoolRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -45396,7 +47074,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMAlterResourcePlanRequest() + self.request = WMCreatePoolRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -45409,7 +47087,7 @@ 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('alter_resource_plan_args') + oprot.writeStructBegin('create_wm_pool_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -45437,27 +47115,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_resource_plan_result: +class create_wm_pool_result: """ Attributes: - success - o1 - o2 - o3 + - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMAlterResourcePlanResponse, WMAlterResourcePlanResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (0, TType.STRUCT, 'success', (WMCreatePoolResponse, WMCreatePoolResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 + self.o4 = o4 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: @@ -45470,28 +47151,34 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMAlterResourcePlanResponse() + self.success = WMCreatePoolResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidOperationException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = MetaException() + self.o3 = InvalidObjectException() self.o3.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = MetaException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -45501,7 +47188,7 @@ 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('alter_resource_plan_result') + oprot.writeStructBegin('create_wm_pool_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -45518,6 +47205,10 @@ def write(self, oprot): oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -45531,6 +47222,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -45544,7 +47236,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class validate_resource_plan_args: +class alter_wm_pool_args: """ Attributes: - request @@ -45552,7 +47244,7 @@ class validate_resource_plan_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMValidateResourcePlanRequest, WMValidateResourcePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMAlterPoolRequest, WMAlterPoolRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -45569,7 +47261,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMValidateResourcePlanRequest() + self.request = WMAlterPoolRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -45582,7 +47274,7 @@ 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('validate_resource_plan_args') + oprot.writeStructBegin('alter_wm_pool_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -45610,24 +47302,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class validate_resource_plan_result: +class alter_wm_pool_result: """ Attributes: - success - o1 - o2 + - o3 + - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMValidateResourcePlanResponse, WMValidateResourcePlanResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (WMAlterPoolResponse, WMAlterPoolResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): self.success = success self.o1 = o1 self.o2 = o2 + self.o3 = o3 + self.o4 = o4 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: @@ -45640,22 +47338,34 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMValidateResourcePlanResponse() + self.success = WMAlterPoolResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidObjectException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = MetaException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -45665,7 +47375,7 @@ 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('validate_resource_plan_result') + oprot.writeStructBegin('alter_wm_pool_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -45678,6 +47388,14 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -45690,6 +47408,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -45703,7 +47423,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_resource_plan_args: +class drop_wm_pool_args: """ Attributes: - request @@ -45711,7 +47431,7 @@ class drop_resource_plan_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMDropResourcePlanRequest, WMDropResourcePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMDropPoolRequest, WMDropPoolRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -45728,7 +47448,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMDropResourcePlanRequest() + self.request = WMDropPoolRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -45741,7 +47461,7 @@ 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('drop_resource_plan_args') + oprot.writeStructBegin('drop_wm_pool_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -45769,7 +47489,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_resource_plan_result: +class drop_wm_pool_result: """ Attributes: - success @@ -45779,7 +47499,7 @@ class drop_resource_plan_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMDropResourcePlanResponse, WMDropResourcePlanResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMDropPoolResponse, WMDropPoolResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 @@ -45802,7 +47522,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMDropResourcePlanResponse() + self.success = WMDropPoolResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -45833,7 +47553,7 @@ 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('drop_resource_plan_result') + oprot.writeStructBegin('drop_wm_pool_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -45876,7 +47596,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_wm_trigger_args: +class create_or_update_wm_mapping_args: """ Attributes: - request @@ -45884,7 +47604,7 @@ class create_wm_trigger_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMCreateTriggerRequest, WMCreateTriggerRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMCreateOrUpdateMappingRequest, WMCreateOrUpdateMappingRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -45901,7 +47621,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMCreateTriggerRequest() + self.request = WMCreateOrUpdateMappingRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -45914,7 +47634,7 @@ 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('create_wm_trigger_args') + oprot.writeStructBegin('create_or_update_wm_mapping_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -45942,7 +47662,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_wm_trigger_result: +class create_or_update_wm_mapping_result: """ Attributes: - success @@ -45953,7 +47673,7 @@ class create_wm_trigger_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMCreateTriggerResponse, WMCreateTriggerResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMCreateOrUpdateMappingResponse, WMCreateOrUpdateMappingResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 @@ -45978,7 +47698,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMCreateTriggerResponse() + self.success = WMCreateOrUpdateMappingResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -46015,7 +47735,7 @@ 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('create_wm_trigger_result') + oprot.writeStructBegin('create_or_update_wm_mapping_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -46063,7 +47783,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_wm_trigger_args: +class drop_wm_mapping_args: """ Attributes: - request @@ -46071,7 +47791,7 @@ class alter_wm_trigger_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMAlterTriggerRequest, WMAlterTriggerRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMDropMappingRequest, WMDropMappingRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -46088,7 +47808,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMAlterTriggerRequest() + self.request = WMDropMappingRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -46101,7 +47821,7 @@ 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('alter_wm_trigger_args') + oprot.writeStructBegin('drop_wm_mapping_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -46129,7 +47849,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_wm_trigger_result: +class drop_wm_mapping_result: """ Attributes: - success @@ -46139,9 +47859,9 @@ class alter_wm_trigger_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMAlterTriggerResponse, WMAlterTriggerResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (WMDropMappingResponse, WMDropMappingResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 2 + (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) @@ -46162,7 +47882,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMAlterTriggerResponse() + self.success = WMDropMappingResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -46174,7 +47894,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException() + self.o2 = InvalidOperationException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -46193,7 +47913,7 @@ 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('alter_wm_trigger_result') + oprot.writeStructBegin('drop_wm_mapping_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -46236,7 +47956,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_wm_trigger_args: +class create_or_drop_wm_trigger_to_pool_mapping_args: """ Attributes: - request @@ -46244,7 +47964,7 @@ class drop_wm_trigger_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMDropTriggerRequest, WMDropTriggerRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (WMCreateOrDropTriggerToPoolMappingRequest, WMCreateOrDropTriggerToPoolMappingRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -46261,7 +47981,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMDropTriggerRequest() + self.request = WMCreateOrDropTriggerToPoolMappingRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -46274,7 +47994,7 @@ 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('drop_wm_trigger_args') + oprot.writeStructBegin('create_or_drop_wm_trigger_to_pool_mapping_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -46302,27 +48022,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_wm_trigger_result: +class create_or_drop_wm_trigger_to_pool_mapping_result: """ Attributes: - success - o1 - o2 - o3 + - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMDropTriggerResponse, WMDropTriggerResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (0, TType.STRUCT, 'success', (WMCreateOrDropTriggerToPoolMappingResponse, WMCreateOrDropTriggerToPoolMappingResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 + self.o4 = o4 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: @@ -46335,28 +48058,34 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMDropTriggerResponse() + self.success = WMCreateOrDropTriggerToPoolMappingResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidOperationException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = MetaException() + self.o3 = InvalidObjectException() self.o3.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = MetaException() + self.o4.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -46366,7 +48095,7 @@ 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('drop_wm_trigger_result') + oprot.writeStructBegin('create_or_drop_wm_trigger_to_pool_mapping_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -46383,6 +48112,10 @@ def write(self, oprot): oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46396,6 +48129,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -46409,19 +48143,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_triggers_for_resourceplan_args: +class create_ischema_args: """ Attributes: - - request + - schema """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMGetTriggersForResourePlanRequest, WMGetTriggersForResourePlanRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'schema', (ISchema, ISchema.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, schema=None,): + self.schema = schema 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: @@ -46434,8 +48168,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMGetTriggersForResourePlanRequest() - self.request.read(iprot) + self.schema = ISchema() + self.schema.read(iprot) else: iprot.skip(ftype) else: @@ -46447,10 +48181,10 @@ 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_triggers_for_resourceplan_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('create_ischema_args') + if self.schema is not None: + oprot.writeFieldBegin('schema', TType.STRUCT, 1) + self.schema.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46461,7 +48195,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.schema) return value def __repr__(self): @@ -46475,24 +48209,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_triggers_for_resourceplan_result: +class create_ischema_result: """ Attributes: - - success - o1 - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMGetTriggersForResourePlanResponse, WMGetTriggersForResourePlanResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + None, # 0 + (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None, o2=None,): - self.success = success + def __init__(self, o1=None, o2=None, o3=None,): self.o1 = o1 self.o2 = o2 + self.o3 = o3 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: @@ -46503,24 +48238,24 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = WMGetTriggersForResourePlanResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = AlreadyExistsException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -46530,11 +48265,7 @@ 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_triggers_for_resourceplan_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('create_ischema_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -46543,6 +48274,10 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46552,9 +48287,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -46568,19 +48303,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_wm_pool_args: +class alter_ischema_args: """ Attributes: - - request + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMCreatePoolRequest, WMCreatePoolRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (AlterISchemaRequest, AlterISchemaRequest.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -46593,8 +48328,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMCreatePoolRequest() - self.request.read(iprot) + self.rqst = AlterISchemaRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -46606,10 +48341,10 @@ 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('create_wm_pool_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('alter_ischema_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46620,7 +48355,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -46634,30 +48369,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_wm_pool_result: +class alter_ischema_result: """ Attributes: - - success - o1 - o2 - - o3 - - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMCreatePoolResponse, WMCreatePoolResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): - self.success = success + def __init__(self, o1=None, o2=None,): self.o1 = o1 self.o2 = o2 - self.o3 = o3 - self.o4 = o4 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: @@ -46668,36 +48395,18 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = WMCreatePoolResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = InvalidObjectException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = MetaException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -46707,11 +48416,7 @@ 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('create_wm_pool_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('alter_ischema_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -46720,14 +48425,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46737,11 +48434,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -46755,19 +48449,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_wm_pool_args: +class get_ischema_args: """ Attributes: - - request + - name """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMAlterPoolRequest, WMAlterPoolRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'name', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, name=None,): + self.name = name 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: @@ -46780,8 +48474,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMAlterPoolRequest() - self.request.read(iprot) + self.name = ISchemaName() + self.name.read(iprot) else: iprot.skip(ftype) else: @@ -46793,10 +48487,10 @@ 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('alter_wm_pool_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('get_ischema_args') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRUCT, 1) + self.name.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46807,7 +48501,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.name) return value def __repr__(self): @@ -46821,30 +48515,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_wm_pool_result: +class get_ischema_result: """ Attributes: - success - o1 - o2 - - o3 - - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMAlterPoolResponse, WMAlterPoolResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 + (0, TType.STRUCT, 'success', (ISchema, ISchema.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 - self.o4 = o4 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: @@ -46857,34 +48545,22 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMAlterPoolResponse() + self.success = ISchema() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = InvalidObjectException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = MetaException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -46894,7 +48570,7 @@ 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('alter_wm_pool_result') + oprot.writeStructBegin('get_ischema_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -46907,14 +48583,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46927,8 +48595,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -46942,19 +48608,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_wm_pool_args: +class drop_ischema_args: """ Attributes: - - request + - name """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMDropPoolRequest, WMDropPoolRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'name', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, name=None,): + self.name = name 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: @@ -46967,8 +48633,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMDropPoolRequest() - self.request.read(iprot) + self.name = ISchemaName() + self.name.read(iprot) else: iprot.skip(ftype) else: @@ -46980,10 +48646,10 @@ 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('drop_wm_pool_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('drop_ischema_args') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRUCT, 1) + self.name.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -46994,7 +48660,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.name) return value def __repr__(self): @@ -47008,24 +48674,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_wm_pool_result: +class drop_ischema_result: """ Attributes: - - success - o1 - o2 - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMDropPoolResponse, WMDropPoolResponse.thrift_spec), None, ), # 0 + None, # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): - self.success = success + def __init__(self, o1=None, o2=None, o3=None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 @@ -47039,13 +48703,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = WMDropPoolResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = NoSuchObjectException() self.o1.read(iprot) @@ -47072,11 +48730,7 @@ 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('drop_wm_pool_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('drop_ischema_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -47098,7 +48752,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) @@ -47115,19 +48768,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_or_update_wm_mapping_args: +class add_schema_version_args: """ Attributes: - - request + - schemaVersion """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMCreateOrUpdateMappingRequest, WMCreateOrUpdateMappingRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'schemaVersion', (SchemaVersion, SchemaVersion.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, schemaVersion=None,): + self.schemaVersion = schemaVersion 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: @@ -47140,8 +48793,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMCreateOrUpdateMappingRequest() - self.request.read(iprot) + self.schemaVersion = SchemaVersion() + self.schemaVersion.read(iprot) else: iprot.skip(ftype) else: @@ -47153,10 +48806,10 @@ 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('create_or_update_wm_mapping_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('add_schema_version_args') + if self.schemaVersion is not None: + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) + self.schemaVersion.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47167,7 +48820,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.schemaVersion) return value def __repr__(self): @@ -47181,30 +48834,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_or_update_wm_mapping_result: +class add_schema_version_result: """ Attributes: - - success - o1 - o2 - o3 - - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMCreateOrUpdateMappingResponse, WMCreateOrUpdateMappingResponse.thrift_spec), None, ), # 0 + None, # 0 (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 + (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): - self.success = success + def __init__(self, o1=None, o2=None, o3=None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 - self.o4 = o4 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: @@ -47215,13 +48863,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = WMCreateOrUpdateMappingResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = AlreadyExistsException() self.o1.read(iprot) @@ -47235,16 +48877,10 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = InvalidObjectException() + self.o3 = MetaException() self.o3.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = MetaException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -47254,11 +48890,7 @@ 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('create_or_update_wm_mapping_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('add_schema_version_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -47271,10 +48903,6 @@ def write(self, oprot): oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47284,11 +48912,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -47302,19 +48928,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_wm_mapping_args: +class get_schema_version_args: """ Attributes: - - request + - schemaVersion """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMDropMappingRequest, WMDropMappingRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'schemaVersion', (SchemaVersionDescriptor, SchemaVersionDescriptor.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, schemaVersion=None,): + self.schemaVersion = schemaVersion 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: @@ -47327,8 +48953,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMDropMappingRequest() - self.request.read(iprot) + self.schemaVersion = SchemaVersionDescriptor() + self.schemaVersion.read(iprot) else: iprot.skip(ftype) else: @@ -47340,10 +48966,10 @@ 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('drop_wm_mapping_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('get_schema_version_args') + if self.schemaVersion is not None: + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) + self.schemaVersion.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47354,7 +48980,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.schemaVersion) return value def __repr__(self): @@ -47368,27 +48994,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_wm_mapping_result: +class get_schema_version_result: """ Attributes: - success - o1 - o2 - - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMDropMappingResponse, WMDropMappingResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (SchemaVersion, SchemaVersion.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): + def __init__(self, success=None, o1=None, o2=None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 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: @@ -47401,7 +49024,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMDropMappingResponse() + self.success = SchemaVersion() self.success.read(iprot) else: iprot.skip(ftype) @@ -47413,16 +49036,10 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidOperationException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException() - self.o3.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -47432,7 +49049,7 @@ 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('drop_wm_mapping_result') + oprot.writeStructBegin('get_schema_version_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -47445,10 +49062,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47461,7 +49074,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -47475,19 +49087,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_or_drop_wm_trigger_to_pool_mapping_args: +class get_schema_latest_version_args: """ Attributes: - - request + - schemaName """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (WMCreateOrDropTriggerToPoolMappingRequest, WMCreateOrDropTriggerToPoolMappingRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'schemaName', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, schemaName=None,): + self.schemaName = schemaName 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: @@ -47500,8 +49112,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = WMCreateOrDropTriggerToPoolMappingRequest() - self.request.read(iprot) + self.schemaName = ISchemaName() + self.schemaName.read(iprot) else: iprot.skip(ftype) else: @@ -47513,10 +49125,10 @@ 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('create_or_drop_wm_trigger_to_pool_mapping_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('get_schema_latest_version_args') + if self.schemaName is not None: + oprot.writeFieldBegin('schemaName', TType.STRUCT, 1) + self.schemaName.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47527,7 +49139,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.schemaName) return value def __repr__(self): @@ -47541,30 +49153,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_or_drop_wm_trigger_to_pool_mapping_result: +class get_schema_latest_version_result: """ Attributes: - success - o1 - o2 - - o3 - - o4 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (WMCreateOrDropTriggerToPoolMappingResponse, WMCreateOrDropTriggerToPoolMappingResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'o4', (MetaException, MetaException.thrift_spec), None, ), # 4 + (0, TType.STRUCT, 'success', (SchemaVersion, SchemaVersion.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + def __init__(self, success=None, o1=None, o2=None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 - self.o4 = o4 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: @@ -47577,34 +49183,22 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = WMCreateOrDropTriggerToPoolMappingResponse() + self.success = SchemaVersion() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = InvalidObjectException() - self.o3.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = MetaException() - self.o4.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -47614,7 +49208,7 @@ 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('create_or_drop_wm_trigger_to_pool_mapping_result') + oprot.writeStructBegin('get_schema_latest_version_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -47627,14 +49221,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin('o4', TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47647,8 +49233,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) return value def __repr__(self): @@ -47662,19 +49246,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_ischema_args: +class get_schema_all_versions_args: """ Attributes: - - schema + - schemaName """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'schema', (ISchema, ISchema.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'schemaName', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 ) - def __init__(self, schema=None,): - self.schema = schema + def __init__(self, schemaName=None,): + self.schemaName = schemaName 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: @@ -47687,8 +49271,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.schema = ISchema() - self.schema.read(iprot) + self.schemaName = ISchemaName() + self.schemaName.read(iprot) else: iprot.skip(ftype) else: @@ -47700,10 +49284,10 @@ 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('create_ischema_args') - if self.schema is not None: - oprot.writeFieldBegin('schema', TType.STRUCT, 1) - self.schema.write(oprot) + oprot.writeStructBegin('get_schema_all_versions_args') + if self.schemaName is not None: + oprot.writeFieldBegin('schemaName', TType.STRUCT, 1) + self.schemaName.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47714,7 +49298,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.schema) + value = (value * 31) ^ hash(self.schemaName) return value def __repr__(self): @@ -47728,25 +49312,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class create_ischema_result: +class get_schema_all_versions_result: """ Attributes: + - success - o1 - o2 - - o3 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (0, TType.LIST, 'success', (TType.STRUCT,(SchemaVersion, SchemaVersion.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None, o2=None, o3=None,): + def __init__(self, success=None, o1=None, o2=None,): + self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 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: @@ -47757,24 +49340,29 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1379, _size1376) = iprot.readListBegin() + for _i1380 in xrange(_size1376): + _elem1381 = SchemaVersion() + _elem1381.read(iprot) + self.success.append(_elem1381) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() + self.o1 = NoSuchObjectException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException() - self.o3.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -47784,7 +49372,14 @@ 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('create_ischema_result') + oprot.writeStructBegin('get_schema_all_versions_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1382 in self.success: + iter1382.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -47793,10 +49388,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47806,9 +49397,9 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -47822,19 +49413,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_ischema_args: +class drop_schema_version_args: """ Attributes: - - rqst + - schemaVersion """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (AlterISchemaRequest, AlterISchemaRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'schemaVersion', (SchemaVersionDescriptor, SchemaVersionDescriptor.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, schemaVersion=None,): + self.schemaVersion = schemaVersion 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: @@ -47847,8 +49438,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AlterISchemaRequest() - self.rqst.read(iprot) + self.schemaVersion = SchemaVersionDescriptor() + self.schemaVersion.read(iprot) else: iprot.skip(ftype) else: @@ -47860,10 +49451,10 @@ 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('alter_ischema_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('drop_schema_version_args') + if self.schemaVersion is not None: + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) + self.schemaVersion.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47874,7 +49465,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.schemaVersion) return value def __repr__(self): @@ -47888,7 +49479,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class alter_ischema_result: +class drop_schema_version_result: """ Attributes: - o1 @@ -47935,7 +49526,7 @@ 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('alter_ischema_result') + oprot.writeStructBegin('drop_schema_version_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -47968,19 +49559,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_ischema_args: +class get_schemas_by_cols_args: """ Attributes: - - name + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'name', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (FindSchemasByColsRqst, FindSchemasByColsRqst.thrift_spec), None, ), # 1 ) - def __init__(self, name=None,): - self.name = name + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -47993,8 +49584,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.name = ISchemaName() - self.name.read(iprot) + self.rqst = FindSchemasByColsRqst() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -48006,10 +49597,10 @@ 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_ischema_args') - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRUCT, 1) - self.name.write(oprot) + oprot.writeStructBegin('get_schemas_by_cols_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48020,7 +49611,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.name) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -48034,24 +49625,21 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_ischema_result: +class get_schemas_by_cols_result: """ Attributes: - success - o1 - - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ISchema, ISchema.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (FindSchemasByColsResp, FindSchemasByColsResp.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=None, o1=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: @@ -48064,11 +49652,151 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ISchema() + self.success = FindSchemasByColsResp() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.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_schemas_by_cols_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + return value + + 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 map_schema_version_to_serde_args: + """ + Attributes: + - rqst + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (MapSchemaVersionToSerdeRequest, MapSchemaVersionToSerdeRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, rqst=None,): + self.rqst = rqst + + 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.STRUCT: + self.rqst = MapSchemaVersionToSerdeRequest() + self.rqst.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('map_schema_version_to_serde_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.rqst) + return value + + 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 map_schema_version_to_serde_result: + """ + Attributes: + - o1 + - o2 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, o1=None, o2=None,): + 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 == 1: if ftype == TType.STRUCT: self.o1 = NoSuchObjectException() self.o1.read(iprot) @@ -48089,11 +49817,7 @@ 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_ischema_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('map_schema_version_to_serde_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -48111,7 +49835,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) return value @@ -48127,19 +49850,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_ischema_args: +class set_schema_version_state_args: """ Attributes: - - name + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'name', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (SetSchemaVersionStateRequest, SetSchemaVersionStateRequest.thrift_spec), None, ), # 1 ) - def __init__(self, name=None,): - self.name = name + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -48152,8 +49875,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.name = ISchemaName() - self.name.read(iprot) + self.rqst = SetSchemaVersionStateRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -48165,10 +49888,10 @@ 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('drop_ischema_args') - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRUCT, 1) - self.name.write(oprot) + oprot.writeStructBegin('set_schema_version_state_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48179,7 +49902,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.name) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -48193,7 +49916,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_ischema_result: +class set_schema_version_state_result: """ Attributes: - o1 @@ -48249,7 +49972,7 @@ 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('drop_ischema_result') + oprot.writeStructBegin('set_schema_version_state_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -48287,19 +50010,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_schema_version_args: +class add_serde_args: """ Attributes: - - schemaVersion + - serde """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'schemaVersion', (SchemaVersion, SchemaVersion.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'serde', (SerDeInfo, SerDeInfo.thrift_spec), None, ), # 1 ) - def __init__(self, schemaVersion=None,): - self.schemaVersion = schemaVersion + def __init__(self, serde=None,): + self.serde = serde 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: @@ -48312,8 +50035,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.schemaVersion = SchemaVersion() - self.schemaVersion.read(iprot) + self.serde = SerDeInfo() + self.serde.read(iprot) else: iprot.skip(ftype) else: @@ -48325,10 +50048,10 @@ 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('add_schema_version_args') - if self.schemaVersion is not None: - oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) - self.schemaVersion.write(oprot) + oprot.writeStructBegin('add_serde_args') + if self.serde is not None: + oprot.writeFieldBegin('serde', TType.STRUCT, 1) + self.serde.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48339,7 +50062,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.schemaVersion) + value = (value * 31) ^ hash(self.serde) return value def __repr__(self): @@ -48353,25 +50076,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_schema_version_result: +class add_serde_result: """ Attributes: - o1 - o2 - - o3 """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None, o2=None, o3=None,): + def __init__(self, o1=None, o2=None,): self.o1 = o1 self.o2 = o2 - self.o3 = o3 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: @@ -48390,16 +50110,10 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException() + self.o2 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException() - self.o3.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -48409,7 +50123,7 @@ 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('add_schema_version_result') + oprot.writeStructBegin('add_serde_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -48418,10 +50132,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48433,7 +50143,6 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -48447,19 +50156,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_version_args: +class get_serde_args: """ Attributes: - - schemaVersion + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'schemaVersion', (SchemaVersionDescriptor, SchemaVersionDescriptor.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (GetSerdeRequest, GetSerdeRequest.thrift_spec), None, ), # 1 ) - def __init__(self, schemaVersion=None,): - self.schemaVersion = schemaVersion + def __init__(self, rqst=None,): + self.rqst = rqst 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: @@ -48472,8 +50181,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.schemaVersion = SchemaVersionDescriptor() - self.schemaVersion.read(iprot) + self.rqst = GetSerdeRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -48485,10 +50194,10 @@ 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_schema_version_args') - if self.schemaVersion is not None: - oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) - self.schemaVersion.write(oprot) + oprot.writeStructBegin('get_serde_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48499,7 +50208,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.schemaVersion) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -48513,7 +50222,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_version_result: +class get_serde_result: """ Attributes: - success @@ -48522,7 +50231,7 @@ class get_schema_version_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (SchemaVersion, SchemaVersion.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (SerDeInfo, SerDeInfo.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) @@ -48543,7 +50252,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = SchemaVersion() + self.success = SerDeInfo() self.success.read(iprot) else: iprot.skip(ftype) @@ -48568,7 +50277,7 @@ 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_schema_version_result') + oprot.writeStructBegin('get_serde_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -48606,19 +50315,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_latest_version_args: +class get_lock_materialization_rebuild_args: """ Attributes: - - schemaName + - dbName + - tableName + - txnId """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'schemaName', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tableName', None, None, ), # 2 + (3, TType.I64, 'txnId', None, None, ), # 3 ) - def __init__(self, schemaName=None,): - self.schemaName = schemaName + def __init__(self, dbName=None, tableName=None, txnId=None,): + self.dbName = dbName + self.tableName = tableName + self.txnId = txnId 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: @@ -48630,9 +50345,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.schemaName = ISchemaName() - self.schemaName.read(iprot) + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tableName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.txnId = iprot.readI64() else: iprot.skip(ftype) else: @@ -48644,10 +50368,18 @@ 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_schema_latest_version_args') - if self.schemaName is not None: - oprot.writeFieldBegin('schemaName', TType.STRUCT, 1) - self.schemaName.write(oprot) + oprot.writeStructBegin('get_lock_materialization_rebuild_args') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName) + oprot.writeFieldEnd() + if self.txnId is not None: + oprot.writeFieldBegin('txnId', TType.I64, 3) + oprot.writeI64(self.txnId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48658,7 +50390,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.schemaName) + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tableName) + value = (value * 31) ^ hash(self.txnId) return value def __repr__(self): @@ -48672,24 +50406,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_latest_version_result: +class get_lock_materialization_rebuild_result: """ Attributes: - success - - o1 - - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (SchemaVersion, SchemaVersion.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=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: @@ -48702,22 +50430,10 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = SchemaVersion() + self.success = LockResponse() self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() - 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() @@ -48727,19 +50443,11 @@ 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_schema_latest_version_result') + oprot.writeStructBegin('get_lock_materialization_rebuild_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() @@ -48750,8 +50458,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -48765,19 +50471,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_all_versions_args: +class heartbeat_lock_materialization_rebuild_args: """ Attributes: - - schemaName + - dbName + - tableName + - txnId """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'schemaName', (ISchemaName, ISchemaName.thrift_spec), None, ), # 1 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tableName', None, None, ), # 2 + (3, TType.I64, 'txnId', None, None, ), # 3 ) - def __init__(self, schemaName=None,): - self.schemaName = schemaName + def __init__(self, dbName=None, tableName=None, txnId=None,): + self.dbName = dbName + self.tableName = tableName + self.txnId = txnId 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: @@ -48789,9 +50501,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.schemaName = ISchemaName() - self.schemaName.read(iprot) + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tableName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.txnId = iprot.readI64() else: iprot.skip(ftype) else: @@ -48803,10 +50524,18 @@ 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_schema_all_versions_args') - if self.schemaName is not None: - oprot.writeFieldBegin('schemaName', TType.STRUCT, 1) - self.schemaName.write(oprot) + oprot.writeStructBegin('heartbeat_lock_materialization_rebuild_args') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName) + oprot.writeFieldEnd() + if self.txnId is not None: + oprot.writeFieldBegin('txnId', TType.I64, 3) + oprot.writeI64(self.txnId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48817,7 +50546,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.schemaName) + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tableName) + value = (value * 31) ^ hash(self.txnId) return value def __repr__(self): @@ -48831,24 +50562,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schema_all_versions_result: +class heartbeat_lock_materialization_rebuild_result: """ Attributes: - success - - o1 - - o2 """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(SchemaVersion, SchemaVersion.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.BOOL, 'success', None, None, ), # 0 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=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: @@ -48860,26 +50585,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1370, _size1367) = iprot.readListBegin() - for _i1371 in xrange(_size1367): - _elem1372 = SchemaVersion() - _elem1372.read(iprot) - self.success.append(_elem1372) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = MetaException() - self.o2.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) else: @@ -48891,21 +50598,10 @@ 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_schema_all_versions_result') + oprot.writeStructBegin('heartbeat_lock_materialization_rebuild_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1373 in self.success: - iter1373.write(oprot) - oprot.writeListEnd() - 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.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48917,8 +50613,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -48932,19 +50626,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_schema_version_args: +class add_runtime_stats_args: """ Attributes: - - schemaVersion + - stat """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'schemaVersion', (SchemaVersionDescriptor, SchemaVersionDescriptor.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'stat', (RuntimeStat, RuntimeStat.thrift_spec), None, ), # 1 ) - def __init__(self, schemaVersion=None,): - self.schemaVersion = schemaVersion + def __init__(self, stat=None,): + self.stat = stat 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: @@ -48957,8 +50651,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.schemaVersion = SchemaVersionDescriptor() - self.schemaVersion.read(iprot) + self.stat = RuntimeStat() + self.stat.read(iprot) else: iprot.skip(ftype) else: @@ -48970,10 +50664,10 @@ 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('drop_schema_version_args') - if self.schemaVersion is not None: - oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) - self.schemaVersion.write(oprot) + oprot.writeStructBegin('add_runtime_stats_args') + if self.stat is not None: + oprot.writeFieldBegin('stat', TType.STRUCT, 1) + self.stat.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48984,7 +50678,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.schemaVersion) + value = (value * 31) ^ hash(self.stat) return value def __repr__(self): @@ -48998,22 +50692,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_schema_version_result: +class add_runtime_stats_result: """ Attributes: - o1 - - o2 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, o1=None,): 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: @@ -49026,16 +50717,10 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = MetaException() 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() @@ -49045,15 +50730,11 @@ 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('drop_schema_version_result') + oprot.writeStructBegin('add_runtime_stats_result') 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() @@ -49064,7 +50745,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -49078,7 +50758,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schemas_by_cols_args: +class get_runtime_stats_args: """ Attributes: - rqst @@ -49086,7 +50766,7 @@ class get_schemas_by_cols_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (FindSchemasByColsRqst, FindSchemasByColsRqst.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (GetRuntimeStatsRequest, GetRuntimeStatsRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -49103,7 +50783,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = FindSchemasByColsRqst() + self.rqst = GetRuntimeStatsRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -49116,7 +50796,7 @@ 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_schemas_by_cols_args') + oprot.writeStructBegin('get_runtime_stats_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -49144,7 +50824,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_schemas_by_cols_result: +class get_runtime_stats_result: """ Attributes: - success @@ -49152,7 +50832,7 @@ class get_schemas_by_cols_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (FindSchemasByColsResp, FindSchemasByColsResp.thrift_spec), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(RuntimeStat, RuntimeStat.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -49170,9 +50850,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = FindSchemasByColsResp() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1386, _size1383) = iprot.readListBegin() + for _i1387 in xrange(_size1383): + _elem1388 = RuntimeStat() + _elem1388.read(iprot) + self.success.append(_elem1388) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -49190,10 +50875,13 @@ 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_schemas_by_cols_result') + oprot.writeStructBegin('get_runtime_stats_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1389 in self.success: + iter1389.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -49223,19 +50911,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class map_schema_version_to_serde_args: +class get_partitions_with_specs_args: """ Attributes: - - rqst + - request """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (MapSchemaVersionToSerdeRequest, MapSchemaVersionToSerdeRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (GetPartitionsRequest, GetPartitionsRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, request=None,): + self.request = request 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: @@ -49248,8 +50936,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = MapSchemaVersionToSerdeRequest() - self.rqst.read(iprot) + self.request = GetPartitionsRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -49261,10 +50949,10 @@ 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('map_schema_version_to_serde_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('get_partitions_with_specs_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49275,7 +50963,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -49289,22 +50977,21 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class map_schema_version_to_serde_result: +class get_partitions_with_specs_result: """ Attributes: + - success - o1 - - o2 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (GetPartitionsResponse, GetPartitionsResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, success=None, o1=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: @@ -49315,16 +51002,16 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() - self.o1.read(iprot) + self.success = GetPartitionsResponse() + self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 2: + elif fid == 1: if ftype == TType.STRUCT: - self.o2 = MetaException() - self.o2.read(iprot) + self.o1 = MetaException() + self.o1.read(iprot) else: iprot.skip(ftype) else: @@ -49336,15 +51023,15 @@ 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('map_schema_version_to_serde_result') + oprot.writeStructBegin('get_partitions_with_specs_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() @@ -49354,8 +51041,8 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -49369,19 +51056,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class set_schema_version_state_args: +class find_next_compact_args: """ Attributes: - - rqst + - workerId """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (SetSchemaVersionStateRequest, SetSchemaVersionStateRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'workerId', None, None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, workerId=None,): + self.workerId = workerId 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: @@ -49393,9 +51080,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.rqst = SetSchemaVersionStateRequest() - self.rqst.read(iprot) + if ftype == TType.STRING: + self.workerId = iprot.readString() else: iprot.skip(ftype) else: @@ -49407,10 +51093,10 @@ 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('set_schema_version_state_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('find_next_compact_args') + if self.workerId is not None: + oprot.writeFieldBegin('workerId', TType.STRING, 1) + oprot.writeString(self.workerId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49421,7 +51107,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.workerId) return value def __repr__(self): @@ -49435,25 +51121,21 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class set_schema_version_state_result: +class find_next_compact_result: """ Attributes: + - success - o1 - - o2 - - o3 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3 + (0, TType.STRUCT, 'success', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, o1=None, o2=None, o3=None,): + def __init__(self, success=None, o1=None,): + self.success = success self.o1 = o1 - self.o2 = o2 - self.o3 = o3 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: @@ -49464,22 +51146,16 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: + if fid == 0: if ftype == TType.STRUCT: - self.o2 = InvalidOperationException() - self.o2.read(iprot) + self.success = CompactionInfoStruct() + self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 3: + elif fid == 1: if ftype == TType.STRUCT: - self.o3 = MetaException() - self.o3.read(iprot) + self.o1 = MetaException() + self.o1.read(iprot) else: iprot.skip(ftype) else: @@ -49491,19 +51167,15 @@ 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('set_schema_version_state_result') + oprot.writeStructBegin('find_next_compact_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() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49513,9 +51185,8 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -49529,19 +51200,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_serde_args: +class set_compaction_highest_writeid_args: """ Attributes: - - serde + - cr + - high_watermark """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'serde', (SerDeInfo, SerDeInfo.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 + (2, TType.I64, 'high_watermark', None, None, ), # 2 ) - def __init__(self, serde=None,): - self.serde = serde + def __init__(self, cr=None, high_watermark=None,): + self.cr = cr + self.high_watermark = high_watermark 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: @@ -49554,8 +51228,13 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.serde = SerDeInfo() - self.serde.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.high_watermark = iprot.readI64() else: iprot.skip(ftype) else: @@ -49567,10 +51246,14 @@ 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('add_serde_args') - if self.serde is not None: - oprot.writeFieldBegin('serde', TType.STRUCT, 1) - self.serde.write(oprot) + oprot.writeStructBegin('set_compaction_highest_writeid_args') + if self.cr is not None: + oprot.writeFieldBegin('cr', TType.STRUCT, 1) + self.cr.write(oprot) + oprot.writeFieldEnd() + if self.high_watermark is not None: + oprot.writeFieldBegin('high_watermark', TType.I64, 2) + oprot.writeI64(self.high_watermark) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49581,7 +51264,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.serde) + value = (value * 31) ^ hash(self.cr) + value = (value * 31) ^ hash(self.high_watermark) return value def __repr__(self): @@ -49595,23 +51279,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_serde_result: - """ - Attributes: - - o1 - - o2 - """ +class set_compaction_highest_writeid_result: thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (AlreadyExistsException, AlreadyExistsException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None, o2=None,): - 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)) @@ -49621,18 +51293,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException() - 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() @@ -49642,15 +51302,7 @@ 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('add_serde_result') - 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.writeStructBegin('set_compaction_highest_writeid_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -49660,8 +51312,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -49675,19 +51325,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_serde_args: +class set_run_as_args: """ Attributes: - - rqst + - cq_id + - user """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (GetSerdeRequest, GetSerdeRequest.thrift_spec), None, ), # 1 + (1, TType.I64, 'cq_id', None, None, ), # 1 + (2, TType.STRING, 'user', None, None, ), # 2 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, cq_id=None, user=None,): + self.cq_id = cq_id + self.user = user 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: @@ -49699,9 +51352,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.rqst = GetSerdeRequest() - self.rqst.read(iprot) + if ftype == TType.I64: + self.cq_id = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.user = iprot.readString() else: iprot.skip(ftype) else: @@ -49713,10 +51370,14 @@ 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_serde_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('set_run_as_args') + if self.cq_id is not None: + oprot.writeFieldBegin('cq_id', TType.I64, 1) + oprot.writeI64(self.cq_id) + oprot.writeFieldEnd() + if self.user is not None: + oprot.writeFieldBegin('user', TType.STRING, 2) + oprot.writeString(self.user) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49727,7 +51388,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.cq_id) + value = (value * 31) ^ hash(self.user) return value def __repr__(self): @@ -49741,25 +51403,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_serde_result: - """ - Attributes: - - success - - o1 - - o2 - """ +class set_run_as_result: thrift_spec = ( - (0, TType.STRUCT, 'success', (SerDeInfo, SerDeInfo.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.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)) @@ -49769,24 +51417,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = SerDeInfo() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() - 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() @@ -49796,19 +51426,7 @@ 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_serde_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.writeStructBegin('set_run_as_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -49818,9 +51436,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -49834,25 +51449,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_lock_materialization_rebuild_args: +class find_columns_with_stats_args: """ Attributes: - - dbName - - tableName - - txnId + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'dbName', None, None, ), # 1 - (2, TType.STRING, 'tableName', None, None, ), # 2 - (3, TType.I64, 'txnId', None, None, ), # 3 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 ) - def __init__(self, dbName=None, tableName=None, txnId=None,): - self.dbName = dbName - self.tableName = tableName - self.txnId = txnId + def __init__(self, cr=None,): + self.cr = cr 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: @@ -49864,18 +51473,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tableName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I64: - self.txnId = iprot.readI64() + if ftype == TType.STRUCT: + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -49887,18 +51487,10 @@ 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_lock_materialization_rebuild_args') - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 1) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin('tableName', TType.STRING, 2) - oprot.writeString(self.tableName) - oprot.writeFieldEnd() - if self.txnId is not None: - oprot.writeFieldBegin('txnId', TType.I64, 3) - oprot.writeI64(self.txnId) + oprot.writeStructBegin('find_columns_with_stats_args') + if self.cr is not None: + oprot.writeFieldBegin('cr', TType.STRUCT, 1) + self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49909,9 +51501,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.txnId) + value = (value * 31) ^ hash(self.cr) return value def __repr__(self): @@ -49925,14 +51515,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_lock_materialization_rebuild_result: +class find_columns_with_stats_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 ) def __init__(self, success=None,): @@ -49948,9 +51538,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = LockResponse() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1393, _size1390) = iprot.readListBegin() + for _i1394 in xrange(_size1390): + _elem1395 = iprot.readString() + self.success.append(_elem1395) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -49962,10 +51556,13 @@ 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_lock_materialization_rebuild_result') + oprot.writeStructBegin('find_columns_with_stats_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1396 in self.success: + oprot.writeString(iter1396) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49990,25 +51587,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_lock_materialization_rebuild_args: +class mark_cleaned_args: """ Attributes: - - dbName - - tableName - - txnId + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'dbName', None, None, ), # 1 - (2, TType.STRING, 'tableName', None, None, ), # 2 - (3, TType.I64, 'txnId', None, None, ), # 3 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 ) - def __init__(self, dbName=None, tableName=None, txnId=None,): - self.dbName = dbName - self.tableName = tableName - self.txnId = txnId + def __init__(self, cr=None,): + self.cr = cr 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: @@ -50020,18 +51611,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tableName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I64: - self.txnId = iprot.readI64() + if ftype == TType.STRUCT: + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -50043,18 +51625,10 @@ 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('heartbeat_lock_materialization_rebuild_args') - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 1) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin('tableName', TType.STRING, 2) - oprot.writeString(self.tableName) - oprot.writeFieldEnd() - if self.txnId is not None: - oprot.writeFieldBegin('txnId', TType.I64, 3) - oprot.writeI64(self.txnId) + oprot.writeStructBegin('mark_cleaned_args') + if self.cr is not None: + oprot.writeFieldBegin('cr', TType.STRUCT, 1) + self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50065,9 +51639,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.txnId) + value = (value * 31) ^ hash(self.cr) return value def __repr__(self): @@ -50081,18 +51653,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_lock_materialization_rebuild_result: +class mark_cleaned_result: """ Attributes: - - success + - o1 """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + None, # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None,): - self.success = success + def __init__(self, o1=None,): + self.o1 = o1 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: @@ -50103,9 +51676,10 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) else: iprot.skip(ftype) else: @@ -50117,10 +51691,10 @@ 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('heartbeat_lock_materialization_rebuild_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeStructBegin('mark_cleaned_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50131,7 +51705,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) return value def __repr__(self): @@ -50145,19 +51719,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_runtime_stats_args: +class mark_compacted_args: """ Attributes: - - stat + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'stat', (RuntimeStat, RuntimeStat.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 ) - def __init__(self, stat=None,): - self.stat = stat + def __init__(self, cr=None,): + self.cr = cr 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: @@ -50170,8 +51744,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.stat = RuntimeStat() - self.stat.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -50183,10 +51757,10 @@ 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('add_runtime_stats_args') - if self.stat is not None: - oprot.writeFieldBegin('stat', TType.STRUCT, 1) - self.stat.write(oprot) + oprot.writeStructBegin('mark_compacted_args') + if self.cr is not None: + oprot.writeFieldBegin('cr', TType.STRUCT, 1) + self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50197,7 +51771,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.stat) + value = (value * 31) ^ hash(self.cr) return value def __repr__(self): @@ -50211,7 +51785,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_runtime_stats_result: +class mark_compacted_result: """ Attributes: - o1 @@ -50249,7 +51823,7 @@ 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('add_runtime_stats_result') + oprot.writeStructBegin('mark_compacted_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -50277,19 +51851,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_runtime_stats_args: +class mark_failed_args: """ Attributes: - - rqst + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (GetRuntimeStatsRequest, GetRuntimeStatsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, cr=None,): + self.cr = cr 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: @@ -50302,8 +51876,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = GetRuntimeStatsRequest() - self.rqst.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -50315,10 +51889,10 @@ 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_runtime_stats_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('mark_failed_args') + if self.cr is not None: + oprot.writeFieldBegin('cr', TType.STRUCT, 1) + self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50329,7 +51903,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.cr) return value def __repr__(self): @@ -50343,20 +51917,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_runtime_stats_result: +class mark_failed_result: """ Attributes: - - success - o1 """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(RuntimeStat, RuntimeStat.thrift_spec)), None, ), # 0 + None, # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None,): - self.success = success + def __init__(self, o1=None,): self.o1 = o1 def read(self, iprot): @@ -50368,18 +51940,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1377, _size1374) = iprot.readListBegin() - for _i1378 in xrange(_size1374): - _elem1379 = RuntimeStat() - _elem1379.read(iprot) - self.success.append(_elem1379) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = MetaException() self.o1.read(iprot) @@ -50394,14 +51955,7 @@ 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_runtime_stats_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1380 in self.success: - iter1380.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() + oprot.writeStructBegin('mark_failed_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -50415,7 +51969,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) return value @@ -50430,19 +51983,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_with_specs_args: +class set_hadoop_jobid_args: """ Attributes: - - request + - jobId + - cq_id """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (GetPartitionsRequest, GetPartitionsRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'jobId', None, None, ), # 1 + (2, TType.I64, 'cq_id', None, None, ), # 2 ) - def __init__(self, request=None,): - self.request = request + def __init__(self, jobId=None, cq_id=None,): + self.jobId = jobId + self.cq_id = cq_id 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: @@ -50454,9 +52010,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = GetPartitionsRequest() - self.request.read(iprot) + if ftype == TType.STRING: + self.jobId = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.cq_id = iprot.readI64() else: iprot.skip(ftype) else: @@ -50468,10 +52028,14 @@ 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_partitions_with_specs_args') - if self.request is not None: - oprot.writeFieldBegin('request', TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('set_hadoop_jobid_args') + if self.jobId is not None: + oprot.writeFieldBegin('jobId', TType.STRING, 1) + oprot.writeString(self.jobId) + oprot.writeFieldEnd() + if self.cq_id is not None: + oprot.writeFieldBegin('cq_id', TType.I64, 2) + oprot.writeI64(self.cq_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50482,7 +52046,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.request) + value = (value * 31) ^ hash(self.jobId) + value = (value * 31) ^ hash(self.cq_id) return value def __repr__(self): @@ -50496,22 +52061,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_with_specs_result: - """ - Attributes: - - success - - o1 - """ +class set_hadoop_jobid_result: thrift_spec = ( - (0, TType.STRUCT, 'success', (GetPartitionsResponse, GetPartitionsResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None,): - self.success = success - self.o1 = o1 - 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)) @@ -50521,18 +52075,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = GetPartitionsResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException() - self.o1.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -50542,15 +52084,7 @@ 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_partitions_with_specs_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() + oprot.writeStructBegin('set_hadoop_jobid_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -50560,8 +52094,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) return value def __repr__(self): diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py index bdfb480723..fab9639209 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -14547,6 +14547,159 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class CompactionInfoStruct: + """ + Attributes: + - id + - dbname + - tablename + - partitionname + - type + - runas + - properties + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.STRING, 'dbname', None, None, ), # 2 + (3, TType.STRING, 'tablename', None, None, ), # 3 + (4, TType.STRING, 'partitionname', None, None, ), # 4 + (5, TType.I32, 'type', None, None, ), # 5 + (6, TType.STRING, 'runas', None, None, ), # 6 + (7, TType.MAP, 'properties', (TType.STRING,None,TType.STRING,None), None, ), # 7 + ) + + def __init__(self, id=None, dbname=None, tablename=None, partitionname=None, type=None, runas=None, properties=None,): + self.id = id + self.dbname = dbname + self.tablename = tablename + self.partitionname = partitionname + self.type = type + self.runas = runas + self.properties = properties + + 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.I64: + self.id = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbname = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tablename = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.partitionname = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.runas = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.MAP: + self.properties = {} + (_ktype624, _vtype625, _size623 ) = iprot.readMapBegin() + for _i627 in xrange(_size623): + _key628 = iprot.readString() + _val629 = iprot.readString() + self.properties[_key628] = _val629 + iprot.readMapEnd() + 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('CompactionInfoStruct') + if self.id is not None: + oprot.writeFieldBegin('id', TType.I64, 1) + oprot.writeI64(self.id) + oprot.writeFieldEnd() + if self.dbname is not None: + oprot.writeFieldBegin('dbname', TType.STRING, 2) + oprot.writeString(self.dbname) + oprot.writeFieldEnd() + if self.tablename is not None: + oprot.writeFieldBegin('tablename', TType.STRING, 3) + oprot.writeString(self.tablename) + oprot.writeFieldEnd() + if self.partitionname is not None: + oprot.writeFieldBegin('partitionname', TType.STRING, 4) + oprot.writeString(self.partitionname) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 5) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.runas is not None: + oprot.writeFieldBegin('runas', TType.STRING, 6) + oprot.writeString(self.runas) + oprot.writeFieldEnd() + if self.properties is not None: + oprot.writeFieldBegin('properties', TType.MAP, 7) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) + for kiter630,viter631 in self.properties.items(): + oprot.writeString(kiter630) + oprot.writeString(viter631) + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.id) + value = (value * 31) ^ hash(self.dbname) + value = (value * 31) ^ hash(self.tablename) + value = (value * 31) ^ hash(self.partitionname) + value = (value * 31) ^ hash(self.type) + value = (value * 31) ^ hash(self.runas) + value = (value * 31) ^ hash(self.properties) + return value + + 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 CompactionResponse: """ Attributes: @@ -14945,11 +15098,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype626, _size623) = iprot.readListBegin() - for _i627 in xrange(_size623): - _elem628 = ShowCompactResponseElement() - _elem628.read(iprot) - self.compacts.append(_elem628) + (_etype635, _size632) = iprot.readListBegin() + for _i636 in xrange(_size632): + _elem637 = ShowCompactResponseElement() + _elem637.read(iprot) + self.compacts.append(_elem637) iprot.readListEnd() else: iprot.skip(ftype) @@ -14966,8 +15119,8 @@ def write(self, oprot): if self.compacts is not None: oprot.writeFieldBegin('compacts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.compacts)) - for iter629 in self.compacts: - iter629.write(oprot) + for iter638 in self.compacts: + iter638.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15056,10 +15209,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionnames = [] - (_etype633, _size630) = iprot.readListBegin() - for _i634 in xrange(_size630): - _elem635 = iprot.readString() - self.partitionnames.append(_elem635) + (_etype642, _size639) = iprot.readListBegin() + for _i643 in xrange(_size639): + _elem644 = iprot.readString() + self.partitionnames.append(_elem644) iprot.readListEnd() else: iprot.skip(ftype) @@ -15097,8 +15250,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter636 in self.partitionnames: - oprot.writeString(iter636) + for iter645 in self.partitionnames: + oprot.writeString(iter645) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -15331,10 +15484,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.SET: self.tablesUsed = set() - (_etype640, _size637) = iprot.readSetBegin() - for _i641 in xrange(_size637): - _elem642 = iprot.readString() - self.tablesUsed.add(_elem642) + (_etype649, _size646) = iprot.readSetBegin() + for _i650 in xrange(_size646): + _elem651 = iprot.readString() + self.tablesUsed.add(_elem651) iprot.readSetEnd() else: iprot.skip(ftype) @@ -15373,8 +15526,8 @@ def write(self, oprot): if self.tablesUsed is not None: oprot.writeFieldBegin('tablesUsed', TType.SET, 4) oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) - for iter643 in self.tablesUsed: - oprot.writeString(iter643) + for iter652 in self.tablesUsed: + oprot.writeString(iter652) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -15691,11 +15844,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype647, _size644) = iprot.readListBegin() - for _i648 in xrange(_size644): - _elem649 = NotificationEvent() - _elem649.read(iprot) - self.events.append(_elem649) + (_etype656, _size653) = iprot.readListBegin() + for _i657 in xrange(_size653): + _elem658 = NotificationEvent() + _elem658.read(iprot) + self.events.append(_elem658) iprot.readListEnd() else: iprot.skip(ftype) @@ -15712,8 +15865,8 @@ def write(self, oprot): if self.events is not None: oprot.writeFieldBegin('events', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.events)) - for iter650 in self.events: - iter650.write(oprot) + for iter659 in self.events: + iter659.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16036,30 +16189,30 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype654, _size651) = iprot.readListBegin() - for _i655 in xrange(_size651): - _elem656 = iprot.readString() - self.filesAdded.append(_elem656) + (_etype663, _size660) = iprot.readListBegin() + for _i664 in xrange(_size660): + _elem665 = iprot.readString() + self.filesAdded.append(_elem665) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype660, _size657) = iprot.readListBegin() - for _i661 in xrange(_size657): - _elem662 = iprot.readString() - self.filesAddedChecksum.append(_elem662) + (_etype669, _size666) = iprot.readListBegin() + for _i670 in xrange(_size666): + _elem671 = iprot.readString() + self.filesAddedChecksum.append(_elem671) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.subDirectoryList = [] - (_etype666, _size663) = iprot.readListBegin() - for _i667 in xrange(_size663): - _elem668 = iprot.readString() - self.subDirectoryList.append(_elem668) + (_etype675, _size672) = iprot.readListBegin() + for _i676 in xrange(_size672): + _elem677 = iprot.readString() + self.subDirectoryList.append(_elem677) iprot.readListEnd() else: iprot.skip(ftype) @@ -16080,22 +16233,22 @@ def write(self, oprot): if self.filesAdded is not None: oprot.writeFieldBegin('filesAdded', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.filesAdded)) - for iter669 in self.filesAdded: - oprot.writeString(iter669) + for iter678 in self.filesAdded: + oprot.writeString(iter678) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter670 in self.filesAddedChecksum: - oprot.writeString(iter670) + for iter679 in self.filesAddedChecksum: + oprot.writeString(iter679) oprot.writeListEnd() oprot.writeFieldEnd() if self.subDirectoryList is not None: oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) - for iter671 in self.subDirectoryList: - oprot.writeString(iter671) + for iter680 in self.subDirectoryList: + oprot.writeString(iter680) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16254,10 +16407,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype675, _size672) = iprot.readListBegin() - for _i676 in xrange(_size672): - _elem677 = iprot.readString() - self.partitionVals.append(_elem677) + (_etype684, _size681) = iprot.readListBegin() + for _i685 in xrange(_size681): + _elem686 = iprot.readString() + self.partitionVals.append(_elem686) iprot.readListEnd() else: iprot.skip(ftype) @@ -16295,8 +16448,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter678 in self.partitionVals: - oprot.writeString(iter678) + for iter687 in self.partitionVals: + oprot.writeString(iter687) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -16448,10 +16601,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionVals = [] - (_etype682, _size679) = iprot.readListBegin() - for _i683 in xrange(_size679): - _elem684 = iprot.readString() - self.partitionVals.append(_elem684) + (_etype691, _size688) = iprot.readListBegin() + for _i692 in xrange(_size688): + _elem693 = iprot.readString() + self.partitionVals.append(_elem693) iprot.readListEnd() else: iprot.skip(ftype) @@ -16488,8 +16641,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter685 in self.partitionVals: - oprot.writeString(iter685) + for iter694 in self.partitionVals: + oprot.writeString(iter694) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16683,12 +16836,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype687, _vtype688, _size686 ) = iprot.readMapBegin() - for _i690 in xrange(_size686): - _key691 = iprot.readI64() - _val692 = MetadataPpdResult() - _val692.read(iprot) - self.metadata[_key691] = _val692 + (_ktype696, _vtype697, _size695 ) = iprot.readMapBegin() + for _i699 in xrange(_size695): + _key700 = iprot.readI64() + _val701 = MetadataPpdResult() + _val701.read(iprot) + self.metadata[_key700] = _val701 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16710,9 +16863,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.metadata)) - for kiter693,viter694 in self.metadata.items(): - oprot.writeI64(kiter693) - viter694.write(oprot) + for kiter702,viter703 in self.metadata.items(): + oprot.writeI64(kiter702) + viter703.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -16782,10 +16935,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype698, _size695) = iprot.readListBegin() - for _i699 in xrange(_size695): - _elem700 = iprot.readI64() - self.fileIds.append(_elem700) + (_etype707, _size704) = iprot.readListBegin() + for _i708 in xrange(_size704): + _elem709 = iprot.readI64() + self.fileIds.append(_elem709) iprot.readListEnd() else: iprot.skip(ftype) @@ -16817,8 +16970,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter701 in self.fileIds: - oprot.writeI64(iter701) + for iter710 in self.fileIds: + oprot.writeI64(iter710) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -16892,11 +17045,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype703, _vtype704, _size702 ) = iprot.readMapBegin() - for _i706 in xrange(_size702): - _key707 = iprot.readI64() - _val708 = iprot.readString() - self.metadata[_key707] = _val708 + (_ktype712, _vtype713, _size711 ) = iprot.readMapBegin() + for _i715 in xrange(_size711): + _key716 = iprot.readI64() + _val717 = iprot.readString() + self.metadata[_key716] = _val717 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16918,9 +17071,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRING, len(self.metadata)) - for kiter709,viter710 in self.metadata.items(): - oprot.writeI64(kiter709) - oprot.writeString(viter710) + for kiter718,viter719 in self.metadata.items(): + oprot.writeI64(kiter718) + oprot.writeString(viter719) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -16981,10 +17134,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype714, _size711) = iprot.readListBegin() - for _i715 in xrange(_size711): - _elem716 = iprot.readI64() - self.fileIds.append(_elem716) + (_etype723, _size720) = iprot.readListBegin() + for _i724 in xrange(_size720): + _elem725 = iprot.readI64() + self.fileIds.append(_elem725) iprot.readListEnd() else: iprot.skip(ftype) @@ -17001,8 +17154,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter717 in self.fileIds: - oprot.writeI64(iter717) + for iter726 in self.fileIds: + oprot.writeI64(iter726) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17108,20 +17261,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype721, _size718) = iprot.readListBegin() - for _i722 in xrange(_size718): - _elem723 = iprot.readI64() - self.fileIds.append(_elem723) + (_etype730, _size727) = iprot.readListBegin() + for _i731 in xrange(_size727): + _elem732 = iprot.readI64() + self.fileIds.append(_elem732) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype727, _size724) = iprot.readListBegin() - for _i728 in xrange(_size724): - _elem729 = iprot.readString() - self.metadata.append(_elem729) + (_etype736, _size733) = iprot.readListBegin() + for _i737 in xrange(_size733): + _elem738 = iprot.readString() + self.metadata.append(_elem738) iprot.readListEnd() else: iprot.skip(ftype) @@ -17143,15 +17296,15 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter730 in self.fileIds: - oprot.writeI64(iter730) + for iter739 in self.fileIds: + oprot.writeI64(iter739) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter731 in self.metadata: - oprot.writeString(iter731) + for iter740 in self.metadata: + oprot.writeString(iter740) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -17259,10 +17412,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype735, _size732) = iprot.readListBegin() - for _i736 in xrange(_size732): - _elem737 = iprot.readI64() - self.fileIds.append(_elem737) + (_etype744, _size741) = iprot.readListBegin() + for _i745 in xrange(_size741): + _elem746 = iprot.readI64() + self.fileIds.append(_elem746) iprot.readListEnd() else: iprot.skip(ftype) @@ -17279,8 +17432,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter738 in self.fileIds: - oprot.writeI64(iter738) + for iter747 in self.fileIds: + oprot.writeI64(iter747) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17509,11 +17662,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype742, _size739) = iprot.readListBegin() - for _i743 in xrange(_size739): - _elem744 = Function() - _elem744.read(iprot) - self.functions.append(_elem744) + (_etype751, _size748) = iprot.readListBegin() + for _i752 in xrange(_size748): + _elem753 = Function() + _elem753.read(iprot) + self.functions.append(_elem753) iprot.readListEnd() else: iprot.skip(ftype) @@ -17530,8 +17683,8 @@ def write(self, oprot): if self.functions is not None: oprot.writeFieldBegin('functions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.functions)) - for iter745 in self.functions: - iter745.write(oprot) + for iter754 in self.functions: + iter754.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17583,10 +17736,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype749, _size746) = iprot.readListBegin() - for _i750 in xrange(_size746): - _elem751 = iprot.readI32() - self.values.append(_elem751) + (_etype758, _size755) = iprot.readListBegin() + for _i759 in xrange(_size755): + _elem760 = iprot.readI32() + self.values.append(_elem760) iprot.readListEnd() else: iprot.skip(ftype) @@ -17603,8 +17756,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.I32, len(self.values)) - for iter752 in self.values: - oprot.writeI32(iter752) + for iter761 in self.values: + oprot.writeI32(iter761) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17876,10 +18029,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype756, _size753) = iprot.readListBegin() - for _i757 in xrange(_size753): - _elem758 = iprot.readString() - self.tblNames.append(_elem758) + (_etype765, _size762) = iprot.readListBegin() + for _i766 in xrange(_size762): + _elem767 = iprot.readString() + self.tblNames.append(_elem767) iprot.readListEnd() else: iprot.skip(ftype) @@ -17911,8 +18064,8 @@ def write(self, oprot): if self.tblNames is not None: oprot.writeFieldBegin('tblNames', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tblNames)) - for iter759 in self.tblNames: - oprot.writeString(iter759) + for iter768 in self.tblNames: + oprot.writeString(iter768) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -17977,11 +18130,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype763, _size760) = iprot.readListBegin() - for _i764 in xrange(_size760): - _elem765 = Table() - _elem765.read(iprot) - self.tables.append(_elem765) + (_etype772, _size769) = iprot.readListBegin() + for _i773 in xrange(_size769): + _elem774 = Table() + _elem774.read(iprot) + self.tables.append(_elem774) iprot.readListEnd() else: iprot.skip(ftype) @@ -17998,8 +18151,8 @@ def write(self, oprot): if self.tables is not None: oprot.writeFieldBegin('tables', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tables)) - for iter766 in self.tables: - iter766.write(oprot) + for iter775 in self.tables: + iter775.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19298,44 +19451,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype770, _size767) = iprot.readListBegin() - for _i771 in xrange(_size767): - _elem772 = WMPool() - _elem772.read(iprot) - self.pools.append(_elem772) + (_etype779, _size776) = iprot.readListBegin() + for _i780 in xrange(_size776): + _elem781 = WMPool() + _elem781.read(iprot) + self.pools.append(_elem781) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype776, _size773) = iprot.readListBegin() - for _i777 in xrange(_size773): - _elem778 = WMMapping() - _elem778.read(iprot) - self.mappings.append(_elem778) + (_etype785, _size782) = iprot.readListBegin() + for _i786 in xrange(_size782): + _elem787 = WMMapping() + _elem787.read(iprot) + self.mappings.append(_elem787) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype782, _size779) = iprot.readListBegin() - for _i783 in xrange(_size779): - _elem784 = WMTrigger() - _elem784.read(iprot) - self.triggers.append(_elem784) + (_etype791, _size788) = iprot.readListBegin() + for _i792 in xrange(_size788): + _elem793 = WMTrigger() + _elem793.read(iprot) + self.triggers.append(_elem793) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype788, _size785) = iprot.readListBegin() - for _i789 in xrange(_size785): - _elem790 = WMPoolTrigger() - _elem790.read(iprot) - self.poolTriggers.append(_elem790) + (_etype797, _size794) = iprot.readListBegin() + for _i798 in xrange(_size794): + _elem799 = WMPoolTrigger() + _elem799.read(iprot) + self.poolTriggers.append(_elem799) iprot.readListEnd() else: iprot.skip(ftype) @@ -19356,29 +19509,29 @@ def write(self, oprot): if self.pools is not None: oprot.writeFieldBegin('pools', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.pools)) - for iter791 in self.pools: - iter791.write(oprot) + for iter800 in self.pools: + iter800.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.mappings is not None: oprot.writeFieldBegin('mappings', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.mappings)) - for iter792 in self.mappings: - iter792.write(oprot) + for iter801 in self.mappings: + iter801.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter793 in self.triggers: - iter793.write(oprot) + for iter802 in self.triggers: + iter802.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.poolTriggers is not None: oprot.writeFieldBegin('poolTriggers', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.poolTriggers)) - for iter794 in self.poolTriggers: - iter794.write(oprot) + for iter803 in self.poolTriggers: + iter803.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19903,11 +20056,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype798, _size795) = iprot.readListBegin() - for _i799 in xrange(_size795): - _elem800 = WMResourcePlan() - _elem800.read(iprot) - self.resourcePlans.append(_elem800) + (_etype807, _size804) = iprot.readListBegin() + for _i808 in xrange(_size804): + _elem809 = WMResourcePlan() + _elem809.read(iprot) + self.resourcePlans.append(_elem809) iprot.readListEnd() else: iprot.skip(ftype) @@ -19924,8 +20077,8 @@ def write(self, oprot): if self.resourcePlans is not None: oprot.writeFieldBegin('resourcePlans', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.resourcePlans)) - for iter801 in self.resourcePlans: - iter801.write(oprot) + for iter810 in self.resourcePlans: + iter810.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20255,20 +20408,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype805, _size802) = iprot.readListBegin() - for _i806 in xrange(_size802): - _elem807 = iprot.readString() - self.errors.append(_elem807) + (_etype814, _size811) = iprot.readListBegin() + for _i815 in xrange(_size811): + _elem816 = iprot.readString() + self.errors.append(_elem816) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype811, _size808) = iprot.readListBegin() - for _i812 in xrange(_size808): - _elem813 = iprot.readString() - self.warnings.append(_elem813) + (_etype820, _size817) = iprot.readListBegin() + for _i821 in xrange(_size817): + _elem822 = iprot.readString() + self.warnings.append(_elem822) iprot.readListEnd() else: iprot.skip(ftype) @@ -20285,15 +20438,15 @@ def write(self, oprot): if self.errors is not None: oprot.writeFieldBegin('errors', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.errors)) - for iter814 in self.errors: - oprot.writeString(iter814) + for iter823 in self.errors: + oprot.writeString(iter823) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter815 in self.warnings: - oprot.writeString(iter815) + for iter824 in self.warnings: + oprot.writeString(iter824) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20909,11 +21062,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype819, _size816) = iprot.readListBegin() - for _i820 in xrange(_size816): - _elem821 = WMTrigger() - _elem821.read(iprot) - self.triggers.append(_elem821) + (_etype828, _size825) = iprot.readListBegin() + for _i829 in xrange(_size825): + _elem830 = WMTrigger() + _elem830.read(iprot) + self.triggers.append(_elem830) iprot.readListEnd() else: iprot.skip(ftype) @@ -20930,8 +21083,8 @@ def write(self, oprot): if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter822 in self.triggers: - iter822.write(oprot) + for iter831 in self.triggers: + iter831.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22141,11 +22294,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype826, _size823) = iprot.readListBegin() - for _i827 in xrange(_size823): - _elem828 = FieldSchema() - _elem828.read(iprot) - self.cols.append(_elem828) + (_etype835, _size832) = iprot.readListBegin() + for _i836 in xrange(_size832): + _elem837 = FieldSchema() + _elem837.read(iprot) + self.cols.append(_elem837) iprot.readListEnd() else: iprot.skip(ftype) @@ -22205,8 +22358,8 @@ def write(self, oprot): if self.cols is not None: oprot.writeFieldBegin('cols', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.cols)) - for iter829 in self.cols: - iter829.write(oprot) + for iter838 in self.cols: + iter838.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -22461,11 +22614,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype833, _size830) = iprot.readListBegin() - for _i834 in xrange(_size830): - _elem835 = SchemaVersionDescriptor() - _elem835.read(iprot) - self.schemaVersions.append(_elem835) + (_etype842, _size839) = iprot.readListBegin() + for _i843 in xrange(_size839): + _elem844 = SchemaVersionDescriptor() + _elem844.read(iprot) + self.schemaVersions.append(_elem844) iprot.readListEnd() else: iprot.skip(ftype) @@ -22482,8 +22635,8 @@ def write(self, oprot): if self.schemaVersions is not None: oprot.writeFieldBegin('schemaVersions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.schemaVersions)) - for iter836 in self.schemaVersions: - iter836.write(oprot) + for iter845 in self.schemaVersions: + iter845.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22968,11 +23121,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitions = [] - (_etype840, _size837) = iprot.readListBegin() - for _i841 in xrange(_size837): - _elem842 = Partition() - _elem842.read(iprot) - self.partitions.append(_elem842) + (_etype849, _size846) = iprot.readListBegin() + for _i850 in xrange(_size846): + _elem851 = Partition() + _elem851.read(iprot) + self.partitions.append(_elem851) iprot.readListEnd() else: iprot.skip(ftype) @@ -23017,8 +23170,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter843 in self.partitions: - iter843.write(oprot) + for iter852 in self.partitions: + iter852.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environmentContext is not None: @@ -23170,10 +23323,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype847, _size844) = iprot.readListBegin() - for _i848 in xrange(_size844): - _elem849 = iprot.readString() - self.partVals.append(_elem849) + (_etype856, _size853) = iprot.readListBegin() + for _i857 in xrange(_size853): + _elem858 = iprot.readString() + self.partVals.append(_elem858) iprot.readListEnd() else: iprot.skip(ftype) @@ -23213,8 +23366,8 @@ def write(self, oprot): if self.partVals is not None: oprot.writeFieldBegin('partVals', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partVals)) - for iter850 in self.partVals: - oprot.writeString(iter850) + for iter859 in self.partVals: + oprot.writeString(iter859) oprot.writeListEnd() oprot.writeFieldEnd() if self.newPart is not None: @@ -23536,10 +23689,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldList = [] - (_etype854, _size851) = iprot.readListBegin() - for _i855 in xrange(_size851): - _elem856 = iprot.readString() - self.fieldList.append(_elem856) + (_etype863, _size860) = iprot.readListBegin() + for _i864 in xrange(_size860): + _elem865 = iprot.readString() + self.fieldList.append(_elem865) iprot.readListEnd() else: iprot.skip(ftype) @@ -23566,8 +23719,8 @@ def write(self, oprot): if self.fieldList is not None: oprot.writeFieldBegin('fieldList', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fieldList)) - for iter857 in self.fieldList: - oprot.writeString(iter857) + for iter866 in self.fieldList: + oprot.writeString(iter866) oprot.writeListEnd() oprot.writeFieldEnd() if self.includeParamKeyPattern is not None: @@ -23643,10 +23796,10 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.filters = [] - (_etype861, _size858) = iprot.readListBegin() - for _i862 in xrange(_size858): - _elem863 = iprot.readString() - self.filters.append(_elem863) + (_etype870, _size867) = iprot.readListBegin() + for _i871 in xrange(_size867): + _elem872 = iprot.readString() + self.filters.append(_elem872) iprot.readListEnd() else: iprot.skip(ftype) @@ -23667,8 +23820,8 @@ def write(self, oprot): if self.filters is not None: oprot.writeFieldBegin('filters', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.filters)) - for iter864 in self.filters: - oprot.writeString(iter864) + for iter873 in self.filters: + oprot.writeString(iter873) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23721,11 +23874,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionSpec = [] - (_etype868, _size865) = iprot.readListBegin() - for _i869 in xrange(_size865): - _elem870 = PartitionSpec() - _elem870.read(iprot) - self.partitionSpec.append(_elem870) + (_etype877, _size874) = iprot.readListBegin() + for _i878 in xrange(_size874): + _elem879 = PartitionSpec() + _elem879.read(iprot) + self.partitionSpec.append(_elem879) iprot.readListEnd() else: iprot.skip(ftype) @@ -23742,8 +23895,8 @@ def write(self, oprot): if self.partitionSpec is not None: oprot.writeFieldBegin('partitionSpec', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionSpec)) - for iter871 in self.partitionSpec: - iter871.write(oprot) + for iter880 in self.partitionSpec: + iter880.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23841,10 +23994,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.groupNames = [] - (_etype875, _size872) = iprot.readListBegin() - for _i876 in xrange(_size872): - _elem877 = iprot.readString() - self.groupNames.append(_elem877) + (_etype884, _size881) = iprot.readListBegin() + for _i885 in xrange(_size881): + _elem886 = iprot.readString() + self.groupNames.append(_elem886) iprot.readListEnd() else: iprot.skip(ftype) @@ -23893,8 +24046,8 @@ def write(self, oprot): if self.groupNames is not None: oprot.writeFieldBegin('groupNames', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.groupNames)) - for iter878 in self.groupNames: - oprot.writeString(iter878) + for iter887 in self.groupNames: + oprot.writeString(iter887) oprot.writeListEnd() oprot.writeFieldEnd() if self.projectionSpec is not None: diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb index 46973bf39b..ea303e06cf 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -3233,6 +3233,37 @@ class CompactionRequest ::Thrift::Struct.generate_accessors self end +class CompactionInfoStruct + include ::Thrift::Struct, ::Thrift::Struct_Union + ID = 1 + DBNAME = 2 + TABLENAME = 3 + PARTITIONNAME = 4 + TYPE = 5 + RUNAS = 6 + PROPERTIES = 7 + + FIELDS = { + ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true}, + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname', :optional => true}, + TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tablename', :optional => true}, + PARTITIONNAME => {:type => ::Thrift::Types::STRING, :name => 'partitionname', :optional => true}, + TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :optional => true, :enum_class => ::CompactionType}, + RUNAS => {:type => ::Thrift::Types::STRING, :name => 'runas', :optional => true}, + PROPERTIES => {:type => ::Thrift::Types::MAP, :name => 'properties', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + unless @type.nil? || ::CompactionType::VALID_VALUES.include?(@type) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') + end + end + + ::Thrift::Struct.generate_accessors self +end + class CompactionResponse include ::Thrift::Struct, ::Thrift::Struct_Union ID = 1 diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index a5f976bc5c..389d6631e4 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -3592,6 +3592,124 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_with_specs failed: unknown result') end + def find_next_compact(workerId) + send_find_next_compact(workerId) + return recv_find_next_compact() + end + + def send_find_next_compact(workerId) + send_message('find_next_compact', Find_next_compact_args, :workerId => workerId) + end + + def recv_find_next_compact() + result = receive_message(Find_next_compact_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'find_next_compact failed: unknown result') + end + + def set_compaction_highest_writeid(cr, high_watermark) + send_set_compaction_highest_writeid(cr, high_watermark) + recv_set_compaction_highest_writeid() + end + + def send_set_compaction_highest_writeid(cr, high_watermark) + send_message('set_compaction_highest_writeid', Set_compaction_highest_writeid_args, :cr => cr, :high_watermark => high_watermark) + end + + def recv_set_compaction_highest_writeid() + result = receive_message(Set_compaction_highest_writeid_result) + return + end + + def set_run_as(cq_id, user) + send_set_run_as(cq_id, user) + recv_set_run_as() + end + + def send_set_run_as(cq_id, user) + send_message('set_run_as', Set_run_as_args, :cq_id => cq_id, :user => user) + end + + def recv_set_run_as() + result = receive_message(Set_run_as_result) + return + end + + def find_columns_with_stats(cr) + send_find_columns_with_stats(cr) + return recv_find_columns_with_stats() + end + + def send_find_columns_with_stats(cr) + send_message('find_columns_with_stats', Find_columns_with_stats_args, :cr => cr) + end + + def recv_find_columns_with_stats() + result = receive_message(Find_columns_with_stats_result) + return result.success unless result.success.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'find_columns_with_stats failed: unknown result') + end + + def mark_cleaned(cr) + send_mark_cleaned(cr) + recv_mark_cleaned() + end + + def send_mark_cleaned(cr) + send_message('mark_cleaned', Mark_cleaned_args, :cr => cr) + end + + def recv_mark_cleaned() + result = receive_message(Mark_cleaned_result) + raise result.o1 unless result.o1.nil? + return + end + + def mark_compacted(cr) + send_mark_compacted(cr) + recv_mark_compacted() + end + + def send_mark_compacted(cr) + send_message('mark_compacted', Mark_compacted_args, :cr => cr) + end + + def recv_mark_compacted() + result = receive_message(Mark_compacted_result) + raise result.o1 unless result.o1.nil? + return + end + + def mark_failed(cr) + send_mark_failed(cr) + recv_mark_failed() + end + + def send_mark_failed(cr) + send_message('mark_failed', Mark_failed_args, :cr => cr) + end + + def recv_mark_failed() + result = receive_message(Mark_failed_result) + raise result.o1 unless result.o1.nil? + return + end + + def set_hadoop_jobid(jobId, cq_id) + send_set_hadoop_jobid(jobId, cq_id) + recv_set_hadoop_jobid() + end + + def send_set_hadoop_jobid(jobId, cq_id) + send_message('set_hadoop_jobid', Set_hadoop_jobid_args, :jobId => jobId, :cq_id => cq_id) + end + + def recv_set_hadoop_jobid() + result = receive_message(Set_hadoop_jobid_result) + return + end + end class Processor < ::FacebookService::Processor @@ -6290,6 +6408,78 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partitions_with_specs', seqid) end + def process_find_next_compact(seqid, iprot, oprot) + args = read_args(iprot, Find_next_compact_args) + result = Find_next_compact_result.new() + begin + result.success = @handler.find_next_compact(args.workerId) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'find_next_compact', seqid) + end + + def process_set_compaction_highest_writeid(seqid, iprot, oprot) + args = read_args(iprot, Set_compaction_highest_writeid_args) + result = Set_compaction_highest_writeid_result.new() + @handler.set_compaction_highest_writeid(args.cr, args.high_watermark) + write_result(result, oprot, 'set_compaction_highest_writeid', seqid) + end + + def process_set_run_as(seqid, iprot, oprot) + args = read_args(iprot, Set_run_as_args) + result = Set_run_as_result.new() + @handler.set_run_as(args.cq_id, args.user) + write_result(result, oprot, 'set_run_as', seqid) + end + + def process_find_columns_with_stats(seqid, iprot, oprot) + args = read_args(iprot, Find_columns_with_stats_args) + result = Find_columns_with_stats_result.new() + result.success = @handler.find_columns_with_stats(args.cr) + write_result(result, oprot, 'find_columns_with_stats', seqid) + end + + def process_mark_cleaned(seqid, iprot, oprot) + args = read_args(iprot, Mark_cleaned_args) + result = Mark_cleaned_result.new() + begin + @handler.mark_cleaned(args.cr) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'mark_cleaned', seqid) + end + + def process_mark_compacted(seqid, iprot, oprot) + args = read_args(iprot, Mark_compacted_args) + result = Mark_compacted_result.new() + begin + @handler.mark_compacted(args.cr) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'mark_compacted', seqid) + end + + def process_mark_failed(seqid, iprot, oprot) + args = read_args(iprot, Mark_failed_args) + result = Mark_failed_result.new() + begin + @handler.mark_failed(args.cr) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'mark_failed', seqid) + end + + def process_set_hadoop_jobid(seqid, iprot, oprot) + args = read_args(iprot, Set_hadoop_jobid_args) + result = Set_hadoop_jobid_result.new() + @handler.set_hadoop_jobid(args.jobId, args.cq_id) + write_result(result, oprot, 'set_hadoop_jobid', seqid) + end + end # HELPER FUNCTIONS AND STRUCTURES @@ -14247,5 +14437,266 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Find_next_compact_args + include ::Thrift::Struct, ::Thrift::Struct_Union + WORKERID = 1 + + FIELDS = { + WORKERID => {:type => ::Thrift::Types::STRING, :name => 'workerId'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Find_next_compact_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CompactionInfoStruct}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Set_compaction_highest_writeid_args + include ::Thrift::Struct, ::Thrift::Struct_Union + CR = 1 + HIGH_WATERMARK = 2 + + FIELDS = { + CR => {:type => ::Thrift::Types::STRUCT, :name => 'cr', :class => ::CompactionInfoStruct}, + HIGH_WATERMARK => {:type => ::Thrift::Types::I64, :name => 'high_watermark'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Set_compaction_highest_writeid_result + include ::Thrift::Struct, ::Thrift::Struct_Union + + FIELDS = { + + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Set_run_as_args + include ::Thrift::Struct, ::Thrift::Struct_Union + CQ_ID = 1 + USER = 2 + + FIELDS = { + CQ_ID => {:type => ::Thrift::Types::I64, :name => 'cq_id'}, + USER => {:type => ::Thrift::Types::STRING, :name => 'user'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Set_run_as_result + include ::Thrift::Struct, ::Thrift::Struct_Union + + FIELDS = { + + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Find_columns_with_stats_args + include ::Thrift::Struct, ::Thrift::Struct_Union + CR = 1 + + FIELDS = { + CR => {:type => ::Thrift::Types::STRUCT, :name => 'cr', :class => ::CompactionInfoStruct} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Find_columns_with_stats_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Mark_cleaned_args + include ::Thrift::Struct, ::Thrift::Struct_Union + CR = 1 + + FIELDS = { + CR => {:type => ::Thrift::Types::STRUCT, :name => 'cr', :class => ::CompactionInfoStruct} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Mark_cleaned_result + include ::Thrift::Struct, ::Thrift::Struct_Union + O1 = 1 + + FIELDS = { + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Mark_compacted_args + include ::Thrift::Struct, ::Thrift::Struct_Union + CR = 1 + + FIELDS = { + CR => {:type => ::Thrift::Types::STRUCT, :name => 'cr', :class => ::CompactionInfoStruct} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Mark_compacted_result + include ::Thrift::Struct, ::Thrift::Struct_Union + O1 = 1 + + FIELDS = { + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Mark_failed_args + include ::Thrift::Struct, ::Thrift::Struct_Union + CR = 1 + + FIELDS = { + CR => {:type => ::Thrift::Types::STRUCT, :name => 'cr', :class => ::CompactionInfoStruct} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Mark_failed_result + include ::Thrift::Struct, ::Thrift::Struct_Union + O1 = 1 + + FIELDS = { + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Set_hadoop_jobid_args + include ::Thrift::Struct, ::Thrift::Struct_Union + JOBID = 1 + CQ_ID = 2 + + FIELDS = { + JOBID => {:type => ::Thrift::Types::STRING, :name => 'jobId'}, + CQ_ID => {:type => ::Thrift::Types::I64, :name => 'cq_id'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Set_hadoop_jobid_result + include ::Thrift::Struct, ::Thrift::Struct_Union + + FIELDS = { + + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + end diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index a9f11fc073..24df3878f8 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -3681,4 +3681,44 @@ public GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request throws TException { return client.get_partitions_with_specs(request); } + + @Override + public CompactionInfoStruct findNextCompact(String workerId) throws MetaException, TException { + return client.find_next_compact(workerId); + } + + @Override + public void setCompactionHighestWriteid(CompactionInfoStruct cr, long highWatermark) throws TException { + client.set_compaction_highest_writeid(cr, highWatermark); + } + + @Override + public void setRunAs(long cq_id, String workerId) throws TException { + client.set_run_as(cq_id, workerId); + } + + @Override + public List findColumnsWithStats(CompactionInfoStruct cr) throws TException { + return client.find_columns_with_stats(cr); + } + + @Override + public void markCleaned(CompactionInfoStruct cr) throws MetaException, TException { + client.mark_cleaned(cr); + } + + @Override + public void markCompacted(CompactionInfoStruct cr) throws MetaException, TException { + client.mark_compacted(cr); + } + + @Override + public void markFailed (CompactionInfoStruct cr) throws MetaException, TException { + client.mark_failed(cr); + } + + @Override + public void setHadoopJobid (String jobId, long cq_id) throws MetaException, TException { + client.set_hadoop_jobid(jobId, cq_id); + } } diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index fa19440ba2..f015a7b251 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -32,103 +32,7 @@ import org.apache.hadoop.hive.common.ValidWriteIdList; import org.apache.hadoop.hive.common.classification.RetrySemantics; import org.apache.hadoop.hive.metastore.annotation.NoReconnect; -import org.apache.hadoop.hive.metastore.api.AggrStats; -import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; -import org.apache.hadoop.hive.metastore.api.CheckConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.Catalog; -import org.apache.hadoop.hive.metastore.api.CmRecycleRequest; -import org.apache.hadoop.hive.metastore.api.CmRecycleResponse; -import org.apache.hadoop.hive.metastore.api.ColumnStatistics; -import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; -import org.apache.hadoop.hive.metastore.api.CompactionResponse; -import org.apache.hadoop.hive.metastore.api.CompactionType; -import org.apache.hadoop.hive.metastore.api.ConfigValSecurityException; -import org.apache.hadoop.hive.metastore.api.CreationMetadata; -import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; -import org.apache.hadoop.hive.metastore.api.DataOperationType; -import org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.Database; -import org.apache.hadoop.hive.metastore.api.EnvironmentContext; -import org.apache.hadoop.hive.metastore.api.FieldSchema; -import org.apache.hadoop.hive.metastore.api.FindSchemasByColsResp; -import org.apache.hadoop.hive.metastore.api.FindSchemasByColsRqst; -import org.apache.hadoop.hive.metastore.api.FireEventRequest; -import org.apache.hadoop.hive.metastore.api.FireEventResponse; -import org.apache.hadoop.hive.metastore.api.ForeignKeysRequest; -import org.apache.hadoop.hive.metastore.api.Function; -import org.apache.hadoop.hive.metastore.api.GetAllFunctionsResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetPartitionsRequest; -import org.apache.hadoop.hive.metastore.api.GetPartitionsResponse; -import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; -import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; -import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; -import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; -import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; -import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; -import org.apache.hadoop.hive.metastore.api.HiveObjectRef; -import org.apache.hadoop.hive.metastore.api.ISchema; -import org.apache.hadoop.hive.metastore.api.InvalidInputException; -import org.apache.hadoop.hive.metastore.api.InvalidObjectException; -import org.apache.hadoop.hive.metastore.api.InvalidOperationException; -import org.apache.hadoop.hive.metastore.api.InvalidPartitionException; -import org.apache.hadoop.hive.metastore.api.LockRequest; -import org.apache.hadoop.hive.metastore.api.LockResponse; -import org.apache.hadoop.hive.metastore.api.Materialization; -import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.MetadataPpdResult; -import org.apache.hadoop.hive.metastore.api.NoSuchLockException; -import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; -import org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.NotificationEvent; -import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; -import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest; -import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse; -import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; -import org.apache.hadoop.hive.metastore.api.Partition; -import org.apache.hadoop.hive.metastore.api.PartitionEventType; -import org.apache.hadoop.hive.metastore.api.PartitionValuesRequest; -import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; -import org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest; -import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; -import org.apache.hadoop.hive.metastore.api.PrincipalType; -import org.apache.hadoop.hive.metastore.api.PrivilegeBag; -import org.apache.hadoop.hive.metastore.api.Role; -import org.apache.hadoop.hive.metastore.api.RuntimeStat; -import org.apache.hadoop.hive.metastore.api.SQLCheckConstraint; -import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; -import org.apache.hadoop.hive.metastore.api.SQLForeignKey; -import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; -import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; -import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; -import org.apache.hadoop.hive.metastore.api.SchemaVersion; -import org.apache.hadoop.hive.metastore.api.SchemaVersionState; -import org.apache.hadoop.hive.metastore.api.SerDeInfo; -import org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest; -import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; -import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; -import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; -import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.api.TableMeta; -import org.apache.hadoop.hive.metastore.api.TableValidWriteIds; -import org.apache.hadoop.hive.metastore.api.TxnAbortedException; -import org.apache.hadoop.hive.metastore.api.TxnOpenException; -import org.apache.hadoop.hive.metastore.api.TxnToWriteId; -import org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest; -import org.apache.hadoop.hive.metastore.api.UnknownDBException; -import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; -import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMMapping; -import org.apache.hadoop.hive.metastore.api.WMNullablePool; -import org.apache.hadoop.hive.metastore.api.WMNullableResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMPool; -import org.apache.hadoop.hive.metastore.api.WMResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMTrigger; -import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; -import org.apache.hadoop.hive.metastore.api.WriteNotificationLogRequest; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.ObjectPair; import org.apache.thrift.TException; @@ -3805,4 +3709,13 @@ void createOrDropTriggerToPoolMapping(String resourcePlanName, String triggerNam */ GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request) throws TException; + + CompactionInfoStruct findNextCompact(String workerId) throws MetaException, TException; + void setCompactionHighestWriteid(CompactionInfoStruct cr, long highWatermark) throws TException; + void setRunAs(long cq_id, String workerId) throws TException; + List findColumnsWithStats(CompactionInfoStruct cr) throws TException; + void markCleaned(CompactionInfoStruct cr) throws MetaException, TException; + void markCompacted(CompactionInfoStruct cr) throws MetaException, TException; + void markFailed (CompactionInfoStruct cr) throws MetaException, TException; + void setHadoopJobid (String jobId, long cq_id) throws MetaException, TException; } diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java index f3a78bf5ec..a0027d2897 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java @@ -976,6 +976,8 @@ public static ConfVars getMetaConf(String name) { "The JDO implementation such as DataNucleus may run into issues when the generated queries are\n" + "too large. Use this parameter to break the query into multiple batches. -1 means no batching."), + HIVE_MAPREDUCE_AVAILABLE("hive.metastore.mapreduce.available", "hive.metastore.mapreduce.available", true, ""), + // Hive values we have copied and use as is // These two are used to indicate that we are running tests HIVE_IN_TEST("hive.in.test", "hive.in.test", false, "internal usage only, true in test mode"), diff --git standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift index 48b633e5fa..7c2b291a68 100644 --- standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift +++ standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift @@ -1064,6 +1064,16 @@ struct CompactionRequest { 6: optional map properties } +struct CompactionInfoStruct { + 1: optional i64 id, + 2: optional string dbname, + 3: optional string tablename, + 4: optional string partitionname, + 5: optional CompactionType type, + 6: optional string runas, + 7: optional map properties +} + struct CompactionResponse { 1: required i64 id, 2: required string state, @@ -2418,6 +2428,16 @@ service ThriftHiveMetastore extends fb303.FacebookService // get_partitions with filter and projectspec GetPartitionsResponse get_partitions_with_specs(1: GetPartitionsRequest request) throws(1:MetaException o1) + + // txnHandler exposed methods + CompactionInfoStruct find_next_compact(1: string workerId) throws(1:MetaException o1) + void set_compaction_highest_writeid(1: CompactionInfoStruct cr, 2: i64 high_watermark) + void set_run_as(1: i64 cq_id, 2: string user) + list find_columns_with_stats(1: CompactionInfoStruct cr) + void mark_cleaned(1:CompactionInfoStruct cr) throws(1:MetaException o1) + void mark_compacted(1: CompactionInfoStruct cr) throws(1:MetaException o1) + void mark_failed(1: CompactionInfoStruct cr) throws(1:MetaException o1) + void set_hadoop_jobid(1: string jobId, 2: i64 cq_id) } // * Note about the DDL_TIME: When creating or altering a table or a partition, diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 23a78ca9c6..4c8ba35faa 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -7343,6 +7343,48 @@ public GetValidWriteIdsResponse get_valid_write_ids(GetValidWriteIdsRequest rqst return getTxnHandler().getValidWriteIds(rqst); } + @Override + public void set_hadoop_jobid(String jobId, long cq_id) { + getTxnHandler().setHadoopJobId(jobId, cq_id); + } + + @Override + public CompactionInfoStruct find_next_compact(String workerId) throws MetaException{ + return MetaStoreServerUtils.compactionInfoToStruct( + getTxnHandler().findNextToCompact(workerId)); + } + + @Override + public void mark_cleaned(CompactionInfoStruct cr) throws MetaException { + getTxnHandler().markCleaned(MetaStoreServerUtils.compactionStructToInfo(cr)); + } + + @Override + public void mark_compacted(CompactionInfoStruct cr) throws MetaException { + getTxnHandler().markCompacted(MetaStoreServerUtils.compactionStructToInfo(cr)); + } + + @Override + public void mark_failed(CompactionInfoStruct cr) throws MetaException { + getTxnHandler().markFailed(MetaStoreServerUtils.compactionStructToInfo(cr)); + } + + @Override + public List find_columns_with_stats(CompactionInfoStruct cr) throws MetaException { + return getTxnHandler().findColumnsWithStats(MetaStoreServerUtils.compactionStructToInfo(cr)); + } + + @Override + public void set_run_as(long cq_id, String user) throws MetaException { + getTxnHandler().setRunAs(cq_id, user); + } + + @Override + public void set_compaction_highest_writeid(CompactionInfoStruct cr, long highWaterMark) throws MetaException { + getTxnHandler().setCompactionHighestWriteId( + MetaStoreServerUtils.compactionStructToInfo(cr), highWaterMark); + } + @Override public AllocateTableWriteIdsResponse allocate_table_write_ids( AllocateTableWriteIdsRequest rqst) throws TException { @@ -9409,7 +9451,9 @@ public void run() { startCondition.await(); } startCompactorInitiator(conf); - startCompactorWorkers(conf); + if (!MetastoreConf.getBoolVar(conf, ConfVars.HIVE_MAPREDUCE_AVAILABLE)){ + startCompactorWorkers(conf); + } startCompactorCleaner(conf); startRemoteOnlyTasks(conf); startStatsUpdater(conf); @@ -9476,7 +9520,7 @@ private static MetaStoreThread instantiateThread(String classname) throws Except private static int nextThreadId = 1000000; private static void initializeAndStartThread(MetaStoreThread thread, Configuration conf) throws - MetaException { + Exception { LOG.info("Starting metastore thread of type " + thread.getClass().getName()); thread.setConf(conf); thread.setThreadId(nextThreadId++); diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreThread.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreThread.java index 6ef2e3560d..cf399d7737 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreThread.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreThread.java @@ -47,7 +47,7 @@ * least once. */ // TODO: move these test parameters to more specific places... there's no need to have them here - void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException; + void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception; /** * Run the thread in the background. This must not be called until diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreServerUtils.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreServerUtils.java index 3f611d6270..23182a7db5 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreServerUtils.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreServerUtils.java @@ -70,6 +70,8 @@ import org.apache.hadoop.hive.metastore.Warehouse; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; +import org.apache.hadoop.hive.metastore.api.CompactionInfoStruct; +import org.apache.hadoop.hive.metastore.api.CompactionRequest; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.Decimal; import org.apache.hadoop.hive.metastore.api.EnvironmentContext; @@ -99,6 +101,7 @@ import org.apache.hadoop.hive.metastore.security.HadoopThriftAuthBridge; import org.apache.hadoop.hive.metastore.security.MemoryTokenStore; import org.apache.hadoop.hive.metastore.security.ZooKeeperTokenStore; +import org.apache.hadoop.hive.metastore.txn.CompactionInfo; import org.apache.hadoop.security.authorize.DefaultImpersonationProvider; import org.apache.hadoop.security.authorize.ProxyUsers; import org.apache.hadoop.util.MachineList; @@ -1472,4 +1475,22 @@ public static Partition createMetaPartitionObject(Table tbl, Map } return tpart; } + + public static CompactionInfo compactionStructToInfo(CompactionInfoStruct cr) { + CompactionInfo ci = new CompactionInfo(cr.getDbname(), cr.getTablename(), cr.getPartitionname(), cr.getType()); + ci.id = cr.getId(); + ci.runAs = cr.getRunas(); + return ci; + } + + public static CompactionInfoStruct compactionInfoToStruct(CompactionInfo ci) { + CompactionInfoStruct cr = new CompactionInfoStruct(); + cr.setDbname(ci.dbname); + cr.setTablename(ci.tableName); + cr.setPartitionname(ci.partName); + cr.setType(ci.type); + cr.setId(ci.id); + cr.setRunas(ci.runAs); + return cr; + } } diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java index 9fe9a65677..6a38e49021 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java @@ -3571,4 +3571,44 @@ public GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request throws TException { throw new UnsupportedOperationException(); } + + @Override + public CompactionInfoStruct findNextCompact(String workerId) throws MetaException, TException { + return client.find_next_compact(workerId); + } + + @Override + public void setCompactionHighestWriteid(CompactionInfoStruct cr, long highWatermark) throws TException { + client.set_compaction_highest_writeid(cr, highWatermark); + } + + @Override + public void setRunAs(long cq_id, String workerId) throws TException { + client.set_run_as(cq_id, workerId); + } + + @Override + public List findColumnsWithStats(CompactionInfoStruct cr) throws TException { + return client.find_columns_with_stats(cr); + } + + @Override + public void markCleaned(CompactionInfoStruct cr) throws MetaException, TException { + client.mark_cleaned(cr); + } + + @Override + public void markCompacted(CompactionInfoStruct cr) throws MetaException, TException { + client.mark_compacted(cr); + } + + @Override + public void markFailed (CompactionInfoStruct cr) throws MetaException, TException { + client.mark_failed(cr); + } + + @Override + public void setHadoopJobid (String jobId, long cq_id) throws MetaException, TException { + client.set_hadoop_jobid(jobId, cq_id); + } }