diff --git hcatalog/streaming/src/test/org/apache/hive/hcatalog/streaming/TestStreaming.java hcatalog/streaming/src/test/org/apache/hive/hcatalog/streaming/TestStreaming.java index b290a40734..5935220454 100644 --- hcatalog/streaming/src/test/org/apache/hive/hcatalog/streaming/TestStreaming.java +++ hcatalog/streaming/src/test/org/apache/hive/hcatalog/streaming/TestStreaming.java @@ -58,7 +58,6 @@ import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; import org.apache.hadoop.hive.metastore.api.LockState; import org.apache.hadoop.hive.metastore.api.LockType; -import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; @@ -424,7 +423,7 @@ public void testNoBuckets() throws Exception { /** * this is a clone from TestTxnStatement2.... */ - public static void runWorker(HiveConf hiveConf) throws MetaException { + public static void runWorker(HiveConf hiveConf) throws Exception { AtomicBoolean stop = new AtomicBoolean(true); Worker t = new Worker(); t.setThreadId((int) t.getId()); diff --git itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java index d3800cdf2a..2b22a62cd9 100644 --- itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java +++ itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java @@ -1074,7 +1074,7 @@ private void verifyFooBarResult(String tblName, int count) throws Exception, IOE } private void runMajorCompaction( - String dbName, String tblName, String... partNames) throws MetaException { + String dbName, String tblName, String... partNames) throws Exception { TxnStore txnHandler = TxnUtils.getTxnStore(conf); Worker t = new Worker(); t.setThreadId((int) t.getId()); 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 18253c9bab..06b0209aa0 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 @@ -59,7 +59,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; @@ -67,7 +67,7 @@ private ReplChangeManager replChangeManager; @Override - public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { + public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception { super.init(stop, looped); replChangeManager = ReplChangeManager.getInstance(conf); } 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 42ce1746fd..7d5ee4a59f 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 @@ -47,6 +47,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; @@ -58,7 +59,6 @@ import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.metastore.txn.CompactionInfo; -import org.apache.hadoop.hive.metastore.txn.TxnStore; import org.apache.hadoop.hive.ql.DriverUtils; import org.apache.hadoop.hive.ql.exec.DDLTask; import org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter; @@ -96,6 +96,7 @@ import org.apache.hive.common.util.HiveStringUtils; import org.apache.hive.common.util.Ref; import org.apache.parquet.Strings; +import org.apache.thrift.TException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -226,7 +227,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"); @@ -268,7 +269,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); @@ -312,7 +313,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(); } @@ -539,7 +540,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(); @@ -579,7 +580,12 @@ 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 job, 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 f5b901d6e8..f45140d0d7 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,23 +17,19 @@ */ 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.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.slf4j.Logger; @@ -42,26 +38,29 @@ import java.io.IOException; import java.security.PrivilegedExceptionAction; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; -import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.getDefaultCatalog; /** * Superclass for all threads in the compactor. */ -public 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 static final 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 int threadId; + + public void setThreadId(int threadId) { + this.threadId = threadId; + } + @Override public void setConf(Configuration configuration) { // TODO MS-SPLIT for now, keep a copy of HiveConf around as we need to call other methods with @@ -77,24 +76,11 @@ public Configuration getConf() { return conf; } - @Override - public void setThreadId(int threadId) { - this.threadId = threadId; - } - - @Override - public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { - this.stop = stop; - this.looped = looped; + public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception { setPriority(MIN_PRIORITY); setDaemon(true); // this means the process will exit without waiting for this thread - - // 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.stop = stop; + this.looped = looped; } /** @@ -103,14 +89,15 @@ 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 { - try { - return rs.getTable(getDefaultCatalog(conf), ci.dbname, ci.tableName); - } catch (MetaException e) { - LOG.error("Unable to find table " + ci.getFullTableName() + ", " + e.getMessage()); - throw e; - } - } + abstract Table resolveTable(CompactionInfo ci) throws MetaException; + + /** + * Get list of partitions by name. + * @param ci compaction info. + * @return list of partitions + * @throws MetaException if an error occurs. + */ + abstract List getPartitionsByNames(CompactionInfo ci) throws MetaException; /** * Get the partition being compacted. @@ -123,8 +110,7 @@ protected Partition resolvePartition(CompactionInfo ci) throws Exception { if (ci.partName != null) { List parts; try { - parts = rs.getPartitionsByNames(getDefaultCatalog(conf), ci.dbname, ci.tableName, - Collections.singletonList(ci.partName)); + parts = getPartitionsByNames(ci); if (parts == null || parts.size() == 0) { // The partition got dropped before we went looking for it. return null; @@ -220,4 +206,15 @@ protected boolean runJobAsSelf(String owner) { protected String tableName(Table t) { return Warehouse.getQualifiedName(t); } + + private static AtomicInteger nextThreadId = new AtomicInteger(1000000); + + public static void initializeAndStartThread(CompactorThread thread, + Configuration conf) throws Exception { + LOG.info("Starting compactor thread of type " + thread.getClass().getName()); + thread.setConf(conf); + thread.setThreadId(nextThreadId.incrementAndGet()); + thread.init(new AtomicBoolean(), new AtomicBoolean()); + thread.start(); + } } 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 cdcc0e9548..a0df82cb20 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 @@ -60,7 +60,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); @@ -202,7 +202,7 @@ public void run() { } @Override - public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { + public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception { super.init(stop, looped); checkInterval = conf.getTimeVar(HiveConf.ConfVars.HIVE_COMPACTOR_CHECK_INTERVAL, TimeUnit.MILLISECONDS) ; diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/MetaStoreCompactorThread.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/MetaStoreCompactorThread.java new file mode 100644 index 0000000000..1ddc54d68a --- /dev/null +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/MetaStoreCompactorThread.java @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.ql.txn.compactor; + +import org.apache.hadoop.hive.metastore.MetaStoreThread; +import org.apache.hadoop.hive.metastore.RawStore; +import org.apache.hadoop.hive.metastore.RawStoreProxy; +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; +import org.apache.hadoop.hive.metastore.api.Partition; +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 java.util.Collections; +import java.util.List; +import java.util.concurrent.atomic.AtomicBoolean; + +import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.getDefaultCatalog; + +/** + * Compactor threads that runs in the metastore. It uses a {@link TxnStore} + * to access the internal database. + */ +public class MetaStoreCompactorThread extends CompactorThread implements MetaStoreThread { + + protected TxnStore txnHandler; + protected RawStore rs; + protected int threadId; + + @Override + public void setThreadId(int threadId) { + this.threadId = threadId; + } + + @Override + public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception { + super.init(stop, 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); + } + + @Override Table resolveTable(CompactionInfo ci) throws MetaException { + try { + return rs.getTable(getDefaultCatalog(conf), ci.dbname, ci.tableName); + } catch (MetaException e) { + LOG.error("Unable to find table " + ci.getFullTableName() + ", " + e.getMessage()); + throw e; + } + } + + @Override List getPartitionsByNames(CompactionInfo ci) throws MetaException { + try { + return rs.getPartitionsByNames(getDefaultCatalog(conf), ci.dbname, ci.tableName, + Collections.singletonList(ci.partName)); + } catch (MetaException e) { + LOG.error("Unable to get partitions by name for CompactionInfo=" + ci); + throw e; + } catch (NoSuchObjectException e) { + LOG.error("Unable to get partitions by name for CompactionInfo=" + ci); + throw new MetaException(e.toString()); + } + } +} diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/RemoteCompactorThread.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/RemoteCompactorThread.java new file mode 100644 index 0000000000..9678786612 --- /dev/null +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/RemoteCompactorThread.java @@ -0,0 +1,65 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.ql.txn.compactor; + +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.Table; +import org.apache.hadoop.hive.metastore.txn.CompactionInfo; +import org.apache.thrift.TException; + +import java.util.Collections; +import java.util.List; +import java.util.concurrent.atomic.AtomicBoolean; +import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.getDefaultCatalog; + +/** + * Compactor thread that can run outside the metastore. It will + * use the metastore thrift API which will default to a remote connection + * if the thread is running outside the metastore or to a function call + * if it's running within the metastore. + */ +public class RemoteCompactorThread extends CompactorThread { + protected IMetaStoreClient msc; + + public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception { + super.init(stop, looped); + this.msc = HiveMetaStoreUtils.getHiveMetastoreClient(conf); + } + + @Override Table resolveTable(CompactionInfo ci) throws MetaException { + try { + return msc.getTable(getDefaultCatalog(conf), ci.dbname, ci.tableName); + } catch (TException e) { + LOG.error("Unable to find table " + ci.getFullTableName() + ", " + e.getMessage()); + throw new MetaException(e.toString()); + } + } + + @Override List getPartitionsByNames(CompactionInfo ci) throws MetaException { + try { + return msc.getPartitionsByNames(getDefaultCatalog(conf), ci.dbname, ci.tableName, + Collections.singletonList(ci.partName)); + } catch (TException e) { + LOG.error("Unable to get partitions by name for CompactionInfo=" + ci); + throw new MetaException(e.toString()); + } + } +} 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 49662cd68b..b645870389 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 @@ -21,19 +21,16 @@ import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.ValidCompactorWriteIdList; import org.apache.hadoop.hive.common.ValidTxnList; -import org.apache.hadoop.hive.metastore.api.AbortTxnRequest; -import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; -import org.apache.hadoop.hive.metastore.api.GetValidWriteIdsRequest; -import org.apache.hadoop.hive.metastore.api.HeartbeatRequest; +import org.apache.hadoop.hive.metastore.HiveMetaStoreUtils; +import org.apache.hadoop.hive.metastore.IMetaStoreClient; +import org.apache.hadoop.hive.metastore.MetaStoreThread; import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.OpenTxnRequest; 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.TxnCommonUtils; -import org.apache.hadoop.hive.metastore.txn.TxnStore; import org.apache.hadoop.mapred.JobConf; +import org.apache.thrift.TException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.hive.conf.HiveConf; @@ -62,10 +59,10 @@ * A class to do compactions. This will run in a separate thread. It will spin on the * compaction queue and look for new work to do. */ -public class Worker extends CompactorThread { +public class Worker extends RemoteCompactorThread implements MetaStoreThread { static final private String CLASS_NAME = Worker.class.getName(); static final private Logger LOG = LoggerFactory.getLogger(CLASS_NAME); - static final private long SLEEP_TIME = 5000; + static final private long SLEEP_TIME = 10000; static final private int baseThreadNum = 10002; private String workerName; @@ -88,13 +85,18 @@ public static String hostname() { // don't go through Initiator for user initiated compactions) @Override public void run() { + LOG.info("Starting Worker thread"); do { boolean launchedJob = false; // Make sure nothing escapes this run method and kills the metastore at large, // so wrap it in a big catch Throwable statement. CompactionHeartbeater heartbeater = null; try { - final CompactionInfo ci = txnHandler.findNextToCompact(workerName); + if (msc == null) { + msc = HiveMetaStoreUtils.getHiveMetastoreClient(conf); + } + final CompactionInfo ci = CompactionInfo.optionalCompactionInfoStructToInfo( + msc.findNextCompact(workerName)); LOG.debug("Processing compaction request " + ci); if (ci == null && !stop.get()) { @@ -114,11 +116,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(CompactionInfo.compactionInfoToStruct(ci)); continue; } } catch (MetaException e) { - txnHandler.markCleaned(ci); + msc.markCleaned(CompactionInfo.compactionInfoToStruct(ci)); continue; } // This chicanery is to get around the fact that the table needs to be final in order to @@ -132,11 +134,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(CompactionInfo.compactionInfoToStruct(ci)); continue; } } catch (Exception e) { - txnHandler.markCleaned(ci); + msc.markCleaned(CompactionInfo.compactionInfoToStruct(ci)); continue; } @@ -146,45 +148,43 @@ 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(CompactionInfo.compactionInfoToStruct(ci)); continue; } String fullTableName = TxnUtils.getFullTableName(t.getDbName(), t.getTableName()); if (ci.runAs == null) { ci.runAs = findUserToRunAs(sd.getLocation(), t); } - OpenTxnRequest otReq = new OpenTxnRequest(1, ci.runAs, hostname()); - otReq.setAgentInfo(getName());//ThreadName - long compactorTxnId = txnHandler.openTxns(otReq).getTxn_ids().get(0); + long compactorTxnId = msc.openTxns(ci.runAs, 1).getTxn_ids().get(0); - heartbeater = new CompactionHeartbeater(txnHandler, compactorTxnId, fullTableName, conf); + heartbeater = new CompactionHeartbeater(compactorTxnId, fullTableName, conf); heartbeater.start(); - ValidTxnList validTxnList = TxnCommonUtils.createValidReadTxnList(txnHandler.getOpenTxns(), compactorTxnId); - GetValidWriteIdsRequest rqst = new GetValidWriteIdsRequest(Collections.singletonList(fullTableName)); + ValidTxnList validTxnList = msc.getValidTxns(compactorTxnId); //with this ValidWriteIdList is capped at whatever HWM validTxnList has - rqst.setValidTxnList(validTxnList.writeToString()); final ValidCompactorWriteIdList tblValidWriteIds = - TxnUtils.createValidCompactWriteIdList(txnHandler.getValidWriteIds(rqst).getTblValidWriteIds().get(0)); + TxnUtils.createValidCompactWriteIdList(msc.getValidWriteIds( + Collections.singletonList(fullTableName), validTxnList.writeToString()).get(0)); LOG.debug("ValidCompactWriteIdList: " + tblValidWriteIds.writeToString()); conf.set(ValidTxnList.VALID_TXNS_KEY, validTxnList.writeToString()); ci.highestWriteId = tblValidWriteIds.getHighWatermark(); //this writes TXN_COMPONENTS to ensure that if compactorTxnId fails, we keep metadata about //it until after any data written by it are physically removed - txnHandler.updateCompactorState(ci, compactorTxnId); + msc.updateCompactorState(CompactionInfo.compactionInfoToStruct(ci), compactorTxnId); final StringBuilder jobName = new StringBuilder(workerName); jobName.append("-compactor-"); jobName.append(ci.getFullPartitionName()); LOG.info("Starting " + ci.type.toString() + " compaction for " + ci.getFullPartitionName() + " in " + JavaUtils.txnIdToString(compactorTxnId)); - final StatsUpdater su = StatsUpdater.init(ci, txnHandler.findColumnsWithStats(ci), conf, + final StatsUpdater su = StatsUpdater.init(ci, msc.findColumnsWithStats( + CompactionInfo.compactionInfoToStruct(ci)), conf, runJobAsSelf(ci.runAs) ? ci.runAs : t.getOwner()); final CompactorMR mr = new CompactorMR(); launchedJob = true; try { if (runJobAsSelf(ci.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()); @@ -192,7 +192,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; } }); @@ -204,16 +204,28 @@ public Object run() throws Exception { } } heartbeater.cancel(); - txnHandler.markCompacted(ci); - txnHandler.commitTxn(new CommitTxnRequest(compactorTxnId)); + msc.markCompacted(CompactionInfo.compactionInfoToStruct(ci)); + msc.commitTxn(compactorTxnId); 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); - txnHandler.abortTxn(new AbortTxnRequest(compactorTxnId)); + msc.markFailed(CompactionInfo.compactionInfoToStruct(ci)); + msc.abortTxns(Collections.singletonList(compactorTxnId)); + } + } catch (TException | IOException t) { + LOG.error("Caught an exception in the main loop of compactor worker " + workerName + ", " + + StringUtils.stringifyException(t)); + if (msc != null) { + msc.close(); + } + msc = null; + try { + Thread.sleep(SLEEP_TIME); + } catch (InterruptedException e) { + LOG.error("Interrupted while sleeping to instantiate metastore client"); } } catch (Throwable t) { LOG.error("Caught an exception in the main loop of compactor worker " + workerName + ", " + @@ -237,7 +249,7 @@ public Object run() throws Exception { } @Override - public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { + public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception { super.init(stop, looped); StringBuilder name = new StringBuilder(hostname()); @@ -351,17 +363,16 @@ void gatherStats() { static final class CompactionHeartbeater extends Thread { static final private Logger LOG = LoggerFactory.getLogger(CompactionHeartbeater.class); - private final TxnStore txnHandler; private final AtomicBoolean stop = new AtomicBoolean(); private final long compactorTxnId; private final String tableName; private final HiveConf conf; private final long interval; - public CompactionHeartbeater(TxnStore txnHandler, long compactorTxnId, String tableName, HiveConf conf) { - this.txnHandler = txnHandler; + public CompactionHeartbeater(long compactorTxnId, String tableName, HiveConf conf) { this.tableName = tableName; this.compactorTxnId = compactorTxnId; this.conf = conf; + this.interval = MetastoreConf.getTimeVar(conf, MetastoreConf.ConfVars.TXN_TIMEOUT, TimeUnit.MILLISECONDS) / 2; setDaemon(true); @@ -371,13 +382,12 @@ public CompactionHeartbeater(TxnStore txnHandler, long compactorTxnId, String ta @Override public void run() { try { + // We need to create our own metastore client since the thrifts clients + // are not thread safe. + IMetaStoreClient msc = HiveMetaStoreUtils.getHiveMetastoreClient(conf); LOG.debug("Heartbeating compaction transaction id {} for table: {}", compactorTxnId, tableName); - HeartbeatRequest heartbeatRequest = new HeartbeatRequest(); - - heartbeatRequest.setTxnid(compactorTxnId); - heartbeatRequest.setLockid(0); while(!stop.get()) { - txnHandler.heartbeat(heartbeatRequest); + msc.heartbeat(compactorTxnId, 0); Thread.sleep(interval); } } catch (Exception e) { diff --git ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java index a3034fb195..6f44e9bfc5 100644 --- ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java +++ ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java @@ -1189,13 +1189,13 @@ else if(TxnStore.ATTEMPTED_RESPONSE.equals(compact.getState())) { } return compactionsByState; } - public static void runWorker(HiveConf hiveConf) throws MetaException { + public static void runWorker(HiveConf hiveConf) throws Exception { TxnCommandsBaseForTests.runWorker(hiveConf); } - public static void runCleaner(HiveConf hiveConf) throws MetaException { + public static void runCleaner(HiveConf hiveConf) throws Exception { TxnCommandsBaseForTests.runCleaner(hiveConf); } - public static void runInitiator(HiveConf hiveConf) throws MetaException { + public static void runInitiator(HiveConf hiveConf) throws Exception { TxnCommandsBaseForTests.runInitiator(hiveConf); } /** diff --git ql/src/test/org/apache/hadoop/hive/ql/TxnCommandsBaseForTests.java ql/src/test/org/apache/hadoop/hive/ql/TxnCommandsBaseForTests.java index 287aeaecb0..dc2963df84 100644 --- ql/src/test/org/apache/hadoop/hive/ql/TxnCommandsBaseForTests.java +++ ql/src/test/org/apache/hadoop/hive/ql/TxnCommandsBaseForTests.java @@ -24,7 +24,6 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.RemoteIterator; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.txn.TxnDbUtil; import org.apache.hadoop.hive.ql.io.HiveInputFormat; import org.apache.hadoop.hive.ql.processors.CommandProcessorResponse; @@ -157,18 +156,18 @@ protected String getWarehouseDir() { protected String makeValuesClause(int[][] rows) { return TestTxnCommands2.makeValuesClause(rows); } - public static void runWorker(HiveConf hiveConf) throws MetaException { + public static void runWorker(HiveConf hiveConf) throws Exception { runCompactorThread(hiveConf, CompactorThreadType.WORKER); } - public static void runCleaner(HiveConf hiveConf) throws MetaException { + public static void runCleaner(HiveConf hiveConf) throws Exception { runCompactorThread(hiveConf, CompactorThreadType.CLEANER); } - public static void runInitiator(HiveConf hiveConf) throws MetaException { + public static void runInitiator(HiveConf hiveConf) throws Exception { runCompactorThread(hiveConf, CompactorThreadType.INITIATOR); } private enum CompactorThreadType {INITIATOR, WORKER, CLEANER} private static void runCompactorThread(HiveConf hiveConf, CompactorThreadType type) - throws MetaException { + throws Exception { AtomicBoolean stop = new AtomicBoolean(true); CompactorThread t = null; switch (type) { diff --git service/src/java/org/apache/hive/service/server/HiveServer2.java service/src/java/org/apache/hive/service/server/HiveServer2.java index 0c55654475..f9fb854106 100644 --- service/src/java/org/apache/hive/service/server/HiveServer2.java +++ service/src/java/org/apache/hive/service/server/HiveServer2.java @@ -83,6 +83,8 @@ 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.txn.compactor.Worker; import org.apache.hadoop.hive.shims.ShimLoader; import org.apache.hadoop.hive.shims.Utils; import org.apache.hadoop.security.UserGroupInformation; @@ -286,6 +288,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; @@ -1005,6 +1013,16 @@ private static void startHiveServer2() throws Throwable { } } + private void maybeStartCompactorThreads(HiveConf hiveConf) throws Exception { + if (MetastoreConf.getVar(hiveConf, MetastoreConf.ConfVars.HIVE_METASTORE_RUNWORKER_IN).equals("hs2")) { + int numWorkers = MetastoreConf.getIntVar(hiveConf, MetastoreConf.ConfVars.COMPACTOR_WORKER_THREADS); + for (int i = 0; i < numWorkers; i++) { + Worker w = new Worker(); + CompactorThread.initializeAndStartThread(w, 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/AlterPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java index d85dda5acd..f7d9ed2e2e 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 _list960 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list960.size); - Partition _elem961; - for (int _i962 = 0; _i962 < _list960.size; ++_i962) + org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list968.size); + Partition _elem969; + for (int _i970 = 0; _i970 < _list968.size; ++_i970) { - _elem961 = new Partition(); - _elem961.read(iprot); - struct.partitions.add(_elem961); + _elem969 = new Partition(); + _elem969.read(iprot); + struct.partitions.add(_elem969); } 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 _iter963 : struct.partitions) + for (Partition _iter971 : struct.partitions) { - _iter963.write(oprot); + _iter971.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 _iter964 : struct.partitions) + for (Partition _iter972 : struct.partitions) { - _iter964.write(oprot); + _iter972.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 _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list965.size); - Partition _elem966; - for (int _i967 = 0; _i967 < _list965.size; ++_i967) + org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list973.size); + Partition _elem974; + for (int _i975 = 0; _i975 < _list973.size; ++_i975) { - _elem966 = new Partition(); - _elem966.read(iprot); - struct.partitions.add(_elem966); + _elem974 = new Partition(); + _elem974.read(iprot); + struct.partitions.add(_elem974); } } 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 3eb55b1b59..f4e3d6bd71 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 _list840 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list840.size); - long _elem841; - for (int _i842 = 0; _i842 < _list840.size; ++_i842) + org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list848.size); + long _elem849; + for (int _i850 = 0; _i850 < _list848.size; ++_i850) { - _elem841 = iprot.readI64(); - struct.fileIds.add(_elem841); + _elem849 = iprot.readI64(); + struct.fileIds.add(_elem849); } 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 _iter843 : struct.fileIds) + for (long _iter851 : struct.fileIds) { - oprot.writeI64(_iter843); + oprot.writeI64(_iter851); } 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 _iter844 : struct.fileIds) + for (long _iter852 : struct.fileIds) { - oprot.writeI64(_iter844); + oprot.writeI64(_iter852); } } } @@ -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 _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list845.size); - long _elem846; - for (int _i847 = 0; _i847 < _list845.size; ++_i847) + org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list853.size); + long _elem854; + for (int _i855 = 0; _i855 < _list853.size; ++_i855) { - _elem846 = iprot.readI64(); - struct.fileIds.add(_elem846); + _elem854 = iprot.readI64(); + struct.fileIds.add(_elem854); } } 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 17f8b7730a..2b394449a3 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 _list856 = iprot.readListBegin(); - struct.values = new ArrayList(_list856.size); - ClientCapability _elem857; - for (int _i858 = 0; _i858 < _list856.size; ++_i858) + org.apache.thrift.protocol.TList _list864 = iprot.readListBegin(); + struct.values = new ArrayList(_list864.size); + ClientCapability _elem865; + for (int _i866 = 0; _i866 < _list864.size; ++_i866) { - _elem857 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem857); + _elem865 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem865); } 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 _iter859 : struct.values) + for (ClientCapability _iter867 : struct.values) { - oprot.writeI32(_iter859.getValue()); + oprot.writeI32(_iter867.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 _iter860 : struct.values) + for (ClientCapability _iter868 : struct.values) { - oprot.writeI32(_iter860.getValue()); + oprot.writeI32(_iter868.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 _list861 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list861.size); - ClientCapability _elem862; - for (int _i863 = 0; _i863 < _list861.size; ++_i863) + org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list869.size); + ClientCapability _elem870; + for (int _i871 = 0; _i871 < _list869.size; ++_i871) { - _elem862 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem862); + _elem870 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem870); } } struct.setValuesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java new file mode 100644 index 0000000000..4aee45ce5f --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java @@ -0,0 +1,1533 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class CompactionInfoStruct 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("CompactionInfoStruct"); + + private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TABLENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tablename", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PARTITIONNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionname", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField RUNAS_FIELD_DESC = new org.apache.thrift.protocol.TField("runas", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField TOOMANYABORTS_FIELD_DESC = new org.apache.thrift.protocol.TField("toomanyaborts", org.apache.thrift.protocol.TType.BOOL, (short)8); + private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)9); + 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)10); + private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)11); + private static final org.apache.thrift.protocol.TField HIGHEST_WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("highestWriteId", org.apache.thrift.protocol.TType.I64, (short)12); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new CompactionInfoStructStandardSchemeFactory()); + schemes.put(TupleScheme.class, new CompactionInfoStructTupleSchemeFactory()); + } + + private long id; // required + private String dbname; // required + private String tablename; // required + private String partitionname; // optional + private CompactionType type; // required + private String runas; // optional + private String properties; // optional + private boolean toomanyaborts; // optional + private String state; // optional + private String workerId; // optional + private long start; // optional + private long highestWriteId; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + ID((short)1, "id"), + DBNAME((short)2, "dbname"), + TABLENAME((short)3, "tablename"), + PARTITIONNAME((short)4, "partitionname"), + /** + * + * @see CompactionType + */ + TYPE((short)5, "type"), + RUNAS((short)6, "runas"), + PROPERTIES((short)7, "properties"), + TOOMANYABORTS((short)8, "toomanyaborts"), + STATE((short)9, "state"), + WORKER_ID((short)10, "workerId"), + START((short)11, "start"), + HIGHEST_WRITE_ID((short)12, "highestWriteId"); + + 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: // ID + return ID; + case 2: // DBNAME + return DBNAME; + case 3: // TABLENAME + return TABLENAME; + case 4: // PARTITIONNAME + return PARTITIONNAME; + case 5: // TYPE + return TYPE; + case 6: // RUNAS + return RUNAS; + case 7: // PROPERTIES + return PROPERTIES; + case 8: // TOOMANYABORTS + return TOOMANYABORTS; + case 9: // STATE + return STATE; + case 10: // WORKER_ID + return WORKER_ID; + case 11: // START + return START; + case 12: // HIGHEST_WRITE_ID + return HIGHEST_WRITE_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 + private static final int __ID_ISSET_ID = 0; + private static final int __TOOMANYABORTS_ISSET_ID = 1; + private static final int __START_ISSET_ID = 2; + private static final int __HIGHESTWRITEID_ISSET_ID = 3; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.RUNAS,_Fields.PROPERTIES,_Fields.TOOMANYABORTS,_Fields.STATE,_Fields.WORKER_ID,_Fields.START,_Fields.HIGHEST_WRITE_ID}; + 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.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLENAME, new org.apache.thrift.meta_data.FieldMetaData("tablename", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARTITIONNAME, new org.apache.thrift.meta_data.FieldMetaData("partitionname", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CompactionType.class))); + tmpMap.put(_Fields.RUNAS, new org.apache.thrift.meta_data.FieldMetaData("runas", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PROPERTIES, new org.apache.thrift.meta_data.FieldMetaData("properties", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TOOMANYABORTS, new org.apache.thrift.meta_data.FieldMetaData("toomanyaborts", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.WORKER_ID, new org.apache.thrift.meta_data.FieldMetaData("workerId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.HIGHEST_WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("highestWriteId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CompactionInfoStruct.class, metaDataMap); + } + + public CompactionInfoStruct() { + } + + public CompactionInfoStruct( + long id, + String dbname, + String tablename, + CompactionType type) + { + this(); + this.id = id; + setIdIsSet(true); + this.dbname = dbname; + this.tablename = tablename; + this.type = type; + } + + /** + * Performs a deep copy on other. + */ + public CompactionInfoStruct(CompactionInfoStruct other) { + __isset_bitfield = other.__isset_bitfield; + this.id = other.id; + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTablename()) { + this.tablename = other.tablename; + } + if (other.isSetPartitionname()) { + this.partitionname = other.partitionname; + } + if (other.isSetType()) { + this.type = other.type; + } + if (other.isSetRunas()) { + this.runas = other.runas; + } + if (other.isSetProperties()) { + this.properties = other.properties; + } + this.toomanyaborts = other.toomanyaborts; + if (other.isSetState()) { + this.state = other.state; + } + if (other.isSetWorkerId()) { + this.workerId = other.workerId; + } + this.start = other.start; + this.highestWriteId = other.highestWriteId; + } + + public CompactionInfoStruct deepCopy() { + return new CompactionInfoStruct(this); + } + + @Override + public void clear() { + setIdIsSet(false); + this.id = 0; + this.dbname = null; + this.tablename = null; + this.partitionname = null; + this.type = null; + this.runas = null; + this.properties = null; + setToomanyabortsIsSet(false); + this.toomanyaborts = false; + this.state = null; + this.workerId = null; + setStartIsSet(false); + this.start = 0; + setHighestWriteIdIsSet(false); + this.highestWriteId = 0; + } + + public long getId() { + return this.id; + } + + public void setId(long id) { + this.id = id; + setIdIsSet(true); + } + + public void unsetId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); + } + + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); + } + + public void setIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); + } + + public String getDbname() { + return this.dbname; + } + + public void setDbname(String dbname) { + this.dbname = dbname; + } + + public void unsetDbname() { + this.dbname = null; + } + + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ + public boolean isSetDbname() { + return this.dbname != null; + } + + public void setDbnameIsSet(boolean value) { + if (!value) { + this.dbname = null; + } + } + + public String getTablename() { + return this.tablename; + } + + public void setTablename(String tablename) { + this.tablename = tablename; + } + + public void unsetTablename() { + this.tablename = null; + } + + /** Returns true if field tablename is set (has been assigned a value) and false otherwise */ + public boolean isSetTablename() { + return this.tablename != null; + } + + public void setTablenameIsSet(boolean value) { + if (!value) { + this.tablename = null; + } + } + + public String getPartitionname() { + return this.partitionname; + } + + public void setPartitionname(String partitionname) { + this.partitionname = partitionname; + } + + public void unsetPartitionname() { + this.partitionname = null; + } + + /** Returns true if field partitionname is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionname() { + return this.partitionname != null; + } + + public void setPartitionnameIsSet(boolean value) { + if (!value) { + this.partitionname = null; + } + } + + /** + * + * @see CompactionType + */ + public CompactionType getType() { + return this.type; + } + + /** + * + * @see CompactionType + */ + public void setType(CompactionType type) { + this.type = type; + } + + public void unsetType() { + this.type = null; + } + + /** Returns true if field type is set (has been assigned a value) and false otherwise */ + public boolean isSetType() { + return this.type != null; + } + + public void setTypeIsSet(boolean value) { + if (!value) { + this.type = null; + } + } + + public String getRunas() { + return this.runas; + } + + public void setRunas(String runas) { + this.runas = runas; + } + + public void unsetRunas() { + this.runas = null; + } + + /** Returns true if field runas is set (has been assigned a value) and false otherwise */ + public boolean isSetRunas() { + return this.runas != null; + } + + public void setRunasIsSet(boolean value) { + if (!value) { + this.runas = null; + } + } + + public String getProperties() { + return this.properties; + } + + public void setProperties(String properties) { + this.properties = properties; + } + + public void unsetProperties() { + this.properties = null; + } + + /** Returns true if field properties is set (has been assigned a value) and false otherwise */ + public boolean isSetProperties() { + return this.properties != null; + } + + public void setPropertiesIsSet(boolean value) { + if (!value) { + this.properties = null; + } + } + + public boolean isToomanyaborts() { + return this.toomanyaborts; + } + + public void setToomanyaborts(boolean toomanyaborts) { + this.toomanyaborts = toomanyaborts; + setToomanyabortsIsSet(true); + } + + public void unsetToomanyaborts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOOMANYABORTS_ISSET_ID); + } + + /** Returns true if field toomanyaborts is set (has been assigned a value) and false otherwise */ + public boolean isSetToomanyaborts() { + return EncodingUtils.testBit(__isset_bitfield, __TOOMANYABORTS_ISSET_ID); + } + + public void setToomanyabortsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOOMANYABORTS_ISSET_ID, value); + } + + public String getState() { + return this.state; + } + + public void setState(String state) { + this.state = state; + } + + public void unsetState() { + this.state = null; + } + + /** Returns true if field state is set (has been assigned a value) and false otherwise */ + public boolean isSetState() { + return this.state != null; + } + + public void setStateIsSet(boolean value) { + if (!value) { + this.state = 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 long getStart() { + return this.start; + } + + public void setStart(long start) { + this.start = start; + setStartIsSet(true); + } + + public void unsetStart() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); + } + + /** Returns true if field start is set (has been assigned a value) and false otherwise */ + public boolean isSetStart() { + return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); + } + + public void setStartIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); + } + + public long getHighestWriteId() { + return this.highestWriteId; + } + + public void setHighestWriteId(long highestWriteId) { + this.highestWriteId = highestWriteId; + setHighestWriteIdIsSet(true); + } + + public void unsetHighestWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HIGHESTWRITEID_ISSET_ID); + } + + /** Returns true if field highestWriteId is set (has been assigned a value) and false otherwise */ + public boolean isSetHighestWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __HIGHESTWRITEID_ISSET_ID); + } + + public void setHighestWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HIGHESTWRITEID_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ID: + if (value == null) { + unsetId(); + } else { + setId((Long)value); + } + break; + + case DBNAME: + if (value == null) { + unsetDbname(); + } else { + setDbname((String)value); + } + break; + + case TABLENAME: + if (value == null) { + unsetTablename(); + } else { + setTablename((String)value); + } + break; + + case PARTITIONNAME: + if (value == null) { + unsetPartitionname(); + } else { + setPartitionname((String)value); + } + break; + + case TYPE: + if (value == null) { + unsetType(); + } else { + setType((CompactionType)value); + } + break; + + case RUNAS: + if (value == null) { + unsetRunas(); + } else { + setRunas((String)value); + } + break; + + case PROPERTIES: + if (value == null) { + unsetProperties(); + } else { + setProperties((String)value); + } + break; + + case TOOMANYABORTS: + if (value == null) { + unsetToomanyaborts(); + } else { + setToomanyaborts((Boolean)value); + } + break; + + case STATE: + if (value == null) { + unsetState(); + } else { + setState((String)value); + } + break; + + case WORKER_ID: + if (value == null) { + unsetWorkerId(); + } else { + setWorkerId((String)value); + } + break; + + case START: + if (value == null) { + unsetStart(); + } else { + setStart((Long)value); + } + break; + + case HIGHEST_WRITE_ID: + if (value == null) { + unsetHighestWriteId(); + } else { + setHighestWriteId((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ID: + return getId(); + + case DBNAME: + return getDbname(); + + case TABLENAME: + return getTablename(); + + case PARTITIONNAME: + return getPartitionname(); + + case TYPE: + return getType(); + + case RUNAS: + return getRunas(); + + case PROPERTIES: + return getProperties(); + + case TOOMANYABORTS: + return isToomanyaborts(); + + case STATE: + return getState(); + + case WORKER_ID: + return getWorkerId(); + + case START: + return getStart(); + + case HIGHEST_WRITE_ID: + return getHighestWriteId(); + + } + 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 ID: + return isSetId(); + case DBNAME: + return isSetDbname(); + case TABLENAME: + return isSetTablename(); + case PARTITIONNAME: + return isSetPartitionname(); + case TYPE: + return isSetType(); + case RUNAS: + return isSetRunas(); + case PROPERTIES: + return isSetProperties(); + case TOOMANYABORTS: + return isSetToomanyaborts(); + case STATE: + return isSetState(); + case WORKER_ID: + return isSetWorkerId(); + case START: + return isSetStart(); + case HIGHEST_WRITE_ID: + return isSetHighestWriteId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof CompactionInfoStruct) + return this.equals((CompactionInfoStruct)that); + return false; + } + + public boolean equals(CompactionInfoStruct that) { + if (that == null) + return false; + + boolean this_present_id = true; + boolean that_present_id = true; + if (this_present_id || that_present_id) { + if (!(this_present_id && that_present_id)) + return false; + if (this.id != that.id) + return false; + } + + boolean this_present_dbname = true && this.isSetDbname(); + boolean that_present_dbname = true && that.isSetDbname(); + if (this_present_dbname || that_present_dbname) { + if (!(this_present_dbname && that_present_dbname)) + return false; + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_tablename = true && this.isSetTablename(); + boolean that_present_tablename = true && that.isSetTablename(); + if (this_present_tablename || that_present_tablename) { + if (!(this_present_tablename && that_present_tablename)) + return false; + if (!this.tablename.equals(that.tablename)) + return false; + } + + boolean this_present_partitionname = true && this.isSetPartitionname(); + boolean that_present_partitionname = true && that.isSetPartitionname(); + if (this_present_partitionname || that_present_partitionname) { + if (!(this_present_partitionname && that_present_partitionname)) + return false; + if (!this.partitionname.equals(that.partitionname)) + return false; + } + + boolean this_present_type = true && this.isSetType(); + boolean that_present_type = true && that.isSetType(); + if (this_present_type || that_present_type) { + if (!(this_present_type && that_present_type)) + return false; + if (!this.type.equals(that.type)) + return false; + } + + boolean this_present_runas = true && this.isSetRunas(); + boolean that_present_runas = true && that.isSetRunas(); + if (this_present_runas || that_present_runas) { + if (!(this_present_runas && that_present_runas)) + return false; + if (!this.runas.equals(that.runas)) + return false; + } + + boolean this_present_properties = true && this.isSetProperties(); + boolean that_present_properties = true && that.isSetProperties(); + if (this_present_properties || that_present_properties) { + if (!(this_present_properties && that_present_properties)) + return false; + if (!this.properties.equals(that.properties)) + return false; + } + + boolean this_present_toomanyaborts = true && this.isSetToomanyaborts(); + boolean that_present_toomanyaborts = true && that.isSetToomanyaborts(); + if (this_present_toomanyaborts || that_present_toomanyaborts) { + if (!(this_present_toomanyaborts && that_present_toomanyaborts)) + return false; + if (this.toomanyaborts != that.toomanyaborts) + return false; + } + + boolean this_present_state = true && this.isSetState(); + boolean that_present_state = true && that.isSetState(); + if (this_present_state || that_present_state) { + if (!(this_present_state && that_present_state)) + return false; + if (!this.state.equals(that.state)) + 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; + } + + boolean this_present_start = true && this.isSetStart(); + boolean that_present_start = true && that.isSetStart(); + if (this_present_start || that_present_start) { + if (!(this_present_start && that_present_start)) + return false; + if (this.start != that.start) + return false; + } + + boolean this_present_highestWriteId = true && this.isSetHighestWriteId(); + boolean that_present_highestWriteId = true && that.isSetHighestWriteId(); + if (this_present_highestWriteId || that_present_highestWriteId) { + if (!(this_present_highestWriteId && that_present_highestWriteId)) + return false; + if (this.highestWriteId != that.highestWriteId) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_id = true; + list.add(present_id); + if (present_id) + list.add(id); + + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tablename = true && (isSetTablename()); + list.add(present_tablename); + if (present_tablename) + list.add(tablename); + + boolean present_partitionname = true && (isSetPartitionname()); + list.add(present_partitionname); + if (present_partitionname) + list.add(partitionname); + + boolean present_type = true && (isSetType()); + list.add(present_type); + if (present_type) + list.add(type.getValue()); + + boolean present_runas = true && (isSetRunas()); + list.add(present_runas); + if (present_runas) + list.add(runas); + + boolean present_properties = true && (isSetProperties()); + list.add(present_properties); + if (present_properties) + list.add(properties); + + boolean present_toomanyaborts = true && (isSetToomanyaborts()); + list.add(present_toomanyaborts); + if (present_toomanyaborts) + list.add(toomanyaborts); + + boolean present_state = true && (isSetState()); + list.add(present_state); + if (present_state) + list.add(state); + + boolean present_workerId = true && (isSetWorkerId()); + list.add(present_workerId); + if (present_workerId) + list.add(workerId); + + boolean present_start = true && (isSetStart()); + list.add(present_start); + if (present_start) + list.add(start); + + boolean present_highestWriteId = true && (isSetHighestWriteId()); + list.add(present_highestWriteId); + if (present_highestWriteId) + list.add(highestWriteId); + + return list.hashCode(); + } + + @Override + public int compareTo(CompactionInfoStruct other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTablename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRunas()).compareTo(other.isSetRunas()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRunas()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runas, other.runas); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProperties()).compareTo(other.isSetProperties()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProperties()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, other.properties); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToomanyaborts()).compareTo(other.isSetToomanyaborts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToomanyaborts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toomanyaborts, other.toomanyaborts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetState()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; + } + } + lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetStart()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetHighestWriteId()).compareTo(other.isSetHighestWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetHighestWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highestWriteId, other.highestWriteId); + 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("CompactionInfoStruct("); + boolean first = true; + + sb.append("id:"); + sb.append(this.id); + first = false; + if (!first) sb.append(", "); + 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 (isSetPartitionname()) { + if (!first) sb.append(", "); + sb.append("partitionname:"); + if (this.partitionname == null) { + sb.append("null"); + } else { + sb.append(this.partitionname); + } + first = false; + } + if (!first) sb.append(", "); + sb.append("type:"); + if (this.type == null) { + sb.append("null"); + } else { + sb.append(this.type); + } + first = false; + if (isSetRunas()) { + if (!first) sb.append(", "); + sb.append("runas:"); + if (this.runas == null) { + sb.append("null"); + } else { + sb.append(this.runas); + } + first = false; + } + if (isSetProperties()) { + if (!first) sb.append(", "); + sb.append("properties:"); + if (this.properties == null) { + sb.append("null"); + } else { + sb.append(this.properties); + } + first = false; + } + if (isSetToomanyaborts()) { + if (!first) sb.append(", "); + sb.append("toomanyaborts:"); + sb.append(this.toomanyaborts); + first = false; + } + if (isSetState()) { + if (!first) sb.append(", "); + sb.append("state:"); + if (this.state == null) { + sb.append("null"); + } else { + sb.append(this.state); + } + first = false; + } + if (isSetWorkerId()) { + if (!first) sb.append(", "); + sb.append("workerId:"); + if (this.workerId == null) { + sb.append("null"); + } else { + sb.append(this.workerId); + } + first = false; + } + if (isSetStart()) { + if (!first) sb.append(", "); + sb.append("start:"); + sb.append(this.start); + first = false; + } + if (isSetHighestWriteId()) { + if (!first) sb.append(", "); + sb.append("highestWriteId:"); + sb.append(this.highestWriteId); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); + } + + if (!isSetDbname()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString()); + } + + if (!isSetTablename()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablename' is unset! Struct:" + toString()); + } + + if (!isSetType()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' is unset! Struct:" + toString()); + } + + // 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 CompactionInfoStructStandardSchemeFactory implements SchemeFactory { + public CompactionInfoStructStandardScheme getScheme() { + return new CompactionInfoStructStandardScheme(); + } + } + + private static class CompactionInfoStructStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, CompactionInfoStruct 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: // ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.id = iprot.readI64(); + struct.setIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DBNAME + 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 3: // TABLENAME + 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 4: // PARTITIONNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.partitionname = iprot.readString(); + struct.setPartitionnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // RUNAS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.runas = iprot.readString(); + struct.setRunasIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // PROPERTIES + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.properties = iprot.readString(); + struct.setPropertiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // TOOMANYABORTS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.toomanyaborts = iprot.readBool(); + struct.setToomanyabortsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // STATE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.state = iprot.readString(); + struct.setStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // 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; + case 11: // START + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.start = iprot.readI64(); + struct.setStartIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // HIGHEST_WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.highestWriteId = iprot.readI64(); + struct.setHighestWriteIdIsSet(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, CompactionInfoStruct struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeI64(struct.id); + oprot.writeFieldEnd(); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tablename != null) { + oprot.writeFieldBegin(TABLENAME_FIELD_DESC); + oprot.writeString(struct.tablename); + oprot.writeFieldEnd(); + } + if (struct.partitionname != null) { + if (struct.isSetPartitionname()) { + oprot.writeFieldBegin(PARTITIONNAME_FIELD_DESC); + oprot.writeString(struct.partitionname); + oprot.writeFieldEnd(); + } + } + if (struct.type != null) { + oprot.writeFieldBegin(TYPE_FIELD_DESC); + oprot.writeI32(struct.type.getValue()); + oprot.writeFieldEnd(); + } + if (struct.runas != null) { + if (struct.isSetRunas()) { + oprot.writeFieldBegin(RUNAS_FIELD_DESC); + oprot.writeString(struct.runas); + oprot.writeFieldEnd(); + } + } + if (struct.properties != null) { + if (struct.isSetProperties()) { + oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); + oprot.writeString(struct.properties); + oprot.writeFieldEnd(); + } + } + if (struct.isSetToomanyaborts()) { + oprot.writeFieldBegin(TOOMANYABORTS_FIELD_DESC); + oprot.writeBool(struct.toomanyaborts); + oprot.writeFieldEnd(); + } + if (struct.state != null) { + if (struct.isSetState()) { + oprot.writeFieldBegin(STATE_FIELD_DESC); + oprot.writeString(struct.state); + oprot.writeFieldEnd(); + } + } + if (struct.workerId != null) { + if (struct.isSetWorkerId()) { + oprot.writeFieldBegin(WORKER_ID_FIELD_DESC); + oprot.writeString(struct.workerId); + oprot.writeFieldEnd(); + } + } + if (struct.isSetStart()) { + oprot.writeFieldBegin(START_FIELD_DESC); + oprot.writeI64(struct.start); + oprot.writeFieldEnd(); + } + if (struct.isSetHighestWriteId()) { + oprot.writeFieldBegin(HIGHEST_WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.highestWriteId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class CompactionInfoStructTupleSchemeFactory implements SchemeFactory { + public CompactionInfoStructTupleScheme getScheme() { + return new CompactionInfoStructTupleScheme(); + } + } + + private static class CompactionInfoStructTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, CompactionInfoStruct struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeI64(struct.id); + oprot.writeString(struct.dbname); + oprot.writeString(struct.tablename); + oprot.writeI32(struct.type.getValue()); + BitSet optionals = new BitSet(); + if (struct.isSetPartitionname()) { + optionals.set(0); + } + if (struct.isSetRunas()) { + optionals.set(1); + } + if (struct.isSetProperties()) { + optionals.set(2); + } + if (struct.isSetToomanyaborts()) { + optionals.set(3); + } + if (struct.isSetState()) { + optionals.set(4); + } + if (struct.isSetWorkerId()) { + optionals.set(5); + } + if (struct.isSetStart()) { + optionals.set(6); + } + if (struct.isSetHighestWriteId()) { + optionals.set(7); + } + oprot.writeBitSet(optionals, 8); + if (struct.isSetPartitionname()) { + oprot.writeString(struct.partitionname); + } + if (struct.isSetRunas()) { + oprot.writeString(struct.runas); + } + if (struct.isSetProperties()) { + oprot.writeString(struct.properties); + } + if (struct.isSetToomanyaborts()) { + oprot.writeBool(struct.toomanyaborts); + } + if (struct.isSetState()) { + oprot.writeString(struct.state); + } + if (struct.isSetWorkerId()) { + oprot.writeString(struct.workerId); + } + if (struct.isSetStart()) { + oprot.writeI64(struct.start); + } + if (struct.isSetHighestWriteId()) { + oprot.writeI64(struct.highestWriteId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, CompactionInfoStruct struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.id = iprot.readI64(); + struct.setIdIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + struct.tablename = iprot.readString(); + struct.setTablenameIsSet(true); + struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + BitSet incoming = iprot.readBitSet(8); + if (incoming.get(0)) { + struct.partitionname = iprot.readString(); + struct.setPartitionnameIsSet(true); + } + if (incoming.get(1)) { + struct.runas = iprot.readString(); + struct.setRunasIsSet(true); + } + if (incoming.get(2)) { + struct.properties = iprot.readString(); + struct.setPropertiesIsSet(true); + } + if (incoming.get(3)) { + struct.toomanyaborts = iprot.readBool(); + struct.setToomanyabortsIsSet(true); + } + if (incoming.get(4)) { + struct.state = iprot.readString(); + struct.setStateIsSet(true); + } + if (incoming.get(5)) { + struct.workerId = iprot.readString(); + struct.setWorkerIdIsSet(true); + } + if (incoming.get(6)) { + struct.start = iprot.readI64(); + struct.setStartIsSet(true); + } + if (incoming.get(7)) { + struct.highestWriteId = iprot.readI64(); + struct.setHighestWriteIdIsSet(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 f2f8fb475e..42073db544 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 _list952 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list952.size); - SchemaVersionDescriptor _elem953; - for (int _i954 = 0; _i954 < _list952.size; ++_i954) + org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list960.size); + SchemaVersionDescriptor _elem961; + for (int _i962 = 0; _i962 < _list960.size; ++_i962) { - _elem953 = new SchemaVersionDescriptor(); - _elem953.read(iprot); - struct.schemaVersions.add(_elem953); + _elem961 = new SchemaVersionDescriptor(); + _elem961.read(iprot); + struct.schemaVersions.add(_elem961); } 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 _iter955 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter963 : struct.schemaVersions) { - _iter955.write(oprot); + _iter963.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 _iter956 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter964 : struct.schemaVersions) { - _iter956.write(oprot); + _iter964.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 _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list957.size); - SchemaVersionDescriptor _elem958; - for (int _i959 = 0; _i959 < _list957.size; ++_i959) + org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.schemaVersions = new ArrayList(_list965.size); + SchemaVersionDescriptor _elem966; + for (int _i967 = 0; _i967 < _list965.size; ++_i967) { - _elem958 = new SchemaVersionDescriptor(); - _elem958.read(iprot); - struct.schemaVersions.add(_elem958); + _elem966 = new SchemaVersionDescriptor(); + _elem966.read(iprot); + struct.schemaVersions.add(_elem966); } } 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 f7e188dfda..dd6658d636 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 _list772 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list772.size); - String _elem773; - for (int _i774 = 0; _i774 < _list772.size; ++_i774) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list780.size); + String _elem781; + for (int _i782 = 0; _i782 < _list780.size; ++_i782) { - _elem773 = iprot.readString(); - struct.partitionVals.add(_elem773); + _elem781 = iprot.readString(); + struct.partitionVals.add(_elem781); } 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 _iter775 : struct.partitionVals) + for (String _iter783 : struct.partitionVals) { - oprot.writeString(_iter775); + oprot.writeString(_iter783); } 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 _iter776 : struct.partitionVals) + for (String _iter784 : struct.partitionVals) { - oprot.writeString(_iter776); + oprot.writeString(_iter784); } } } @@ -945,13 +945,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - 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 _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list785.size); + String _elem786; + for (int _i787 = 0; _i787 < _list785.size; ++_i787) { - _elem778 = iprot.readString(); - struct.partitionVals.add(_elem778); + _elem786 = iprot.readString(); + struct.partitionVals.add(_elem786); } } 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 bd38bbe45d..68146e4561 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 _list848 = iprot.readListBegin(); - struct.functions = new ArrayList(_list848.size); - Function _elem849; - for (int _i850 = 0; _i850 < _list848.size; ++_i850) + org.apache.thrift.protocol.TList _list856 = iprot.readListBegin(); + struct.functions = new ArrayList(_list856.size); + Function _elem857; + for (int _i858 = 0; _i858 < _list856.size; ++_i858) { - _elem849 = new Function(); - _elem849.read(iprot); - struct.functions.add(_elem849); + _elem857 = new Function(); + _elem857.read(iprot); + struct.functions.add(_elem857); } 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 _iter851 : struct.functions) + for (Function _iter859 : struct.functions) { - _iter851.write(oprot); + _iter859.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 _iter852 : struct.functions) + for (Function _iter860 : struct.functions) { - _iter852.write(oprot); + _iter860.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 _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list853.size); - Function _elem854; - for (int _i855 = 0; _i855 < _list853.size; ++_i855) + org.apache.thrift.protocol.TList _list861 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list861.size); + Function _elem862; + for (int _i863 = 0; _i863 < _list861.size; ++_i863) { - _elem854 = new Function(); - _elem854.read(iprot); - struct.functions.add(_elem854); + _elem862 = new Function(); + _elem862.read(iprot); + struct.functions.add(_elem862); } } 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 fb591dcec5..ee535a0c80 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 _list798 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list798.size); - long _elem799; - for (int _i800 = 0; _i800 < _list798.size; ++_i800) + org.apache.thrift.protocol.TList _list806 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list806.size); + long _elem807; + for (int _i808 = 0; _i808 < _list806.size; ++_i808) { - _elem799 = iprot.readI64(); - struct.fileIds.add(_elem799); + _elem807 = iprot.readI64(); + struct.fileIds.add(_elem807); } 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 _iter801 : struct.fileIds) + for (long _iter809 : struct.fileIds) { - oprot.writeI64(_iter801); + oprot.writeI64(_iter809); } 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 _iter802 : struct.fileIds) + for (long _iter810 : struct.fileIds) { - oprot.writeI64(_iter802); + oprot.writeI64(_iter810); } } 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 _list803 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list803.size); - long _elem804; - for (int _i805 = 0; _i805 < _list803.size; ++_i805) + org.apache.thrift.protocol.TList _list811 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list811.size); + long _elem812; + for (int _i813 = 0; _i813 < _list811.size; ++_i813) { - _elem804 = iprot.readI64(); - struct.fileIds.add(_elem804); + _elem812 = iprot.readI64(); + struct.fileIds.add(_elem812); } } 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 e8dfba523d..71e92b6c03 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 _map788 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map788.size); - long _key789; - MetadataPpdResult _val790; - for (int _i791 = 0; _i791 < _map788.size; ++_i791) + org.apache.thrift.protocol.TMap _map796 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map796.size); + long _key797; + MetadataPpdResult _val798; + for (int _i799 = 0; _i799 < _map796.size; ++_i799) { - _key789 = iprot.readI64(); - _val790 = new MetadataPpdResult(); - _val790.read(iprot); - struct.metadata.put(_key789, _val790); + _key797 = iprot.readI64(); + _val798 = new MetadataPpdResult(); + _val798.read(iprot); + struct.metadata.put(_key797, _val798); } 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 _iter792 : struct.metadata.entrySet()) + for (Map.Entry _iter800 : struct.metadata.entrySet()) { - oprot.writeI64(_iter792.getKey()); - _iter792.getValue().write(oprot); + oprot.writeI64(_iter800.getKey()); + _iter800.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 _iter793 : struct.metadata.entrySet()) + for (Map.Entry _iter801 : struct.metadata.entrySet()) { - oprot.writeI64(_iter793.getKey()); - _iter793.getValue().write(oprot); + oprot.writeI64(_iter801.getKey()); + _iter801.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 _map794 = 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*_map794.size); - long _key795; - MetadataPpdResult _val796; - for (int _i797 = 0; _i797 < _map794.size; ++_i797) + org.apache.thrift.protocol.TMap _map802 = 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*_map802.size); + long _key803; + MetadataPpdResult _val804; + for (int _i805 = 0; _i805 < _map802.size; ++_i805) { - _key795 = iprot.readI64(); - _val796 = new MetadataPpdResult(); - _val796.read(iprot); - struct.metadata.put(_key795, _val796); + _key803 = iprot.readI64(); + _val804 = new MetadataPpdResult(); + _val804.read(iprot); + struct.metadata.put(_key803, _val804); } } 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 3d32f372d6..0ea6ef5fb3 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 _list816 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list816.size); - long _elem817; - for (int _i818 = 0; _i818 < _list816.size; ++_i818) + org.apache.thrift.protocol.TList _list824 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list824.size); + long _elem825; + for (int _i826 = 0; _i826 < _list824.size; ++_i826) { - _elem817 = iprot.readI64(); - struct.fileIds.add(_elem817); + _elem825 = iprot.readI64(); + struct.fileIds.add(_elem825); } 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 _iter819 : struct.fileIds) + for (long _iter827 : struct.fileIds) { - oprot.writeI64(_iter819); + oprot.writeI64(_iter827); } 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 _iter820 : struct.fileIds) + for (long _iter828 : struct.fileIds) { - oprot.writeI64(_iter820); + oprot.writeI64(_iter828); } } } @@ -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 _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list821.size); - long _elem822; - for (int _i823 = 0; _i823 < _list821.size; ++_i823) + org.apache.thrift.protocol.TList _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list829.size); + long _elem830; + for (int _i831 = 0; _i831 < _list829.size; ++_i831) { - _elem822 = iprot.readI64(); - struct.fileIds.add(_elem822); + _elem830 = iprot.readI64(); + struct.fileIds.add(_elem830); } } 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 2b176efee4..759b495bf6 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 _map806 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map806.size); - long _key807; - ByteBuffer _val808; - for (int _i809 = 0; _i809 < _map806.size; ++_i809) + org.apache.thrift.protocol.TMap _map814 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map814.size); + long _key815; + ByteBuffer _val816; + for (int _i817 = 0; _i817 < _map814.size; ++_i817) { - _key807 = iprot.readI64(); - _val808 = iprot.readBinary(); - struct.metadata.put(_key807, _val808); + _key815 = iprot.readI64(); + _val816 = iprot.readBinary(); + struct.metadata.put(_key815, _val816); } 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 _iter810 : struct.metadata.entrySet()) + for (Map.Entry _iter818 : struct.metadata.entrySet()) { - oprot.writeI64(_iter810.getKey()); - oprot.writeBinary(_iter810.getValue()); + oprot.writeI64(_iter818.getKey()); + oprot.writeBinary(_iter818.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 _iter811 : struct.metadata.entrySet()) + for (Map.Entry _iter819 : struct.metadata.entrySet()) { - oprot.writeI64(_iter811.getKey()); - oprot.writeBinary(_iter811.getValue()); + oprot.writeI64(_iter819.getKey()); + oprot.writeBinary(_iter819.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 _map812 = 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*_map812.size); - long _key813; - ByteBuffer _val814; - for (int _i815 = 0; _i815 < _map812.size; ++_i815) + org.apache.thrift.protocol.TMap _map820 = 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*_map820.size); + long _key821; + ByteBuffer _val822; + for (int _i823 = 0; _i823 < _map820.size; ++_i823) { - _key813 = iprot.readI64(); - _val814 = iprot.readBinary(); - struct.metadata.put(_key813, _val814); + _key821 = iprot.readI64(); + _val822 = iprot.readBinary(); + struct.metadata.put(_key821, _val822); } } 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 c0fe726f8a..b5a2b68efd 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 _list984 = iprot.readListBegin(); - struct.filters = new ArrayList(_list984.size); - String _elem985; - for (int _i986 = 0; _i986 < _list984.size; ++_i986) + org.apache.thrift.protocol.TList _list992 = iprot.readListBegin(); + struct.filters = new ArrayList(_list992.size); + String _elem993; + for (int _i994 = 0; _i994 < _list992.size; ++_i994) { - _elem985 = iprot.readString(); - struct.filters.add(_elem985); + _elem993 = iprot.readString(); + struct.filters.add(_elem993); } 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 _iter987 : struct.filters) + for (String _iter995 : struct.filters) { - oprot.writeString(_iter987); + oprot.writeString(_iter995); } 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 _iter988 : struct.filters) + for (String _iter996 : struct.filters) { - oprot.writeString(_iter988); + oprot.writeString(_iter996); } } } @@ -542,13 +542,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilterS } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filters = new ArrayList(_list989.size); - String _elem990; - for (int _i991 = 0; _i991 < _list989.size; ++_i991) + org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filters = new ArrayList(_list997.size); + String _elem998; + for (int _i999 = 0; _i999 < _list997.size; ++_i999) { - _elem990 = iprot.readString(); - struct.filters.add(_elem990); + _elem998 = iprot.readString(); + struct.filters.add(_elem998); } } 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 db91e0bf89..e6c9c06beb 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 _list976 = iprot.readListBegin(); - struct.fieldList = new ArrayList(_list976.size); - String _elem977; - for (int _i978 = 0; _i978 < _list976.size; ++_i978) + org.apache.thrift.protocol.TList _list984 = iprot.readListBegin(); + struct.fieldList = new ArrayList(_list984.size); + String _elem985; + for (int _i986 = 0; _i986 < _list984.size; ++_i986) { - _elem977 = iprot.readString(); - struct.fieldList.add(_elem977); + _elem985 = iprot.readString(); + struct.fieldList.add(_elem985); } 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 _iter979 : struct.fieldList) + for (String _iter987 : struct.fieldList) { - oprot.writeString(_iter979); + oprot.writeString(_iter987); } 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 _iter980 : struct.fieldList) + for (String _iter988 : struct.fieldList) { - oprot.writeString(_iter980); + oprot.writeString(_iter988); } } } @@ -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 _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fieldList = new ArrayList(_list981.size); - String _elem982; - for (int _i983 = 0; _i983 < _list981.size; ++_i983) + org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fieldList = new ArrayList(_list989.size); + String _elem990; + for (int _i991 = 0; _i991 < _list989.size; ++_i991) { - _elem982 = iprot.readString(); - struct.fieldList.add(_elem982); + _elem990 = iprot.readString(); + struct.fieldList.add(_elem990); } } 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 d26cde23fc..7ec107ea6c 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 _list1000 = iprot.readListBegin(); - struct.groupNames = new ArrayList(_list1000.size); - String _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.groupNames = new ArrayList(_list1008.size); + String _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem1001 = iprot.readString(); - struct.groupNames.add(_elem1001); + _elem1009 = iprot.readString(); + struct.groupNames.add(_elem1009); } 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 _iter1003 : struct.groupNames) + for (String _iter1011 : struct.groupNames) { - oprot.writeString(_iter1003); + oprot.writeString(_iter1011); } 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 _iter1004 : struct.groupNames) + for (String _iter1012 : struct.groupNames) { - oprot.writeString(_iter1004); + oprot.writeString(_iter1012); } } } @@ -1160,13 +1160,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.groupNames = new ArrayList(_list1005.size); - String _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.groupNames = new ArrayList(_list1013.size); + String _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem1006 = iprot.readString(); - struct.groupNames.add(_elem1006); + _elem1014 = iprot.readString(); + struct.groupNames.add(_elem1014); } } 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 3db9095b5c..faac848991 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 _list992 = iprot.readListBegin(); - struct.partitionSpec = new ArrayList(_list992.size); - PartitionSpec _elem993; - for (int _i994 = 0; _i994 < _list992.size; ++_i994) + org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); + struct.partitionSpec = new ArrayList(_list1000.size); + PartitionSpec _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem993 = new PartitionSpec(); - _elem993.read(iprot); - struct.partitionSpec.add(_elem993); + _elem1001 = new PartitionSpec(); + _elem1001.read(iprot); + struct.partitionSpec.add(_elem1001); } 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 _iter995 : struct.partitionSpec) + for (PartitionSpec _iter1003 : struct.partitionSpec) { - _iter995.write(oprot); + _iter1003.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 _iter996 : struct.partitionSpec) + for (PartitionSpec _iter1004 : struct.partitionSpec) { - _iter996.write(oprot); + _iter1004.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 _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionSpec = new ArrayList(_list997.size); - PartitionSpec _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionSpec = new ArrayList(_list1005.size); + PartitionSpec _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem998 = new PartitionSpec(); - _elem998.read(iprot); - struct.partitionSpec.add(_elem998); + _elem1006 = new PartitionSpec(); + _elem1006.read(iprot); + struct.partitionSpec.add(_elem1006); } } 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 c3f71fe13e..da361572e5 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 _list864 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list864.size); - String _elem865; - for (int _i866 = 0; _i866 < _list864.size; ++_i866) + org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list872.size); + String _elem873; + for (int _i874 = 0; _i874 < _list872.size; ++_i874) { - _elem865 = iprot.readString(); - struct.tblNames.add(_elem865); + _elem873 = iprot.readString(); + struct.tblNames.add(_elem873); } 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 _iter867 : struct.tblNames) + for (String _iter875 : struct.tblNames) { - oprot.writeString(_iter867); + oprot.writeString(_iter875); } 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 _iter868 : struct.tblNames) + for (String _iter876 : struct.tblNames) { - oprot.writeString(_iter868); + oprot.writeString(_iter876); } } } @@ -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 _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list869.size); - String _elem870; - for (int _i871 = 0; _i871 < _list869.size; ++_i871) + org.apache.thrift.protocol.TList _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list877.size); + String _elem878; + for (int _i879 = 0; _i879 < _list877.size; ++_i879) { - _elem870 = iprot.readString(); - struct.tblNames.add(_elem870); + _elem878 = iprot.readString(); + struct.tblNames.add(_elem878); } } 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 5716922bd3..b3cfc88b34 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 _list872 = iprot.readListBegin(); - struct.tables = new ArrayList(_list872.size); - Table _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + org.apache.thrift.protocol.TList _list880 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list880.size); + Table _elem881; + for (int _i882 = 0; _i882 < _list880.size; ++_i882) { - _elem873 = new Table(); - _elem873.read(iprot); - struct.tables.add(_elem873); + _elem881 = new Table(); + _elem881.read(iprot); + struct.tables.add(_elem881); } 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 _iter875 : struct.tables) + for (Table _iter883 : struct.tables) { - _iter875.write(oprot); + _iter883.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 _iter876 : struct.tables) + for (Table _iter884 : struct.tables) { - _iter876.write(oprot); + _iter884.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 _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list877.size); - Table _elem878; - for (int _i879 = 0; _i879 < _list877.size; ++_i879) + org.apache.thrift.protocol.TList _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list885.size); + Table _elem886; + for (int _i887 = 0; _i887 < _list885.size; ++_i887) { - _elem878 = new Table(); - _elem878.read(iprot); - struct.tables.add(_elem878); + _elem886 = new Table(); + _elem886.read(iprot); + struct.tables.add(_elem886); } } 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 3ef24310b2..f1ba64348e 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 _list748 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list748.size); - String _elem749; - for (int _i750 = 0; _i750 < _list748.size; ++_i750) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list756.size); + String _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) { - _elem749 = iprot.readString(); - struct.filesAdded.add(_elem749); + _elem757 = iprot.readString(); + struct.filesAdded.add(_elem757); } 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 _list751 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list751.size); - String _elem752; - for (int _i753 = 0; _i753 < _list751.size; ++_i753) + org.apache.thrift.protocol.TList _list759 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list759.size); + String _elem760; + for (int _i761 = 0; _i761 < _list759.size; ++_i761) { - _elem752 = iprot.readString(); - struct.filesAddedChecksum.add(_elem752); + _elem760 = iprot.readString(); + struct.filesAddedChecksum.add(_elem760); } 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 _list754 = iprot.readListBegin(); - struct.subDirectoryList = new ArrayList(_list754.size); - String _elem755; - for (int _i756 = 0; _i756 < _list754.size; ++_i756) + org.apache.thrift.protocol.TList _list762 = iprot.readListBegin(); + struct.subDirectoryList = new ArrayList(_list762.size); + String _elem763; + for (int _i764 = 0; _i764 < _list762.size; ++_i764) { - _elem755 = iprot.readString(); - struct.subDirectoryList.add(_elem755); + _elem763 = iprot.readString(); + struct.subDirectoryList.add(_elem763); } 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 _iter757 : struct.filesAdded) + for (String _iter765 : struct.filesAdded) { - oprot.writeString(_iter757); + oprot.writeString(_iter765); } 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 _iter758 : struct.filesAddedChecksum) + for (String _iter766 : struct.filesAddedChecksum) { - oprot.writeString(_iter758); + oprot.writeString(_iter766); } 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 _iter759 : struct.subDirectoryList) + for (String _iter767 : struct.subDirectoryList) { - oprot.writeString(_iter759); + oprot.writeString(_iter767); } 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 _iter760 : struct.filesAdded) + for (String _iter768 : struct.filesAdded) { - oprot.writeString(_iter760); + oprot.writeString(_iter768); } } 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 _iter761 : struct.filesAddedChecksum) + for (String _iter769 : struct.filesAddedChecksum) { - oprot.writeString(_iter761); + oprot.writeString(_iter769); } } } if (struct.isSetSubDirectoryList()) { { oprot.writeI32(struct.subDirectoryList.size()); - for (String _iter762 : struct.subDirectoryList) + for (String _iter770 : struct.subDirectoryList) { - oprot.writeString(_iter762); + oprot.writeString(_iter770); } } } @@ -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 _list763 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list763.size); - String _elem764; - for (int _i765 = 0; _i765 < _list763.size; ++_i765) + org.apache.thrift.protocol.TList _list771 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list771.size); + String _elem772; + for (int _i773 = 0; _i773 < _list771.size; ++_i773) { - _elem764 = iprot.readString(); - struct.filesAdded.add(_elem764); + _elem772 = iprot.readString(); + struct.filesAdded.add(_elem772); } } 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 _list766 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list766.size); - String _elem767; - for (int _i768 = 0; _i768 < _list766.size; ++_i768) + org.apache.thrift.protocol.TList _list774 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list774.size); + String _elem775; + for (int _i776 = 0; _i776 < _list774.size; ++_i776) { - _elem767 = iprot.readString(); - struct.filesAddedChecksum.add(_elem767); + _elem775 = iprot.readString(); + struct.filesAddedChecksum.add(_elem775); } } struct.setFilesAddedChecksumIsSet(true); } 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.subDirectoryList = new ArrayList(_list769.size); - String _elem770; - for (int _i771 = 0; _i771 < _list769.size; ++_i771) + org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.subDirectoryList = new ArrayList(_list777.size); + String _elem778; + for (int _i779 = 0; _i779 < _list777.size; ++_i779) { - _elem770 = iprot.readString(); - struct.subDirectoryList.add(_elem770); + _elem778 = iprot.readString(); + struct.subDirectoryList.add(_elem778); } } struct.setSubDirectoryListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java index 77e57718ef..288c365950 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java @@ -525,13 +525,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 3: // EVENT_TYPE_SKIP_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); - struct.eventTypeSkipList = new ArrayList(_list732.size); - String _elem733; - for (int _i734 = 0; _i734 < _list732.size; ++_i734) + org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); + struct.eventTypeSkipList = new ArrayList(_list740.size); + String _elem741; + for (int _i742 = 0; _i742 < _list740.size; ++_i742) { - _elem733 = iprot.readString(); - struct.eventTypeSkipList.add(_elem733); + _elem741 = iprot.readString(); + struct.eventTypeSkipList.add(_elem741); } iprot.readListEnd(); } @@ -566,9 +566,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENT_TYPE_SKIP_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.eventTypeSkipList.size())); - for (String _iter735 : struct.eventTypeSkipList) + for (String _iter743 : struct.eventTypeSkipList) { - oprot.writeString(_iter735); + oprot.writeString(_iter743); } oprot.writeListEnd(); } @@ -607,9 +607,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe if (struct.isSetEventTypeSkipList()) { { oprot.writeI32(struct.eventTypeSkipList.size()); - for (String _iter736 : struct.eventTypeSkipList) + for (String _iter744 : struct.eventTypeSkipList) { - oprot.writeString(_iter736); + oprot.writeString(_iter744); } } } @@ -627,13 +627,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventReq } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.eventTypeSkipList = new ArrayList(_list737.size); - String _elem738; - for (int _i739 = 0; _i739 < _list737.size; ++_i739) + org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.eventTypeSkipList = new ArrayList(_list745.size); + String _elem746; + for (int _i747 = 0; _i747 < _list745.size; ++_i747) { - _elem738 = iprot.readString(); - struct.eventTypeSkipList.add(_elem738); + _elem746 = iprot.readString(); + struct.eventTypeSkipList.add(_elem746); } } struct.setEventTypeSkipListIsSet(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 f559a03b92..b86f038c1e 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 _list740 = iprot.readListBegin(); - struct.events = new ArrayList(_list740.size); - NotificationEvent _elem741; - for (int _i742 = 0; _i742 < _list740.size; ++_i742) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.events = new ArrayList(_list748.size); + NotificationEvent _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem741 = new NotificationEvent(); - _elem741.read(iprot); - struct.events.add(_elem741); + _elem749 = new NotificationEvent(); + _elem749.read(iprot); + struct.events.add(_elem749); } 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 _iter743 : struct.events) + for (NotificationEvent _iter751 : struct.events) { - _iter743.write(oprot); + _iter751.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 _iter744 : struct.events) + for (NotificationEvent _iter752 : struct.events) { - _iter744.write(oprot); + _iter752.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 _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list745.size); - NotificationEvent _elem746; - for (int _i747 = 0; _i747 < _list745.size; ++_i747) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list753.size); + NotificationEvent _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem746 = new NotificationEvent(); - _elem746.read(iprot); - struct.events.add(_elem746); + _elem754 = new NotificationEvent(); + _elem754.read(iprot); + struct.events.add(_elem754); } } struct.setEventsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OptionalCompactionInfoStruct.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OptionalCompactionInfoStruct.java new file mode 100644 index 0000000000..aabd5be919 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OptionalCompactionInfoStruct.java @@ -0,0 +1,395 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class OptionalCompactionInfoStruct 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("OptionalCompactionInfoStruct"); + + private static final org.apache.thrift.protocol.TField CI_FIELD_DESC = new org.apache.thrift.protocol.TField("ci", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new OptionalCompactionInfoStructStandardSchemeFactory()); + schemes.put(TupleScheme.class, new OptionalCompactionInfoStructTupleSchemeFactory()); + } + + private CompactionInfoStruct ci; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + CI((short)1, "ci"); + + 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: // CI + return CI; + 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 _Fields optionals[] = {_Fields.CI}; + 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.CI, new org.apache.thrift.meta_data.FieldMetaData("ci", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "CompactionInfoStruct"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OptionalCompactionInfoStruct.class, metaDataMap); + } + + public OptionalCompactionInfoStruct() { + } + + /** + * Performs a deep copy on other. + */ + public OptionalCompactionInfoStruct(OptionalCompactionInfoStruct other) { + if (other.isSetCi()) { + this.ci = other.ci; + } + } + + public OptionalCompactionInfoStruct deepCopy() { + return new OptionalCompactionInfoStruct(this); + } + + @Override + public void clear() { + this.ci = null; + } + + public CompactionInfoStruct getCi() { + return this.ci; + } + + public void setCi(CompactionInfoStruct ci) { + this.ci = ci; + } + + public void unsetCi() { + this.ci = null; + } + + /** Returns true if field ci is set (has been assigned a value) and false otherwise */ + public boolean isSetCi() { + return this.ci != null; + } + + public void setCiIsSet(boolean value) { + if (!value) { + this.ci = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CI: + if (value == null) { + unsetCi(); + } else { + setCi((CompactionInfoStruct)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CI: + return getCi(); + + } + 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 CI: + return isSetCi(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof OptionalCompactionInfoStruct) + return this.equals((OptionalCompactionInfoStruct)that); + return false; + } + + public boolean equals(OptionalCompactionInfoStruct that) { + if (that == null) + return false; + + boolean this_present_ci = true && this.isSetCi(); + boolean that_present_ci = true && that.isSetCi(); + if (this_present_ci || that_present_ci) { + if (!(this_present_ci && that_present_ci)) + return false; + if (!this.ci.equals(that.ci)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_ci = true && (isSetCi()); + list.add(present_ci); + if (present_ci) + list.add(ci); + + return list.hashCode(); + } + + @Override + public int compareTo(OptionalCompactionInfoStruct other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCi()).compareTo(other.isSetCi()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCi()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ci, other.ci); + 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("OptionalCompactionInfoStruct("); + boolean first = true; + + if (isSetCi()) { + sb.append("ci:"); + if (this.ci == null) { + sb.append("null"); + } else { + sb.append(this.ci); + } + 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 OptionalCompactionInfoStructStandardSchemeFactory implements SchemeFactory { + public OptionalCompactionInfoStructStandardScheme getScheme() { + return new OptionalCompactionInfoStructStandardScheme(); + } + } + + private static class OptionalCompactionInfoStructStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, OptionalCompactionInfoStruct 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: // CI + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ci = new CompactionInfoStruct(); + struct.ci.read(iprot); + struct.setCiIsSet(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, OptionalCompactionInfoStruct struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.ci != null) { + if (struct.isSetCi()) { + oprot.writeFieldBegin(CI_FIELD_DESC); + struct.ci.write(oprot); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class OptionalCompactionInfoStructTupleSchemeFactory implements SchemeFactory { + public OptionalCompactionInfoStructTupleScheme getScheme() { + return new OptionalCompactionInfoStructTupleScheme(); + } + } + + private static class OptionalCompactionInfoStructTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, OptionalCompactionInfoStruct struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetCi()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetCi()) { + struct.ci.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, OptionalCompactionInfoStruct struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.ci = new CompactionInfoStruct(); + struct.ci.read(iprot); + struct.setCiIsSet(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 0bbb9be468..5cbfe64945 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 _list824 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list824.size); - long _elem825; - for (int _i826 = 0; _i826 < _list824.size; ++_i826) + org.apache.thrift.protocol.TList _list832 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list832.size); + long _elem833; + for (int _i834 = 0; _i834 < _list832.size; ++_i834) { - _elem825 = iprot.readI64(); - struct.fileIds.add(_elem825); + _elem833 = iprot.readI64(); + struct.fileIds.add(_elem833); } 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 _list827 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list827.size); - ByteBuffer _elem828; - for (int _i829 = 0; _i829 < _list827.size; ++_i829) + org.apache.thrift.protocol.TList _list835 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list835.size); + ByteBuffer _elem836; + for (int _i837 = 0; _i837 < _list835.size; ++_i837) { - _elem828 = iprot.readBinary(); - struct.metadata.add(_elem828); + _elem836 = iprot.readBinary(); + struct.metadata.add(_elem836); } 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 _iter830 : struct.fileIds) + for (long _iter838 : struct.fileIds) { - oprot.writeI64(_iter830); + oprot.writeI64(_iter838); } 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 _iter831 : struct.metadata) + for (ByteBuffer _iter839 : struct.metadata) { - oprot.writeBinary(_iter831); + oprot.writeBinary(_iter839); } 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 _iter832 : struct.fileIds) + for (long _iter840 : struct.fileIds) { - oprot.writeI64(_iter832); + oprot.writeI64(_iter840); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter833 : struct.metadata) + for (ByteBuffer _iter841 : struct.metadata) { - oprot.writeBinary(_iter833); + oprot.writeBinary(_iter841); } } 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 _list834 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list834.size); - long _elem835; - for (int _i836 = 0; _i836 < _list834.size; ++_i836) + org.apache.thrift.protocol.TList _list842 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list842.size); + long _elem843; + for (int _i844 = 0; _i844 < _list842.size; ++_i844) { - _elem835 = iprot.readI64(); - struct.fileIds.add(_elem835); + _elem843 = iprot.readI64(); + struct.fileIds.add(_elem843); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list837 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list837.size); - ByteBuffer _elem838; - for (int _i839 = 0; _i839 < _list837.size; ++_i839) + org.apache.thrift.protocol.TList _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list845.size); + ByteBuffer _elem846; + for (int _i847 = 0; _i847 < _list845.size; ++_i847) { - _elem838 = iprot.readBinary(); - struct.metadata.add(_elem838); + _elem846 = iprot.readBinary(); + struct.metadata.add(_elem846); } } 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 0a0393ff14..ea4cc16af5 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 _list968 = iprot.readListBegin(); - struct.partVals = new ArrayList(_list968.size); - String _elem969; - for (int _i970 = 0; _i970 < _list968.size; ++_i970) + org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); + struct.partVals = new ArrayList(_list976.size); + String _elem977; + for (int _i978 = 0; _i978 < _list976.size; ++_i978) { - _elem969 = iprot.readString(); - struct.partVals.add(_elem969); + _elem977 = iprot.readString(); + struct.partVals.add(_elem977); } 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 _iter971 : struct.partVals) + for (String _iter979 : struct.partVals) { - oprot.writeString(_iter971); + oprot.writeString(_iter979); } 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 _iter972 : struct.partVals) + for (String _iter980 : struct.partVals) { - oprot.writeString(_iter972); + oprot.writeString(_iter980); } } 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 _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partVals = new ArrayList(_list973.size); - String _elem974; - for (int _i975 = 0; _i975 < _list973.size; ++_i975) + org.apache.thrift.protocol.TList _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partVals = new ArrayList(_list981.size); + String _elem982; + for (int _i983 = 0; _i983 < _list981.size; ++_i983) { - _elem974 = iprot.readString(); - struct.partVals.add(_elem974); + _elem982 = iprot.readString(); + struct.partVals.add(_elem982); } } 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 dd169327cf..b87f65f524 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 _list944 = iprot.readListBegin(); - struct.cols = new ArrayList(_list944.size); - FieldSchema _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); + struct.cols = new ArrayList(_list952.size); + FieldSchema _elem953; + for (int _i954 = 0; _i954 < _list952.size; ++_i954) { - _elem945 = new FieldSchema(); - _elem945.read(iprot); - struct.cols.add(_elem945); + _elem953 = new FieldSchema(); + _elem953.read(iprot); + struct.cols.add(_elem953); } 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 _iter947 : struct.cols) + for (FieldSchema _iter955 : struct.cols) { - _iter947.write(oprot); + _iter955.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 _iter948 : struct.cols) + for (FieldSchema _iter956 : struct.cols) { - _iter948.write(oprot); + _iter956.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 _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list949.size); - FieldSchema _elem950; - for (int _i951 = 0; _i951 < _list949.size; ++_i951) + org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list957.size); + FieldSchema _elem958; + for (int _i959 = 0; _i959 < _list957.size; ++_i959) { - _elem950 = new FieldSchema(); - _elem950.read(iprot); - struct.cols.add(_elem950); + _elem958 = new FieldSchema(); + _elem958.read(iprot); + struct.cols.add(_elem958); } } struct.setColsIsSet(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 b6a0893524..1bdbbbf363 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 @@ -374,6 +374,20 @@ public void add_dynamic_partitions(AddDynamicPartitions rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException; + public OptionalCompactionInfoStruct find_next_compact(String workerId) throws MetaException, org.apache.thrift.TException; + + public void update_compactor_state(CompactionInfoStruct cr, long txn_id) 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; + public NotificationEventResponse get_next_notification(NotificationEventRequest rqst) throws org.apache.thrift.TException; public CurrentNotificationEventId get_current_notificationEventId() throws org.apache.thrift.TException; @@ -808,6 +822,20 @@ public void add_dynamic_partitions(AddDynamicPartitions rqst, 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 update_compactor_state(CompactionInfoStruct cr, long txn_id, 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; + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -5749,6 +5777,166 @@ public void recv_add_dynamic_partitions() throws NoSuchTxnException, TxnAbortedE return; } + public OptionalCompactionInfoStruct 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 OptionalCompactionInfoStruct 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 update_compactor_state(CompactionInfoStruct cr, long txn_id) throws org.apache.thrift.TException + { + send_update_compactor_state(cr, txn_id); + recv_update_compactor_state(); + } + + public void send_update_compactor_state(CompactionInfoStruct cr, long txn_id) throws org.apache.thrift.TException + { + update_compactor_state_args args = new update_compactor_state_args(); + args.setCr(cr); + args.setTxn_id(txn_id); + sendBase("update_compactor_state", args); + } + + public void recv_update_compactor_state() throws org.apache.thrift.TException + { + update_compactor_state_result result = new update_compactor_state_result(); + receiveBase(result, "update_compactor_state"); + 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; + } + public NotificationEventResponse get_next_notification(NotificationEventRequest rqst) throws org.apache.thrift.TException { send_get_next_notification(rqst); @@ -12921,6 +13109,236 @@ public void getResult() throws NoSuchTxnException, TxnAbortedException, org.apac } } + 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 OptionalCompactionInfoStruct 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 update_compactor_state(CompactionInfoStruct cr, long txn_id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + update_compactor_state_call method_call = new update_compactor_state_call(cr, txn_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 update_compactor_state_call extends org.apache.thrift.async.TAsyncMethodCall { + private CompactionInfoStruct cr; + private long txn_id; + public update_compactor_state_call(CompactionInfoStruct cr, long txn_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.cr = cr; + this.txn_id = txn_id; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("update_compactor_state", org.apache.thrift.protocol.TMessageType.CALL, 0)); + update_compactor_state_args args = new update_compactor_state_args(); + args.setCr(cr); + args.setTxn_id(txn_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_update_compactor_state(); + } + } + + 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(); + } + } + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_next_notification_call method_call = new get_next_notification_call(rqst, resultHandler, this, ___protocolFactory, ___transport); @@ -14671,6 +15089,13 @@ 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 update_compactor_state extends org.apache.thrift.ProcessFunction { + public update_compactor_state() { + super("update_compactor_state"); + } + + public update_compactor_state_args getEmptyArgsInstance() { + return new update_compactor_state_args(); + } + + protected boolean isOneway() { + return false; + } + + public update_compactor_state_result getResult(I iface, update_compactor_state_args args) throws org.apache.thrift.TException { + update_compactor_state_result result = new update_compactor_state_result(); + iface.update_compactor_state(args.cr, args.txn_id); + 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 get_next_notification extends org.apache.thrift.ProcessFunction { public get_next_notification() { super("get_next_notification"); @@ -20418,6 +20999,13 @@ 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(OptionalCompactionInfoStruct 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 update_compactor_state extends org.apache.thrift.AsyncProcessFunction { + public update_compactor_state() { + super("update_compactor_state"); + } + + public update_compactor_state_args getEmptyArgsInstance() { + return new update_compactor_state_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) { + update_compactor_state_result result = new update_compactor_state_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; + update_compactor_state_result result = new update_compactor_state_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, update_compactor_state_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.update_compactor_state(args.cr, args.txn_id,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 get_next_notification extends org.apache.thrift.AsyncProcessFunction { public get_next_notification() { super("get_next_notification"); @@ -43489,13 +44453,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 _list1008 = iprot.readListBegin(); - struct.success = new ArrayList(_list1008.size); - String _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); + struct.success = new ArrayList(_list1016.size); + String _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem1009 = iprot.readString(); - struct.success.add(_elem1009); + _elem1017 = iprot.readString(); + struct.success.add(_elem1017); } iprot.readListEnd(); } @@ -43530,9 +44494,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 _iter1011 : struct.success) + for (String _iter1019 : struct.success) { - oprot.writeString(_iter1011); + oprot.writeString(_iter1019); } oprot.writeListEnd(); } @@ -43571,9 +44535,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1012 : struct.success) + for (String _iter1020 : struct.success) { - oprot.writeString(_iter1012); + oprot.writeString(_iter1020); } } } @@ -43588,13 +44552,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 _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 _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1021.size); + String _elem1022; + for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) { - _elem1014 = iprot.readString(); - struct.success.add(_elem1014); + _elem1022 = iprot.readString(); + struct.success.add(_elem1022); } } struct.setSuccessIsSet(true); @@ -44248,13 +45212,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 _list1016 = iprot.readListBegin(); - struct.success = new ArrayList(_list1016.size); - String _elem1017; - for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) + org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); + struct.success = new ArrayList(_list1024.size); + String _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) { - _elem1017 = iprot.readString(); - struct.success.add(_elem1017); + _elem1025 = iprot.readString(); + struct.success.add(_elem1025); } iprot.readListEnd(); } @@ -44289,9 +45253,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 _iter1019 : struct.success) + for (String _iter1027 : struct.success) { - oprot.writeString(_iter1019); + oprot.writeString(_iter1027); } oprot.writeListEnd(); } @@ -44330,9 +45294,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1020 : struct.success) + for (String _iter1028 : struct.success) { - oprot.writeString(_iter1020); + oprot.writeString(_iter1028); } } } @@ -44347,13 +45311,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 _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1021.size); - String _elem1022; - for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) + org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1029.size); + String _elem1030; + for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) { - _elem1022 = iprot.readString(); - struct.success.add(_elem1022); + _elem1030 = iprot.readString(); + struct.success.add(_elem1030); } } struct.setSuccessIsSet(true); @@ -48960,16 +49924,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 _map1024 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1024.size); - String _key1025; - Type _val1026; - for (int _i1027 = 0; _i1027 < _map1024.size; ++_i1027) + org.apache.thrift.protocol.TMap _map1032 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1032.size); + String _key1033; + Type _val1034; + for (int _i1035 = 0; _i1035 < _map1032.size; ++_i1035) { - _key1025 = iprot.readString(); - _val1026 = new Type(); - _val1026.read(iprot); - struct.success.put(_key1025, _val1026); + _key1033 = iprot.readString(); + _val1034 = new Type(); + _val1034.read(iprot); + struct.success.put(_key1033, _val1034); } iprot.readMapEnd(); } @@ -49004,10 +49968,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 _iter1028 : struct.success.entrySet()) + for (Map.Entry _iter1036 : struct.success.entrySet()) { - oprot.writeString(_iter1028.getKey()); - _iter1028.getValue().write(oprot); + oprot.writeString(_iter1036.getKey()); + _iter1036.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -49046,10 +50010,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 _iter1029 : struct.success.entrySet()) + for (Map.Entry _iter1037 : struct.success.entrySet()) { - oprot.writeString(_iter1029.getKey()); - _iter1029.getValue().write(oprot); + oprot.writeString(_iter1037.getKey()); + _iter1037.getValue().write(oprot); } } } @@ -49064,16 +50028,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 _map1030 = 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*_map1030.size); - String _key1031; - Type _val1032; - for (int _i1033 = 0; _i1033 < _map1030.size; ++_i1033) + org.apache.thrift.protocol.TMap _map1038 = 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*_map1038.size); + String _key1039; + Type _val1040; + for (int _i1041 = 0; _i1041 < _map1038.size; ++_i1041) { - _key1031 = iprot.readString(); - _val1032 = new Type(); - _val1032.read(iprot); - struct.success.put(_key1031, _val1032); + _key1039 = iprot.readString(); + _val1040 = new Type(); + _val1040.read(iprot); + struct.success.put(_key1039, _val1040); } } struct.setSuccessIsSet(true); @@ -50108,14 +51072,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 _list1034 = iprot.readListBegin(); - struct.success = new ArrayList(_list1034.size); - FieldSchema _elem1035; - for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) + org.apache.thrift.protocol.TList _list1042 = iprot.readListBegin(); + struct.success = new ArrayList(_list1042.size); + FieldSchema _elem1043; + for (int _i1044 = 0; _i1044 < _list1042.size; ++_i1044) { - _elem1035 = new FieldSchema(); - _elem1035.read(iprot); - struct.success.add(_elem1035); + _elem1043 = new FieldSchema(); + _elem1043.read(iprot); + struct.success.add(_elem1043); } iprot.readListEnd(); } @@ -50168,9 +51132,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 _iter1037 : struct.success) + for (FieldSchema _iter1045 : struct.success) { - _iter1037.write(oprot); + _iter1045.write(oprot); } oprot.writeListEnd(); } @@ -50225,9 +51189,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1038 : struct.success) + for (FieldSchema _iter1046 : struct.success) { - _iter1038.write(oprot); + _iter1046.write(oprot); } } } @@ -50248,14 +51212,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 _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 _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) { - _elem1040 = new FieldSchema(); - _elem1040.read(iprot); - struct.success.add(_elem1040); + _elem1048 = new FieldSchema(); + _elem1048.read(iprot); + struct.success.add(_elem1048); } } struct.setSuccessIsSet(true); @@ -51409,14 +52373,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 _list1042 = iprot.readListBegin(); - struct.success = new ArrayList(_list1042.size); - FieldSchema _elem1043; - for (int _i1044 = 0; _i1044 < _list1042.size; ++_i1044) + org.apache.thrift.protocol.TList _list1050 = iprot.readListBegin(); + struct.success = new ArrayList(_list1050.size); + FieldSchema _elem1051; + for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) { - _elem1043 = new FieldSchema(); - _elem1043.read(iprot); - struct.success.add(_elem1043); + _elem1051 = new FieldSchema(); + _elem1051.read(iprot); + struct.success.add(_elem1051); } iprot.readListEnd(); } @@ -51469,9 +52433,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 _iter1045 : struct.success) + for (FieldSchema _iter1053 : struct.success) { - _iter1045.write(oprot); + _iter1053.write(oprot); } oprot.writeListEnd(); } @@ -51526,9 +52490,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1046 : struct.success) + for (FieldSchema _iter1054 : struct.success) { - _iter1046.write(oprot); + _iter1054.write(oprot); } } } @@ -51549,14 +52513,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 _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 _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) { - _elem1048 = new FieldSchema(); - _elem1048.read(iprot); - struct.success.add(_elem1048); + _elem1056 = new FieldSchema(); + _elem1056.read(iprot); + struct.success.add(_elem1056); } } struct.setSuccessIsSet(true); @@ -52601,14 +53565,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 _list1050 = iprot.readListBegin(); - struct.success = new ArrayList(_list1050.size); - FieldSchema _elem1051; - for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) + org.apache.thrift.protocol.TList _list1058 = iprot.readListBegin(); + struct.success = new ArrayList(_list1058.size); + FieldSchema _elem1059; + for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) { - _elem1051 = new FieldSchema(); - _elem1051.read(iprot); - struct.success.add(_elem1051); + _elem1059 = new FieldSchema(); + _elem1059.read(iprot); + struct.success.add(_elem1059); } iprot.readListEnd(); } @@ -52661,9 +53625,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 _iter1053 : struct.success) + for (FieldSchema _iter1061 : struct.success) { - _iter1053.write(oprot); + _iter1061.write(oprot); } oprot.writeListEnd(); } @@ -52718,9 +53682,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1054 : struct.success) + for (FieldSchema _iter1062 : struct.success) { - _iter1054.write(oprot); + _iter1062.write(oprot); } } } @@ -52741,14 +53705,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 _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 _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1063.size); + FieldSchema _elem1064; + for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) { - _elem1056 = new FieldSchema(); - _elem1056.read(iprot); - struct.success.add(_elem1056); + _elem1064 = new FieldSchema(); + _elem1064.read(iprot); + struct.success.add(_elem1064); } } struct.setSuccessIsSet(true); @@ -53902,14 +54866,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 _list1058 = iprot.readListBegin(); - struct.success = new ArrayList(_list1058.size); - FieldSchema _elem1059; - for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) + org.apache.thrift.protocol.TList _list1066 = iprot.readListBegin(); + struct.success = new ArrayList(_list1066.size); + FieldSchema _elem1067; + for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) { - _elem1059 = new FieldSchema(); - _elem1059.read(iprot); - struct.success.add(_elem1059); + _elem1067 = new FieldSchema(); + _elem1067.read(iprot); + struct.success.add(_elem1067); } iprot.readListEnd(); } @@ -53962,9 +54926,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 _iter1061 : struct.success) + for (FieldSchema _iter1069 : struct.success) { - _iter1061.write(oprot); + _iter1069.write(oprot); } oprot.writeListEnd(); } @@ -54019,9 +54983,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1062 : struct.success) + for (FieldSchema _iter1070 : struct.success) { - _iter1062.write(oprot); + _iter1070.write(oprot); } } } @@ -54042,14 +55006,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 _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1063.size); - FieldSchema _elem1064; - for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) + org.apache.thrift.protocol.TList _list1071 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1071.size); + FieldSchema _elem1072; + for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) { - _elem1064 = new FieldSchema(); - _elem1064.read(iprot); - struct.success.add(_elem1064); + _elem1072 = new FieldSchema(); + _elem1072.read(iprot); + struct.success.add(_elem1072); } } struct.setSuccessIsSet(true); @@ -57178,14 +58142,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 _list1066 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list1066.size); - SQLPrimaryKey _elem1067; - for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) + org.apache.thrift.protocol.TList _list1074 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1074.size); + SQLPrimaryKey _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem1067 = new SQLPrimaryKey(); - _elem1067.read(iprot); - struct.primaryKeys.add(_elem1067); + _elem1075 = new SQLPrimaryKey(); + _elem1075.read(iprot); + struct.primaryKeys.add(_elem1075); } iprot.readListEnd(); } @@ -57197,14 +58161,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 _list1069 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list1069.size); - SQLForeignKey _elem1070; - for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) + org.apache.thrift.protocol.TList _list1077 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1077.size); + SQLForeignKey _elem1078; + for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) { - _elem1070 = new SQLForeignKey(); - _elem1070.read(iprot); - struct.foreignKeys.add(_elem1070); + _elem1078 = new SQLForeignKey(); + _elem1078.read(iprot); + struct.foreignKeys.add(_elem1078); } iprot.readListEnd(); } @@ -57216,14 +58180,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 _list1072 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list1072.size); - SQLUniqueConstraint _elem1073; - for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) + org.apache.thrift.protocol.TList _list1080 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1080.size); + SQLUniqueConstraint _elem1081; + for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) { - _elem1073 = new SQLUniqueConstraint(); - _elem1073.read(iprot); - struct.uniqueConstraints.add(_elem1073); + _elem1081 = new SQLUniqueConstraint(); + _elem1081.read(iprot); + struct.uniqueConstraints.add(_elem1081); } iprot.readListEnd(); } @@ -57235,14 +58199,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 _list1075 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list1075.size); - SQLNotNullConstraint _elem1076; - for (int _i1077 = 0; _i1077 < _list1075.size; ++_i1077) + org.apache.thrift.protocol.TList _list1083 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1083.size); + SQLNotNullConstraint _elem1084; + for (int _i1085 = 0; _i1085 < _list1083.size; ++_i1085) { - _elem1076 = new SQLNotNullConstraint(); - _elem1076.read(iprot); - struct.notNullConstraints.add(_elem1076); + _elem1084 = new SQLNotNullConstraint(); + _elem1084.read(iprot); + struct.notNullConstraints.add(_elem1084); } iprot.readListEnd(); } @@ -57254,14 +58218,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 _list1078 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list1078.size); - SQLDefaultConstraint _elem1079; - for (int _i1080 = 0; _i1080 < _list1078.size; ++_i1080) + org.apache.thrift.protocol.TList _list1086 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1086.size); + SQLDefaultConstraint _elem1087; + for (int _i1088 = 0; _i1088 < _list1086.size; ++_i1088) { - _elem1079 = new SQLDefaultConstraint(); - _elem1079.read(iprot); - struct.defaultConstraints.add(_elem1079); + _elem1087 = new SQLDefaultConstraint(); + _elem1087.read(iprot); + struct.defaultConstraints.add(_elem1087); } iprot.readListEnd(); } @@ -57273,14 +58237,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 _list1081 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1081.size); - SQLCheckConstraint _elem1082; - for (int _i1083 = 0; _i1083 < _list1081.size; ++_i1083) + org.apache.thrift.protocol.TList _list1089 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1089.size); + SQLCheckConstraint _elem1090; + for (int _i1091 = 0; _i1091 < _list1089.size; ++_i1091) { - _elem1082 = new SQLCheckConstraint(); - _elem1082.read(iprot); - struct.checkConstraints.add(_elem1082); + _elem1090 = new SQLCheckConstraint(); + _elem1090.read(iprot); + struct.checkConstraints.add(_elem1090); } iprot.readListEnd(); } @@ -57311,9 +58275,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 _iter1084 : struct.primaryKeys) + for (SQLPrimaryKey _iter1092 : struct.primaryKeys) { - _iter1084.write(oprot); + _iter1092.write(oprot); } oprot.writeListEnd(); } @@ -57323,9 +58287,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 _iter1085 : struct.foreignKeys) + for (SQLForeignKey _iter1093 : struct.foreignKeys) { - _iter1085.write(oprot); + _iter1093.write(oprot); } oprot.writeListEnd(); } @@ -57335,9 +58299,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 _iter1086 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1094 : struct.uniqueConstraints) { - _iter1086.write(oprot); + _iter1094.write(oprot); } oprot.writeListEnd(); } @@ -57347,9 +58311,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 _iter1087 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1095 : struct.notNullConstraints) { - _iter1087.write(oprot); + _iter1095.write(oprot); } oprot.writeListEnd(); } @@ -57359,9 +58323,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 _iter1088 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1096 : struct.defaultConstraints) { - _iter1088.write(oprot); + _iter1096.write(oprot); } oprot.writeListEnd(); } @@ -57371,9 +58335,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 _iter1089 : struct.checkConstraints) + for (SQLCheckConstraint _iter1097 : struct.checkConstraints) { - _iter1089.write(oprot); + _iter1097.write(oprot); } oprot.writeListEnd(); } @@ -57425,54 +58389,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1090 : struct.primaryKeys) + for (SQLPrimaryKey _iter1098 : struct.primaryKeys) { - _iter1090.write(oprot); + _iter1098.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1091 : struct.foreignKeys) + for (SQLForeignKey _iter1099 : struct.foreignKeys) { - _iter1091.write(oprot); + _iter1099.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1092 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1100 : struct.uniqueConstraints) { - _iter1092.write(oprot); + _iter1100.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1093 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1101 : struct.notNullConstraints) { - _iter1093.write(oprot); + _iter1101.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1094 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1102 : struct.defaultConstraints) { - _iter1094.write(oprot); + _iter1102.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1095 : struct.checkConstraints) + for (SQLCheckConstraint _iter1103 : struct.checkConstraints) { - _iter1095.write(oprot); + _iter1103.write(oprot); } } } @@ -57489,84 +58453,84 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1096 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1096.size); - SQLPrimaryKey _elem1097; - for (int _i1098 = 0; _i1098 < _list1096.size; ++_i1098) + org.apache.thrift.protocol.TList _list1104 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1104.size); + SQLPrimaryKey _elem1105; + for (int _i1106 = 0; _i1106 < _list1104.size; ++_i1106) { - _elem1097 = new SQLPrimaryKey(); - _elem1097.read(iprot); - struct.primaryKeys.add(_elem1097); + _elem1105 = new SQLPrimaryKey(); + _elem1105.read(iprot); + struct.primaryKeys.add(_elem1105); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1099 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1099.size); - SQLForeignKey _elem1100; - for (int _i1101 = 0; _i1101 < _list1099.size; ++_i1101) + org.apache.thrift.protocol.TList _list1107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1107.size); + SQLForeignKey _elem1108; + for (int _i1109 = 0; _i1109 < _list1107.size; ++_i1109) { - _elem1100 = new SQLForeignKey(); - _elem1100.read(iprot); - struct.foreignKeys.add(_elem1100); + _elem1108 = new SQLForeignKey(); + _elem1108.read(iprot); + struct.foreignKeys.add(_elem1108); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1102 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1102.size); - SQLUniqueConstraint _elem1103; - for (int _i1104 = 0; _i1104 < _list1102.size; ++_i1104) + org.apache.thrift.protocol.TList _list1110 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1110.size); + SQLUniqueConstraint _elem1111; + for (int _i1112 = 0; _i1112 < _list1110.size; ++_i1112) { - _elem1103 = new SQLUniqueConstraint(); - _elem1103.read(iprot); - struct.uniqueConstraints.add(_elem1103); + _elem1111 = new SQLUniqueConstraint(); + _elem1111.read(iprot); + struct.uniqueConstraints.add(_elem1111); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1105.size); - SQLNotNullConstraint _elem1106; - for (int _i1107 = 0; _i1107 < _list1105.size; ++_i1107) + org.apache.thrift.protocol.TList _list1113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1113.size); + SQLNotNullConstraint _elem1114; + for (int _i1115 = 0; _i1115 < _list1113.size; ++_i1115) { - _elem1106 = new SQLNotNullConstraint(); - _elem1106.read(iprot); - struct.notNullConstraints.add(_elem1106); + _elem1114 = new SQLNotNullConstraint(); + _elem1114.read(iprot); + struct.notNullConstraints.add(_elem1114); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1108 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1108.size); - SQLDefaultConstraint _elem1109; - for (int _i1110 = 0; _i1110 < _list1108.size; ++_i1110) + org.apache.thrift.protocol.TList _list1116 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1116.size); + SQLDefaultConstraint _elem1117; + for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) { - _elem1109 = new SQLDefaultConstraint(); - _elem1109.read(iprot); - struct.defaultConstraints.add(_elem1109); + _elem1117 = new SQLDefaultConstraint(); + _elem1117.read(iprot); + struct.defaultConstraints.add(_elem1117); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1111.size); - SQLCheckConstraint _elem1112; - for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) + org.apache.thrift.protocol.TList _list1119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1119.size); + SQLCheckConstraint _elem1120; + for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) { - _elem1112 = new SQLCheckConstraint(); - _elem1112.read(iprot); - struct.checkConstraints.add(_elem1112); + _elem1120 = new SQLCheckConstraint(); + _elem1120.read(iprot); + struct.checkConstraints.add(_elem1120); } } struct.setCheckConstraintsIsSet(true); @@ -66716,13 +67680,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 _list1114 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1114.size); - String _elem1115; - for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) + org.apache.thrift.protocol.TList _list1122 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1122.size); + String _elem1123; + for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) { - _elem1115 = iprot.readString(); - struct.partNames.add(_elem1115); + _elem1123 = iprot.readString(); + struct.partNames.add(_elem1123); } iprot.readListEnd(); } @@ -66758,9 +67722,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 _iter1117 : struct.partNames) + for (String _iter1125 : struct.partNames) { - oprot.writeString(_iter1117); + oprot.writeString(_iter1125); } oprot.writeListEnd(); } @@ -66803,9 +67767,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter1118 : struct.partNames) + for (String _iter1126 : struct.partNames) { - oprot.writeString(_iter1118); + oprot.writeString(_iter1126); } } } @@ -66825,13 +67789,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1119.size); - String _elem1120; - for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) + org.apache.thrift.protocol.TList _list1127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1127.size); + String _elem1128; + for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) { - _elem1120 = iprot.readString(); - struct.partNames.add(_elem1120); + _elem1128 = iprot.readString(); + struct.partNames.add(_elem1128); } } struct.setPartNamesIsSet(true); @@ -68888,13 +69852,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 _list1122 = iprot.readListBegin(); - struct.success = new ArrayList(_list1122.size); - String _elem1123; - for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) + org.apache.thrift.protocol.TList _list1130 = iprot.readListBegin(); + struct.success = new ArrayList(_list1130.size); + String _elem1131; + for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) { - _elem1123 = iprot.readString(); - struct.success.add(_elem1123); + _elem1131 = iprot.readString(); + struct.success.add(_elem1131); } iprot.readListEnd(); } @@ -68929,9 +69893,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 _iter1125 : struct.success) + for (String _iter1133 : struct.success) { - oprot.writeString(_iter1125); + oprot.writeString(_iter1133); } oprot.writeListEnd(); } @@ -68970,9 +69934,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1126 : struct.success) + for (String _iter1134 : struct.success) { - oprot.writeString(_iter1126); + oprot.writeString(_iter1134); } } } @@ -68987,13 +69951,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 _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 _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) { - _elem1128 = iprot.readString(); - struct.success.add(_elem1128); + _elem1136 = iprot.readString(); + struct.success.add(_elem1136); } } struct.setSuccessIsSet(true); @@ -69967,13 +70931,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 _list1130 = iprot.readListBegin(); - struct.success = new ArrayList(_list1130.size); - String _elem1131; - for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) + org.apache.thrift.protocol.TList _list1138 = iprot.readListBegin(); + struct.success = new ArrayList(_list1138.size); + String _elem1139; + for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) { - _elem1131 = iprot.readString(); - struct.success.add(_elem1131); + _elem1139 = iprot.readString(); + struct.success.add(_elem1139); } iprot.readListEnd(); } @@ -70008,9 +70972,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 _iter1133 : struct.success) + for (String _iter1141 : struct.success) { - oprot.writeString(_iter1133); + oprot.writeString(_iter1141); } oprot.writeListEnd(); } @@ -70049,9 +71013,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1134 : struct.success) + for (String _iter1142 : struct.success) { - oprot.writeString(_iter1134); + oprot.writeString(_iter1142); } } } @@ -70066,13 +71030,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 _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 _list1143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1143.size); + String _elem1144; + for (int _i1145 = 0; _i1145 < _list1143.size; ++_i1145) { - _elem1136 = iprot.readString(); - struct.success.add(_elem1136); + _elem1144 = iprot.readString(); + struct.success.add(_elem1144); } } struct.setSuccessIsSet(true); @@ -70838,13 +71802,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 _list1138 = iprot.readListBegin(); - struct.success = new ArrayList(_list1138.size); - String _elem1139; - for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) + org.apache.thrift.protocol.TList _list1146 = iprot.readListBegin(); + struct.success = new ArrayList(_list1146.size); + String _elem1147; + for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) { - _elem1139 = iprot.readString(); - struct.success.add(_elem1139); + _elem1147 = iprot.readString(); + struct.success.add(_elem1147); } iprot.readListEnd(); } @@ -70879,9 +71843,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 _iter1141 : struct.success) + for (String _iter1149 : struct.success) { - oprot.writeString(_iter1141); + oprot.writeString(_iter1149); } oprot.writeListEnd(); } @@ -70920,9 +71884,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1142 : struct.success) + for (String _iter1150 : struct.success) { - oprot.writeString(_iter1142); + oprot.writeString(_iter1150); } } } @@ -70937,13 +71901,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 _list1143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1143.size); - String _elem1144; - for (int _i1145 = 0; _i1145 < _list1143.size; ++_i1145) + org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1151.size); + String _elem1152; + for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) { - _elem1144 = iprot.readString(); - struct.success.add(_elem1144); + _elem1152 = iprot.readString(); + struct.success.add(_elem1152); } } struct.setSuccessIsSet(true); @@ -71448,13 +72412,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 _list1146 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1146.size); - String _elem1147; - for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) + org.apache.thrift.protocol.TList _list1154 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1154.size); + String _elem1155; + for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) { - _elem1147 = iprot.readString(); - struct.tbl_types.add(_elem1147); + _elem1155 = iprot.readString(); + struct.tbl_types.add(_elem1155); } iprot.readListEnd(); } @@ -71490,9 +72454,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 _iter1149 : struct.tbl_types) + for (String _iter1157 : struct.tbl_types) { - oprot.writeString(_iter1149); + oprot.writeString(_iter1157); } oprot.writeListEnd(); } @@ -71535,9 +72499,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 _iter1150 : struct.tbl_types) + for (String _iter1158 : struct.tbl_types) { - oprot.writeString(_iter1150); + oprot.writeString(_iter1158); } } } @@ -71557,13 +72521,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1151.size); - String _elem1152; - for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) + org.apache.thrift.protocol.TList _list1159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1159.size); + String _elem1160; + for (int _i1161 = 0; _i1161 < _list1159.size; ++_i1161) { - _elem1152 = iprot.readString(); - struct.tbl_types.add(_elem1152); + _elem1160 = iprot.readString(); + struct.tbl_types.add(_elem1160); } } struct.setTbl_typesIsSet(true); @@ -71969,14 +72933,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 _list1154 = iprot.readListBegin(); - struct.success = new ArrayList(_list1154.size); - TableMeta _elem1155; - for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) + org.apache.thrift.protocol.TList _list1162 = iprot.readListBegin(); + struct.success = new ArrayList(_list1162.size); + TableMeta _elem1163; + for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) { - _elem1155 = new TableMeta(); - _elem1155.read(iprot); - struct.success.add(_elem1155); + _elem1163 = new TableMeta(); + _elem1163.read(iprot); + struct.success.add(_elem1163); } iprot.readListEnd(); } @@ -72011,9 +72975,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 _iter1157 : struct.success) + for (TableMeta _iter1165 : struct.success) { - _iter1157.write(oprot); + _iter1165.write(oprot); } oprot.writeListEnd(); } @@ -72052,9 +73016,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1158 : struct.success) + for (TableMeta _iter1166 : struct.success) { - _iter1158.write(oprot); + _iter1166.write(oprot); } } } @@ -72069,14 +73033,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 _list1159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1159.size); - TableMeta _elem1160; - for (int _i1161 = 0; _i1161 < _list1159.size; ++_i1161) + org.apache.thrift.protocol.TList _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1167.size); + TableMeta _elem1168; + for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169) { - _elem1160 = new TableMeta(); - _elem1160.read(iprot); - struct.success.add(_elem1160); + _elem1168 = new TableMeta(); + _elem1168.read(iprot); + struct.success.add(_elem1168); } } struct.setSuccessIsSet(true); @@ -72842,13 +73806,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 _list1162 = iprot.readListBegin(); - struct.success = new ArrayList(_list1162.size); - String _elem1163; - for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) + org.apache.thrift.protocol.TList _list1170 = iprot.readListBegin(); + struct.success = new ArrayList(_list1170.size); + String _elem1171; + for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) { - _elem1163 = iprot.readString(); - struct.success.add(_elem1163); + _elem1171 = iprot.readString(); + struct.success.add(_elem1171); } iprot.readListEnd(); } @@ -72883,9 +73847,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 _iter1165 : struct.success) + for (String _iter1173 : struct.success) { - oprot.writeString(_iter1165); + oprot.writeString(_iter1173); } oprot.writeListEnd(); } @@ -72924,9 +73888,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1166 : struct.success) + for (String _iter1174 : struct.success) { - oprot.writeString(_iter1166); + oprot.writeString(_iter1174); } } } @@ -72941,13 +73905,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 _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1167.size); - String _elem1168; - for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169) + org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1175.size); + String _elem1176; + for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) { - _elem1168 = iprot.readString(); - struct.success.add(_elem1168); + _elem1176 = iprot.readString(); + struct.success.add(_elem1176); } } struct.setSuccessIsSet(true); @@ -74400,13 +75364,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 _list1170 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1170.size); - String _elem1171; - for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) + org.apache.thrift.protocol.TList _list1178 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1178.size); + String _elem1179; + for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) { - _elem1171 = iprot.readString(); - struct.tbl_names.add(_elem1171); + _elem1179 = iprot.readString(); + struct.tbl_names.add(_elem1179); } iprot.readListEnd(); } @@ -74437,9 +75401,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 _iter1173 : struct.tbl_names) + for (String _iter1181 : struct.tbl_names) { - oprot.writeString(_iter1173); + oprot.writeString(_iter1181); } oprot.writeListEnd(); } @@ -74476,9 +75440,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 _iter1174 : struct.tbl_names) + for (String _iter1182 : struct.tbl_names) { - oprot.writeString(_iter1174); + oprot.writeString(_iter1182); } } } @@ -74494,13 +75458,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1175.size); - String _elem1176; - for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) + org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1183.size); + String _elem1184; + for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) { - _elem1176 = iprot.readString(); - struct.tbl_names.add(_elem1176); + _elem1184 = iprot.readString(); + struct.tbl_names.add(_elem1184); } } struct.setTbl_namesIsSet(true); @@ -74825,14 +75789,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 _list1178 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1178.size); - Table _elem1179; - for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) + org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1186.size); + Table _elem1187; + for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) { - _elem1179 = new Table(); - _elem1179.read(iprot); - struct.success.add(_elem1179); + _elem1187 = new Table(); + _elem1187.read(iprot); + struct.success.add(_elem1187); } iprot.readListEnd(); } @@ -74858,9 +75822,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 _iter1181 : struct.success) + for (Table _iter1189 : struct.success) { - _iter1181.write(oprot); + _iter1189.write(oprot); } oprot.writeListEnd(); } @@ -74891,9 +75855,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1182 : struct.success) + for (Table _iter1190 : struct.success) { - _iter1182.write(oprot); + _iter1190.write(oprot); } } } @@ -74905,14 +75869,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 _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1183.size); - Table _elem1184; - for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) + org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1191.size); + Table _elem1192; + for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) { - _elem1184 = new Table(); - _elem1184.read(iprot); - struct.success.add(_elem1184); + _elem1192 = new Table(); + _elem1192.read(iprot); + struct.success.add(_elem1192); } } struct.setSuccessIsSet(true); @@ -80420,13 +81384,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 _list1186 = iprot.readListBegin(); - struct.success = new ArrayList(_list1186.size); - String _elem1187; - for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) + org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin(); + struct.success = new ArrayList(_list1194.size); + String _elem1195; + for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) { - _elem1187 = iprot.readString(); - struct.success.add(_elem1187); + _elem1195 = iprot.readString(); + struct.success.add(_elem1195); } iprot.readListEnd(); } @@ -80479,9 +81443,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 _iter1189 : struct.success) + for (String _iter1197 : struct.success) { - oprot.writeString(_iter1189); + oprot.writeString(_iter1197); } oprot.writeListEnd(); } @@ -80536,9 +81500,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1190 : struct.success) + for (String _iter1198 : struct.success) { - oprot.writeString(_iter1190); + oprot.writeString(_iter1198); } } } @@ -80559,13 +81523,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 _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1191.size); - String _elem1192; - for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) + org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1199.size); + String _elem1200; + for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) { - _elem1192 = iprot.readString(); - struct.success.add(_elem1192); + _elem1200 = iprot.readString(); + struct.success.add(_elem1200); } } struct.setSuccessIsSet(true); @@ -87362,14 +88326,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 _list1194 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1194.size); - Partition _elem1195; - for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) + org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1202.size); + Partition _elem1203; + for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) { - _elem1195 = new Partition(); - _elem1195.read(iprot); - struct.new_parts.add(_elem1195); + _elem1203 = new Partition(); + _elem1203.read(iprot); + struct.new_parts.add(_elem1203); } iprot.readListEnd(); } @@ -87395,9 +88359,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 _iter1197 : struct.new_parts) + for (Partition _iter1205 : struct.new_parts) { - _iter1197.write(oprot); + _iter1205.write(oprot); } oprot.writeListEnd(); } @@ -87428,9 +88392,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 _iter1198 : struct.new_parts) + for (Partition _iter1206 : struct.new_parts) { - _iter1198.write(oprot); + _iter1206.write(oprot); } } } @@ -87442,14 +88406,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 _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1199.size); - Partition _elem1200; - for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) + org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1207.size); + Partition _elem1208; + for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) { - _elem1200 = new Partition(); - _elem1200.read(iprot); - struct.new_parts.add(_elem1200); + _elem1208 = new Partition(); + _elem1208.read(iprot); + struct.new_parts.add(_elem1208); } } struct.setNew_partsIsSet(true); @@ -88450,14 +89414,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 _list1202 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1202.size); - PartitionSpec _elem1203; - for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) + org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1210.size); + PartitionSpec _elem1211; + for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) { - _elem1203 = new PartitionSpec(); - _elem1203.read(iprot); - struct.new_parts.add(_elem1203); + _elem1211 = new PartitionSpec(); + _elem1211.read(iprot); + struct.new_parts.add(_elem1211); } iprot.readListEnd(); } @@ -88483,9 +89447,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 _iter1205 : struct.new_parts) + for (PartitionSpec _iter1213 : struct.new_parts) { - _iter1205.write(oprot); + _iter1213.write(oprot); } oprot.writeListEnd(); } @@ -88516,9 +89480,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 _iter1206 : struct.new_parts) + for (PartitionSpec _iter1214 : struct.new_parts) { - _iter1206.write(oprot); + _iter1214.write(oprot); } } } @@ -88530,14 +89494,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 _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1207.size); - PartitionSpec _elem1208; - for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) + org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1215.size); + PartitionSpec _elem1216; + for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) { - _elem1208 = new PartitionSpec(); - _elem1208.read(iprot); - struct.new_parts.add(_elem1208); + _elem1216 = new PartitionSpec(); + _elem1216.read(iprot); + struct.new_parts.add(_elem1216); } } struct.setNew_partsIsSet(true); @@ -89713,13 +90677,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 _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 _list1218 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1218.size); + String _elem1219; + for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) { - _elem1211 = iprot.readString(); - struct.part_vals.add(_elem1211); + _elem1219 = iprot.readString(); + struct.part_vals.add(_elem1219); } iprot.readListEnd(); } @@ -89755,9 +90719,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 _iter1213 : struct.part_vals) + for (String _iter1221 : struct.part_vals) { - oprot.writeString(_iter1213); + oprot.writeString(_iter1221); } oprot.writeListEnd(); } @@ -89800,9 +90764,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 _iter1214 : struct.part_vals) + for (String _iter1222 : struct.part_vals) { - oprot.writeString(_iter1214); + oprot.writeString(_iter1222); } } } @@ -89822,13 +90786,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } 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 _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) { - _elem1216 = iprot.readString(); - struct.part_vals.add(_elem1216); + _elem1224 = iprot.readString(); + struct.part_vals.add(_elem1224); } } struct.setPart_valsIsSet(true); @@ -92137,13 +93101,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 _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 _list1226 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1226.size); + String _elem1227; + for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) { - _elem1219 = iprot.readString(); - struct.part_vals.add(_elem1219); + _elem1227 = iprot.readString(); + struct.part_vals.add(_elem1227); } iprot.readListEnd(); } @@ -92188,9 +93152,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 _iter1221 : struct.part_vals) + for (String _iter1229 : struct.part_vals) { - oprot.writeString(_iter1221); + oprot.writeString(_iter1229); } oprot.writeListEnd(); } @@ -92241,9 +93205,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 _iter1222 : struct.part_vals) + for (String _iter1230 : struct.part_vals) { - oprot.writeString(_iter1222); + oprot.writeString(_iter1230); } } } @@ -92266,13 +93230,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } 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 _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) { - _elem1224 = iprot.readString(); - struct.part_vals.add(_elem1224); + _elem1232 = iprot.readString(); + struct.part_vals.add(_elem1232); } } struct.setPart_valsIsSet(true); @@ -96142,13 +97106,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 _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 _list1234 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1234.size); + String _elem1235; + for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) { - _elem1227 = iprot.readString(); - struct.part_vals.add(_elem1227); + _elem1235 = iprot.readString(); + struct.part_vals.add(_elem1235); } iprot.readListEnd(); } @@ -96192,9 +97156,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 _iter1229 : struct.part_vals) + for (String _iter1237 : struct.part_vals) { - oprot.writeString(_iter1229); + oprot.writeString(_iter1237); } oprot.writeListEnd(); } @@ -96243,9 +97207,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 _iter1230 : struct.part_vals) + for (String _iter1238 : struct.part_vals) { - oprot.writeString(_iter1230); + oprot.writeString(_iter1238); } } } @@ -96268,13 +97232,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } 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 _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) { - _elem1232 = iprot.readString(); - struct.part_vals.add(_elem1232); + _elem1240 = iprot.readString(); + struct.part_vals.add(_elem1240); } } struct.setPart_valsIsSet(true); @@ -97513,13 +98477,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 _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 _list1242 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1242.size); + String _elem1243; + for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) { - _elem1235 = iprot.readString(); - struct.part_vals.add(_elem1235); + _elem1243 = iprot.readString(); + struct.part_vals.add(_elem1243); } iprot.readListEnd(); } @@ -97572,9 +98536,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 _iter1237 : struct.part_vals) + for (String _iter1245 : struct.part_vals) { - oprot.writeString(_iter1237); + oprot.writeString(_iter1245); } oprot.writeListEnd(); } @@ -97631,9 +98595,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 _iter1238 : struct.part_vals) + for (String _iter1246 : struct.part_vals) { - oprot.writeString(_iter1238); + oprot.writeString(_iter1246); } } } @@ -97659,13 +98623,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } 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 _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1247.size); + String _elem1248; + for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) { - _elem1240 = iprot.readString(); - struct.part_vals.add(_elem1240); + _elem1248 = iprot.readString(); + struct.part_vals.add(_elem1248); } } struct.setPart_valsIsSet(true); @@ -102267,13 +103231,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 _list1242 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1242.size); - String _elem1243; - for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) + org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1250.size); + String _elem1251; + for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) { - _elem1243 = iprot.readString(); - struct.part_vals.add(_elem1243); + _elem1251 = iprot.readString(); + struct.part_vals.add(_elem1251); } iprot.readListEnd(); } @@ -102309,9 +103273,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 _iter1245 : struct.part_vals) + for (String _iter1253 : struct.part_vals) { - oprot.writeString(_iter1245); + oprot.writeString(_iter1253); } oprot.writeListEnd(); } @@ -102354,9 +103318,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 _iter1246 : struct.part_vals) + for (String _iter1254 : struct.part_vals) { - oprot.writeString(_iter1246); + oprot.writeString(_iter1254); } } } @@ -102376,13 +103340,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1247.size); - String _elem1248; - for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) + org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1255.size); + String _elem1256; + for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) { - _elem1248 = iprot.readString(); - struct.part_vals.add(_elem1248); + _elem1256 = iprot.readString(); + struct.part_vals.add(_elem1256); } } struct.setPart_valsIsSet(true); @@ -103600,15 +104564,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 _map1250 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1250.size); - String _key1251; - String _val1252; - for (int _i1253 = 0; _i1253 < _map1250.size; ++_i1253) + org.apache.thrift.protocol.TMap _map1258 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1258.size); + String _key1259; + String _val1260; + for (int _i1261 = 0; _i1261 < _map1258.size; ++_i1261) { - _key1251 = iprot.readString(); - _val1252 = iprot.readString(); - struct.partitionSpecs.put(_key1251, _val1252); + _key1259 = iprot.readString(); + _val1260 = iprot.readString(); + struct.partitionSpecs.put(_key1259, _val1260); } iprot.readMapEnd(); } @@ -103666,10 +104630,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 _iter1254 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1262 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1254.getKey()); - oprot.writeString(_iter1254.getValue()); + oprot.writeString(_iter1262.getKey()); + oprot.writeString(_iter1262.getValue()); } oprot.writeMapEnd(); } @@ -103732,10 +104696,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1255 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1263 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1255.getKey()); - oprot.writeString(_iter1255.getValue()); + oprot.writeString(_iter1263.getKey()); + oprot.writeString(_iter1263.getValue()); } } } @@ -103759,15 +104723,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 _map1256 = 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*_map1256.size); - String _key1257; - String _val1258; - for (int _i1259 = 0; _i1259 < _map1256.size; ++_i1259) + org.apache.thrift.protocol.TMap _map1264 = 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*_map1264.size); + String _key1265; + String _val1266; + for (int _i1267 = 0; _i1267 < _map1264.size; ++_i1267) { - _key1257 = iprot.readString(); - _val1258 = iprot.readString(); - struct.partitionSpecs.put(_key1257, _val1258); + _key1265 = iprot.readString(); + _val1266 = iprot.readString(); + struct.partitionSpecs.put(_key1265, _val1266); } } struct.setPartitionSpecsIsSet(true); @@ -105213,15 +106177,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 _map1260 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1260.size); - String _key1261; - String _val1262; - for (int _i1263 = 0; _i1263 < _map1260.size; ++_i1263) + org.apache.thrift.protocol.TMap _map1268 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1268.size); + String _key1269; + String _val1270; + for (int _i1271 = 0; _i1271 < _map1268.size; ++_i1271) { - _key1261 = iprot.readString(); - _val1262 = iprot.readString(); - struct.partitionSpecs.put(_key1261, _val1262); + _key1269 = iprot.readString(); + _val1270 = iprot.readString(); + struct.partitionSpecs.put(_key1269, _val1270); } iprot.readMapEnd(); } @@ -105279,10 +106243,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 _iter1264 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1272 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1264.getKey()); - oprot.writeString(_iter1264.getValue()); + oprot.writeString(_iter1272.getKey()); + oprot.writeString(_iter1272.getValue()); } oprot.writeMapEnd(); } @@ -105345,10 +106309,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1265 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1273 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1265.getKey()); - oprot.writeString(_iter1265.getValue()); + oprot.writeString(_iter1273.getKey()); + oprot.writeString(_iter1273.getValue()); } } } @@ -105372,15 +106336,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 _map1266 = 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*_map1266.size); - String _key1267; - String _val1268; - for (int _i1269 = 0; _i1269 < _map1266.size; ++_i1269) + org.apache.thrift.protocol.TMap _map1274 = 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*_map1274.size); + String _key1275; + String _val1276; + for (int _i1277 = 0; _i1277 < _map1274.size; ++_i1277) { - _key1267 = iprot.readString(); - _val1268 = iprot.readString(); - struct.partitionSpecs.put(_key1267, _val1268); + _key1275 = iprot.readString(); + _val1276 = iprot.readString(); + struct.partitionSpecs.put(_key1275, _val1276); } } struct.setPartitionSpecsIsSet(true); @@ -106045,14 +107009,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 _list1270 = iprot.readListBegin(); - struct.success = new ArrayList(_list1270.size); - Partition _elem1271; - for (int _i1272 = 0; _i1272 < _list1270.size; ++_i1272) + org.apache.thrift.protocol.TList _list1278 = iprot.readListBegin(); + struct.success = new ArrayList(_list1278.size); + Partition _elem1279; + for (int _i1280 = 0; _i1280 < _list1278.size; ++_i1280) { - _elem1271 = new Partition(); - _elem1271.read(iprot); - struct.success.add(_elem1271); + _elem1279 = new Partition(); + _elem1279.read(iprot); + struct.success.add(_elem1279); } iprot.readListEnd(); } @@ -106114,9 +107078,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 _iter1273 : struct.success) + for (Partition _iter1281 : struct.success) { - _iter1273.write(oprot); + _iter1281.write(oprot); } oprot.writeListEnd(); } @@ -106179,9 +107143,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1274 : struct.success) + for (Partition _iter1282 : struct.success) { - _iter1274.write(oprot); + _iter1282.write(oprot); } } } @@ -106205,14 +107169,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 _list1275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1275.size); - Partition _elem1276; - for (int _i1277 = 0; _i1277 < _list1275.size; ++_i1277) + org.apache.thrift.protocol.TList _list1283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1283.size); + Partition _elem1284; + for (int _i1285 = 0; _i1285 < _list1283.size; ++_i1285) { - _elem1276 = new Partition(); - _elem1276.read(iprot); - struct.success.add(_elem1276); + _elem1284 = new Partition(); + _elem1284.read(iprot); + struct.success.add(_elem1284); } } struct.setSuccessIsSet(true); @@ -106911,13 +107875,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 _list1278 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1278.size); - String _elem1279; - for (int _i1280 = 0; _i1280 < _list1278.size; ++_i1280) + org.apache.thrift.protocol.TList _list1286 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1286.size); + String _elem1287; + for (int _i1288 = 0; _i1288 < _list1286.size; ++_i1288) { - _elem1279 = iprot.readString(); - struct.part_vals.add(_elem1279); + _elem1287 = iprot.readString(); + struct.part_vals.add(_elem1287); } iprot.readListEnd(); } @@ -106937,13 +107901,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 _list1281 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1281.size); - String _elem1282; - for (int _i1283 = 0; _i1283 < _list1281.size; ++_i1283) + org.apache.thrift.protocol.TList _list1289 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1289.size); + String _elem1290; + for (int _i1291 = 0; _i1291 < _list1289.size; ++_i1291) { - _elem1282 = iprot.readString(); - struct.group_names.add(_elem1282); + _elem1290 = iprot.readString(); + struct.group_names.add(_elem1290); } iprot.readListEnd(); } @@ -106979,9 +107943,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 _iter1284 : struct.part_vals) + for (String _iter1292 : struct.part_vals) { - oprot.writeString(_iter1284); + oprot.writeString(_iter1292); } oprot.writeListEnd(); } @@ -106996,9 +107960,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 _iter1285 : struct.group_names) + for (String _iter1293 : struct.group_names) { - oprot.writeString(_iter1285); + oprot.writeString(_iter1293); } oprot.writeListEnd(); } @@ -107047,9 +108011,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 _iter1286 : struct.part_vals) + for (String _iter1294 : struct.part_vals) { - oprot.writeString(_iter1286); + oprot.writeString(_iter1294); } } } @@ -107059,9 +108023,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 _iter1287 : struct.group_names) + for (String _iter1295 : struct.group_names) { - oprot.writeString(_iter1287); + oprot.writeString(_iter1295); } } } @@ -107081,13 +108045,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1288 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1288.size); - String _elem1289; - for (int _i1290 = 0; _i1290 < _list1288.size; ++_i1290) + org.apache.thrift.protocol.TList _list1296 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1296.size); + String _elem1297; + for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) { - _elem1289 = iprot.readString(); - struct.part_vals.add(_elem1289); + _elem1297 = iprot.readString(); + struct.part_vals.add(_elem1297); } } struct.setPart_valsIsSet(true); @@ -107098,13 +108062,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1291.size); - String _elem1292; - for (int _i1293 = 0; _i1293 < _list1291.size; ++_i1293) + 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) { - _elem1292 = iprot.readString(); - struct.group_names.add(_elem1292); + _elem1300 = iprot.readString(); + struct.group_names.add(_elem1300); } } struct.setGroup_namesIsSet(true); @@ -109873,14 +110837,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 _list1294 = iprot.readListBegin(); - struct.success = new ArrayList(_list1294.size); - Partition _elem1295; - for (int _i1296 = 0; _i1296 < _list1294.size; ++_i1296) + org.apache.thrift.protocol.TList _list1302 = iprot.readListBegin(); + struct.success = new ArrayList(_list1302.size); + Partition _elem1303; + for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304) { - _elem1295 = new Partition(); - _elem1295.read(iprot); - struct.success.add(_elem1295); + _elem1303 = new Partition(); + _elem1303.read(iprot); + struct.success.add(_elem1303); } iprot.readListEnd(); } @@ -109924,9 +110888,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 _iter1297 : struct.success) + for (Partition _iter1305 : struct.success) { - _iter1297.write(oprot); + _iter1305.write(oprot); } oprot.writeListEnd(); } @@ -109973,9 +110937,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1298 : struct.success) + for (Partition _iter1306 : struct.success) { - _iter1298.write(oprot); + _iter1306.write(oprot); } } } @@ -109993,14 +110957,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 _list1299 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1299.size); - Partition _elem1300; - for (int _i1301 = 0; _i1301 < _list1299.size; ++_i1301) + 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) { - _elem1300 = new Partition(); - _elem1300.read(iprot); - struct.success.add(_elem1300); + _elem1308 = new Partition(); + _elem1308.read(iprot); + struct.success.add(_elem1308); } } struct.setSuccessIsSet(true); @@ -110690,13 +111654,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 _list1302 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1302.size); - String _elem1303; - for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304) + org.apache.thrift.protocol.TList _list1310 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1310.size); + String _elem1311; + for (int _i1312 = 0; _i1312 < _list1310.size; ++_i1312) { - _elem1303 = iprot.readString(); - struct.group_names.add(_elem1303); + _elem1311 = iprot.readString(); + struct.group_names.add(_elem1311); } iprot.readListEnd(); } @@ -110740,9 +111704,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 _iter1305 : struct.group_names) + for (String _iter1313 : struct.group_names) { - oprot.writeString(_iter1305); + oprot.writeString(_iter1313); } oprot.writeListEnd(); } @@ -110797,9 +111761,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 _iter1306 : struct.group_names) + for (String _iter1314 : struct.group_names) { - oprot.writeString(_iter1306); + oprot.writeString(_iter1314); } } } @@ -110827,13 +111791,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1307.size); - String _elem1308; - for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309) + org.apache.thrift.protocol.TList _list1315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1315.size); + String _elem1316; + for (int _i1317 = 0; _i1317 < _list1315.size; ++_i1317) { - _elem1308 = iprot.readString(); - struct.group_names.add(_elem1308); + _elem1316 = iprot.readString(); + struct.group_names.add(_elem1316); } } struct.setGroup_namesIsSet(true); @@ -111320,14 +112284,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 _list1310 = iprot.readListBegin(); - struct.success = new ArrayList(_list1310.size); - Partition _elem1311; - for (int _i1312 = 0; _i1312 < _list1310.size; ++_i1312) + org.apache.thrift.protocol.TList _list1318 = iprot.readListBegin(); + struct.success = new ArrayList(_list1318.size); + Partition _elem1319; + for (int _i1320 = 0; _i1320 < _list1318.size; ++_i1320) { - _elem1311 = new Partition(); - _elem1311.read(iprot); - struct.success.add(_elem1311); + _elem1319 = new Partition(); + _elem1319.read(iprot); + struct.success.add(_elem1319); } iprot.readListEnd(); } @@ -111371,9 +112335,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 _iter1313 : struct.success) + for (Partition _iter1321 : struct.success) { - _iter1313.write(oprot); + _iter1321.write(oprot); } oprot.writeListEnd(); } @@ -111420,9 +112384,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1314 : struct.success) + for (Partition _iter1322 : struct.success) { - _iter1314.write(oprot); + _iter1322.write(oprot); } } } @@ -111440,14 +112404,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 _list1315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1315.size); - Partition _elem1316; - for (int _i1317 = 0; _i1317 < _list1315.size; ++_i1317) + org.apache.thrift.protocol.TList _list1323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1323.size); + Partition _elem1324; + for (int _i1325 = 0; _i1325 < _list1323.size; ++_i1325) { - _elem1316 = new Partition(); - _elem1316.read(iprot); - struct.success.add(_elem1316); + _elem1324 = new Partition(); + _elem1324.read(iprot); + struct.success.add(_elem1324); } } struct.setSuccessIsSet(true); @@ -112510,14 +113474,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 _list1318 = iprot.readListBegin(); - struct.success = new ArrayList(_list1318.size); - PartitionSpec _elem1319; - for (int _i1320 = 0; _i1320 < _list1318.size; ++_i1320) + org.apache.thrift.protocol.TList _list1326 = iprot.readListBegin(); + struct.success = new ArrayList(_list1326.size); + PartitionSpec _elem1327; + for (int _i1328 = 0; _i1328 < _list1326.size; ++_i1328) { - _elem1319 = new PartitionSpec(); - _elem1319.read(iprot); - struct.success.add(_elem1319); + _elem1327 = new PartitionSpec(); + _elem1327.read(iprot); + struct.success.add(_elem1327); } iprot.readListEnd(); } @@ -112561,9 +113525,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 _iter1321 : struct.success) + for (PartitionSpec _iter1329 : struct.success) { - _iter1321.write(oprot); + _iter1329.write(oprot); } oprot.writeListEnd(); } @@ -112610,9 +113574,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1322 : struct.success) + for (PartitionSpec _iter1330 : struct.success) { - _iter1322.write(oprot); + _iter1330.write(oprot); } } } @@ -112630,14 +113594,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 _list1323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1323.size); - PartitionSpec _elem1324; - for (int _i1325 = 0; _i1325 < _list1323.size; ++_i1325) + org.apache.thrift.protocol.TList _list1331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1331.size); + PartitionSpec _elem1332; + for (int _i1333 = 0; _i1333 < _list1331.size; ++_i1333) { - _elem1324 = new PartitionSpec(); - _elem1324.read(iprot); - struct.success.add(_elem1324); + _elem1332 = new PartitionSpec(); + _elem1332.read(iprot); + struct.success.add(_elem1332); } } struct.setSuccessIsSet(true); @@ -113697,13 +114661,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 _list1326 = iprot.readListBegin(); - struct.success = new ArrayList(_list1326.size); - String _elem1327; - for (int _i1328 = 0; _i1328 < _list1326.size; ++_i1328) + org.apache.thrift.protocol.TList _list1334 = iprot.readListBegin(); + struct.success = new ArrayList(_list1334.size); + String _elem1335; + for (int _i1336 = 0; _i1336 < _list1334.size; ++_i1336) { - _elem1327 = iprot.readString(); - struct.success.add(_elem1327); + _elem1335 = iprot.readString(); + struct.success.add(_elem1335); } iprot.readListEnd(); } @@ -113747,9 +114711,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 _iter1329 : struct.success) + for (String _iter1337 : struct.success) { - oprot.writeString(_iter1329); + oprot.writeString(_iter1337); } oprot.writeListEnd(); } @@ -113796,9 +114760,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1330 : struct.success) + for (String _iter1338 : struct.success) { - oprot.writeString(_iter1330); + oprot.writeString(_iter1338); } } } @@ -113816,13 +114780,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 _list1331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1331.size); - String _elem1332; - for (int _i1333 = 0; _i1333 < _list1331.size; ++_i1333) + org.apache.thrift.protocol.TList _list1339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1339.size); + String _elem1340; + for (int _i1341 = 0; _i1341 < _list1339.size; ++_i1341) { - _elem1332 = iprot.readString(); - struct.success.add(_elem1332); + _elem1340 = iprot.readString(); + struct.success.add(_elem1340); } } struct.setSuccessIsSet(true); @@ -115353,13 +116317,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 _list1334 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1334.size); - String _elem1335; - for (int _i1336 = 0; _i1336 < _list1334.size; ++_i1336) + 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) { - _elem1335 = iprot.readString(); - struct.part_vals.add(_elem1335); + _elem1343 = iprot.readString(); + struct.part_vals.add(_elem1343); } iprot.readListEnd(); } @@ -115403,9 +116367,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 _iter1337 : struct.part_vals) + for (String _iter1345 : struct.part_vals) { - oprot.writeString(_iter1337); + oprot.writeString(_iter1345); } oprot.writeListEnd(); } @@ -115454,9 +116418,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 _iter1338 : struct.part_vals) + for (String _iter1346 : struct.part_vals) { - oprot.writeString(_iter1338); + oprot.writeString(_iter1346); } } } @@ -115479,13 +116443,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1339.size); - String _elem1340; - for (int _i1341 = 0; _i1341 < _list1339.size; ++_i1341) + org.apache.thrift.protocol.TList _list1347 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1347.size); + String _elem1348; + for (int _i1349 = 0; _i1349 < _list1347.size; ++_i1349) { - _elem1340 = iprot.readString(); - struct.part_vals.add(_elem1340); + _elem1348 = iprot.readString(); + struct.part_vals.add(_elem1348); } } struct.setPart_valsIsSet(true); @@ -115976,14 +116940,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 _list1342 = iprot.readListBegin(); - struct.success = new ArrayList(_list1342.size); - Partition _elem1343; - for (int _i1344 = 0; _i1344 < _list1342.size; ++_i1344) + org.apache.thrift.protocol.TList _list1350 = iprot.readListBegin(); + struct.success = new ArrayList(_list1350.size); + Partition _elem1351; + for (int _i1352 = 0; _i1352 < _list1350.size; ++_i1352) { - _elem1343 = new Partition(); - _elem1343.read(iprot); - struct.success.add(_elem1343); + _elem1351 = new Partition(); + _elem1351.read(iprot); + struct.success.add(_elem1351); } iprot.readListEnd(); } @@ -116027,9 +116991,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 _iter1345 : struct.success) + for (Partition _iter1353 : struct.success) { - _iter1345.write(oprot); + _iter1353.write(oprot); } oprot.writeListEnd(); } @@ -116076,9 +117040,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1346 : struct.success) + for (Partition _iter1354 : struct.success) { - _iter1346.write(oprot); + _iter1354.write(oprot); } } } @@ -116096,14 +117060,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 _list1347 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1347.size); - Partition _elem1348; - for (int _i1349 = 0; _i1349 < _list1347.size; ++_i1349) + org.apache.thrift.protocol.TList _list1355 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1355.size); + Partition _elem1356; + for (int _i1357 = 0; _i1357 < _list1355.size; ++_i1357) { - _elem1348 = new Partition(); - _elem1348.read(iprot); - struct.success.add(_elem1348); + _elem1356 = new Partition(); + _elem1356.read(iprot); + struct.success.add(_elem1356); } } struct.setSuccessIsSet(true); @@ -116875,13 +117839,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 _list1350 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1350.size); - String _elem1351; - for (int _i1352 = 0; _i1352 < _list1350.size; ++_i1352) + org.apache.thrift.protocol.TList _list1358 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1358.size); + String _elem1359; + for (int _i1360 = 0; _i1360 < _list1358.size; ++_i1360) { - _elem1351 = iprot.readString(); - struct.part_vals.add(_elem1351); + _elem1359 = iprot.readString(); + struct.part_vals.add(_elem1359); } iprot.readListEnd(); } @@ -116909,13 +117873,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 _list1353 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1353.size); - String _elem1354; - for (int _i1355 = 0; _i1355 < _list1353.size; ++_i1355) + org.apache.thrift.protocol.TList _list1361 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1361.size); + String _elem1362; + for (int _i1363 = 0; _i1363 < _list1361.size; ++_i1363) { - _elem1354 = iprot.readString(); - struct.group_names.add(_elem1354); + _elem1362 = iprot.readString(); + struct.group_names.add(_elem1362); } iprot.readListEnd(); } @@ -116951,9 +117915,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 _iter1356 : struct.part_vals) + for (String _iter1364 : struct.part_vals) { - oprot.writeString(_iter1356); + oprot.writeString(_iter1364); } oprot.writeListEnd(); } @@ -116971,9 +117935,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 _iter1357 : struct.group_names) + for (String _iter1365 : struct.group_names) { - oprot.writeString(_iter1357); + oprot.writeString(_iter1365); } oprot.writeListEnd(); } @@ -117025,9 +117989,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 _iter1358 : struct.part_vals) + for (String _iter1366 : struct.part_vals) { - oprot.writeString(_iter1358); + oprot.writeString(_iter1366); } } } @@ -117040,9 +118004,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 _iter1359 : struct.group_names) + for (String _iter1367 : struct.group_names) { - oprot.writeString(_iter1359); + oprot.writeString(_iter1367); } } } @@ -117062,13 +118026,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1360 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1360.size); - String _elem1361; - for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) + org.apache.thrift.protocol.TList _list1368 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1368.size); + String _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) { - _elem1361 = iprot.readString(); - struct.part_vals.add(_elem1361); + _elem1369 = iprot.readString(); + struct.part_vals.add(_elem1369); } } struct.setPart_valsIsSet(true); @@ -117083,13 +118047,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1363 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1363.size); - String _elem1364; - for (int _i1365 = 0; _i1365 < _list1363.size; ++_i1365) + org.apache.thrift.protocol.TList _list1371 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1371.size); + String _elem1372; + for (int _i1373 = 0; _i1373 < _list1371.size; ++_i1373) { - _elem1364 = iprot.readString(); - struct.group_names.add(_elem1364); + _elem1372 = iprot.readString(); + struct.group_names.add(_elem1372); } } struct.setGroup_namesIsSet(true); @@ -117576,14 +118540,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 _list1366 = iprot.readListBegin(); - struct.success = new ArrayList(_list1366.size); - Partition _elem1367; - for (int _i1368 = 0; _i1368 < _list1366.size; ++_i1368) + org.apache.thrift.protocol.TList _list1374 = iprot.readListBegin(); + struct.success = new ArrayList(_list1374.size); + Partition _elem1375; + for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) { - _elem1367 = new Partition(); - _elem1367.read(iprot); - struct.success.add(_elem1367); + _elem1375 = new Partition(); + _elem1375.read(iprot); + struct.success.add(_elem1375); } iprot.readListEnd(); } @@ -117627,9 +118591,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 _iter1369 : struct.success) + for (Partition _iter1377 : struct.success) { - _iter1369.write(oprot); + _iter1377.write(oprot); } oprot.writeListEnd(); } @@ -117676,9 +118640,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1370 : struct.success) + for (Partition _iter1378 : struct.success) { - _iter1370.write(oprot); + _iter1378.write(oprot); } } } @@ -117696,14 +118660,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 _list1371 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1371.size); - Partition _elem1372; - for (int _i1373 = 0; _i1373 < _list1371.size; ++_i1373) + org.apache.thrift.protocol.TList _list1379 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1379.size); + Partition _elem1380; + for (int _i1381 = 0; _i1381 < _list1379.size; ++_i1381) { - _elem1372 = new Partition(); - _elem1372.read(iprot); - struct.success.add(_elem1372); + _elem1380 = new Partition(); + _elem1380.read(iprot); + struct.success.add(_elem1380); } } struct.setSuccessIsSet(true); @@ -118296,13 +119260,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 _list1374 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1374.size); - String _elem1375; - for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) + org.apache.thrift.protocol.TList _list1382 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1382.size); + String _elem1383; + for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) { - _elem1375 = iprot.readString(); - struct.part_vals.add(_elem1375); + _elem1383 = iprot.readString(); + struct.part_vals.add(_elem1383); } iprot.readListEnd(); } @@ -118346,9 +119310,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 _iter1377 : struct.part_vals) + for (String _iter1385 : struct.part_vals) { - oprot.writeString(_iter1377); + oprot.writeString(_iter1385); } oprot.writeListEnd(); } @@ -118397,9 +119361,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 _iter1378 : struct.part_vals) + for (String _iter1386 : struct.part_vals) { - oprot.writeString(_iter1378); + oprot.writeString(_iter1386); } } } @@ -118422,13 +119386,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1379 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1379.size); - String _elem1380; - for (int _i1381 = 0; _i1381 < _list1379.size; ++_i1381) + org.apache.thrift.protocol.TList _list1387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1387.size); + String _elem1388; + for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) { - _elem1380 = iprot.readString(); - struct.part_vals.add(_elem1380); + _elem1388 = iprot.readString(); + struct.part_vals.add(_elem1388); } } struct.setPart_valsIsSet(true); @@ -118916,13 +119880,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 _list1382 = iprot.readListBegin(); - struct.success = new ArrayList(_list1382.size); - String _elem1383; - for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) + org.apache.thrift.protocol.TList _list1390 = iprot.readListBegin(); + struct.success = new ArrayList(_list1390.size); + String _elem1391; + for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) { - _elem1383 = iprot.readString(); - struct.success.add(_elem1383); + _elem1391 = iprot.readString(); + struct.success.add(_elem1391); } iprot.readListEnd(); } @@ -118966,9 +119930,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 _iter1385 : struct.success) + for (String _iter1393 : struct.success) { - oprot.writeString(_iter1385); + oprot.writeString(_iter1393); } oprot.writeListEnd(); } @@ -119015,9 +119979,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1386 : struct.success) + for (String _iter1394 : struct.success) { - oprot.writeString(_iter1386); + oprot.writeString(_iter1394); } } } @@ -119035,13 +119999,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 _list1387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1387.size); - String _elem1388; - for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) + org.apache.thrift.protocol.TList _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1395.size); + String _elem1396; + for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) { - _elem1388 = iprot.readString(); - struct.success.add(_elem1388); + _elem1396 = iprot.readString(); + struct.success.add(_elem1396); } } struct.setSuccessIsSet(true); @@ -120208,14 +121172,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 _list1390 = iprot.readListBegin(); - struct.success = new ArrayList(_list1390.size); - Partition _elem1391; - for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) + org.apache.thrift.protocol.TList _list1398 = iprot.readListBegin(); + struct.success = new ArrayList(_list1398.size); + Partition _elem1399; + for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) { - _elem1391 = new Partition(); - _elem1391.read(iprot); - struct.success.add(_elem1391); + _elem1399 = new Partition(); + _elem1399.read(iprot); + struct.success.add(_elem1399); } iprot.readListEnd(); } @@ -120259,9 +121223,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 _iter1393 : struct.success) + for (Partition _iter1401 : struct.success) { - _iter1393.write(oprot); + _iter1401.write(oprot); } oprot.writeListEnd(); } @@ -120308,9 +121272,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1394 : struct.success) + for (Partition _iter1402 : struct.success) { - _iter1394.write(oprot); + _iter1402.write(oprot); } } } @@ -120328,14 +121292,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 _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1395.size); - Partition _elem1396; - for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) + org.apache.thrift.protocol.TList _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1403.size); + Partition _elem1404; + for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) { - _elem1396 = new Partition(); - _elem1396.read(iprot); - struct.success.add(_elem1396); + _elem1404 = new Partition(); + _elem1404.read(iprot); + struct.success.add(_elem1404); } } struct.setSuccessIsSet(true); @@ -121502,14 +122466,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 _list1398 = iprot.readListBegin(); - struct.success = new ArrayList(_list1398.size); - PartitionSpec _elem1399; - for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) + org.apache.thrift.protocol.TList _list1406 = iprot.readListBegin(); + struct.success = new ArrayList(_list1406.size); + PartitionSpec _elem1407; + for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) { - _elem1399 = new PartitionSpec(); - _elem1399.read(iprot); - struct.success.add(_elem1399); + _elem1407 = new PartitionSpec(); + _elem1407.read(iprot); + struct.success.add(_elem1407); } iprot.readListEnd(); } @@ -121553,9 +122517,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 _iter1401 : struct.success) + for (PartitionSpec _iter1409 : struct.success) { - _iter1401.write(oprot); + _iter1409.write(oprot); } oprot.writeListEnd(); } @@ -121602,9 +122566,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 _iter1402 : struct.success) + for (PartitionSpec _iter1410 : struct.success) { - _iter1402.write(oprot); + _iter1410.write(oprot); } } } @@ -121622,14 +122586,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 _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1403.size); - PartitionSpec _elem1404; - for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) + 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); + PartitionSpec _elem1412; + for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) { - _elem1404 = new PartitionSpec(); - _elem1404.read(iprot); - struct.success.add(_elem1404); + _elem1412 = new PartitionSpec(); + _elem1412.read(iprot); + struct.success.add(_elem1412); } } struct.setSuccessIsSet(true); @@ -124213,13 +125177,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 _list1406 = iprot.readListBegin(); - struct.names = new ArrayList(_list1406.size); - String _elem1407; - for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) + org.apache.thrift.protocol.TList _list1414 = iprot.readListBegin(); + struct.names = new ArrayList(_list1414.size); + String _elem1415; + for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) { - _elem1407 = iprot.readString(); - struct.names.add(_elem1407); + _elem1415 = iprot.readString(); + struct.names.add(_elem1415); } iprot.readListEnd(); } @@ -124255,9 +125219,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 _iter1409 : struct.names) + for (String _iter1417 : struct.names) { - oprot.writeString(_iter1409); + oprot.writeString(_iter1417); } oprot.writeListEnd(); } @@ -124300,9 +125264,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1410 : struct.names) + for (String _iter1418 : struct.names) { - oprot.writeString(_iter1410); + oprot.writeString(_iter1418); } } } @@ -124322,13 +125286,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1411.size); - String _elem1412; - for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) + org.apache.thrift.protocol.TList _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1419.size); + String _elem1420; + for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) { - _elem1412 = iprot.readString(); - struct.names.add(_elem1412); + _elem1420 = iprot.readString(); + struct.names.add(_elem1420); } } struct.setNamesIsSet(true); @@ -124815,14 +125779,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 _list1414 = iprot.readListBegin(); - struct.success = new ArrayList(_list1414.size); - Partition _elem1415; - for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) + org.apache.thrift.protocol.TList _list1422 = iprot.readListBegin(); + struct.success = new ArrayList(_list1422.size); + Partition _elem1423; + for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) { - _elem1415 = new Partition(); - _elem1415.read(iprot); - struct.success.add(_elem1415); + _elem1423 = new Partition(); + _elem1423.read(iprot); + struct.success.add(_elem1423); } iprot.readListEnd(); } @@ -124866,9 +125830,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 _iter1417 : struct.success) + for (Partition _iter1425 : struct.success) { - _iter1417.write(oprot); + _iter1425.write(oprot); } oprot.writeListEnd(); } @@ -124915,9 +125879,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1418 : struct.success) + for (Partition _iter1426 : struct.success) { - _iter1418.write(oprot); + _iter1426.write(oprot); } } } @@ -124935,14 +125899,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 _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1419.size); - Partition _elem1420; - for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) + org.apache.thrift.protocol.TList _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1427.size); + Partition _elem1428; + for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) { - _elem1420 = new Partition(); - _elem1420.read(iprot); - struct.success.add(_elem1420); + _elem1428 = new Partition(); + _elem1428.read(iprot); + struct.success.add(_elem1428); } } struct.setSuccessIsSet(true); @@ -126492,14 +127456,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 _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 _list1430 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1430.size); + Partition _elem1431; + for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) { - _elem1423 = new Partition(); - _elem1423.read(iprot); - struct.new_parts.add(_elem1423); + _elem1431 = new Partition(); + _elem1431.read(iprot); + struct.new_parts.add(_elem1431); } iprot.readListEnd(); } @@ -126535,9 +127499,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 _iter1425 : struct.new_parts) + for (Partition _iter1433 : struct.new_parts) { - _iter1425.write(oprot); + _iter1433.write(oprot); } oprot.writeListEnd(); } @@ -126580,9 +127544,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 _iter1426 : struct.new_parts) + for (Partition _iter1434 : struct.new_parts) { - _iter1426.write(oprot); + _iter1434.write(oprot); } } } @@ -126602,14 +127566,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } 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 _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1435.size); + Partition _elem1436; + for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) { - _elem1428 = new Partition(); - _elem1428.read(iprot); - struct.new_parts.add(_elem1428); + _elem1436 = new Partition(); + _elem1436.read(iprot); + struct.new_parts.add(_elem1436); } } struct.setNew_partsIsSet(true); @@ -127662,14 +128626,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 _list1430 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1430.size); - Partition _elem1431; - for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) + org.apache.thrift.protocol.TList _list1438 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1438.size); + Partition _elem1439; + for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) { - _elem1431 = new Partition(); - _elem1431.read(iprot); - struct.new_parts.add(_elem1431); + _elem1439 = new Partition(); + _elem1439.read(iprot); + struct.new_parts.add(_elem1439); } iprot.readListEnd(); } @@ -127714,9 +128678,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 _iter1433 : struct.new_parts) + for (Partition _iter1441 : struct.new_parts) { - _iter1433.write(oprot); + _iter1441.write(oprot); } oprot.writeListEnd(); } @@ -127767,9 +128731,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 _iter1434 : struct.new_parts) + for (Partition _iter1442 : struct.new_parts) { - _iter1434.write(oprot); + _iter1442.write(oprot); } } } @@ -127792,14 +128756,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1435.size); - Partition _elem1436; - for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) + org.apache.thrift.protocol.TList _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1443.size); + Partition _elem1444; + for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) { - _elem1436 = new Partition(); - _elem1436.read(iprot); - struct.new_parts.add(_elem1436); + _elem1444 = new Partition(); + _elem1444.read(iprot); + struct.new_parts.add(_elem1444); } } struct.setNew_partsIsSet(true); @@ -130938,13 +131902,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 _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 _list1446 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1446.size); + String _elem1447; + for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) { - _elem1439 = iprot.readString(); - struct.part_vals.add(_elem1439); + _elem1447 = iprot.readString(); + struct.part_vals.add(_elem1447); } iprot.readListEnd(); } @@ -130989,9 +131953,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 _iter1441 : struct.part_vals) + for (String _iter1449 : struct.part_vals) { - oprot.writeString(_iter1441); + oprot.writeString(_iter1449); } oprot.writeListEnd(); } @@ -131042,9 +132006,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 _iter1442 : struct.part_vals) + for (String _iter1450 : struct.part_vals) { - oprot.writeString(_iter1442); + oprot.writeString(_iter1450); } } } @@ -131067,13 +132031,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - 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 _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1451.size); + String _elem1452; + for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) { - _elem1444 = iprot.readString(); - struct.part_vals.add(_elem1444); + _elem1452 = iprot.readString(); + struct.part_vals.add(_elem1452); } } struct.setPart_valsIsSet(true); @@ -132885,13 +133849,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 _list1446 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1446.size); - String _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + org.apache.thrift.protocol.TList _list1454 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1454.size); + String _elem1455; + for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) { - _elem1447 = iprot.readString(); - struct.part_vals.add(_elem1447); + _elem1455 = iprot.readString(); + struct.part_vals.add(_elem1455); } iprot.readListEnd(); } @@ -132925,9 +133889,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 _iter1449 : struct.part_vals) + for (String _iter1457 : struct.part_vals) { - oprot.writeString(_iter1449); + oprot.writeString(_iter1457); } oprot.writeListEnd(); } @@ -132964,9 +133928,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 _iter1450 : struct.part_vals) + for (String _iter1458 : struct.part_vals) { - oprot.writeString(_iter1450); + oprot.writeString(_iter1458); } } } @@ -132981,13 +133945,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 _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1451.size); - String _elem1452; - for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) + org.apache.thrift.protocol.TList _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1459.size); + String _elem1460; + for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) { - _elem1452 = iprot.readString(); - struct.part_vals.add(_elem1452); + _elem1460 = iprot.readString(); + struct.part_vals.add(_elem1460); } } struct.setPart_valsIsSet(true); @@ -135142,13 +136106,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 _list1454 = iprot.readListBegin(); - struct.success = new ArrayList(_list1454.size); - String _elem1455; - for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) + org.apache.thrift.protocol.TList _list1462 = iprot.readListBegin(); + struct.success = new ArrayList(_list1462.size); + String _elem1463; + for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) { - _elem1455 = iprot.readString(); - struct.success.add(_elem1455); + _elem1463 = iprot.readString(); + struct.success.add(_elem1463); } iprot.readListEnd(); } @@ -135183,9 +136147,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 _iter1457 : struct.success) + for (String _iter1465 : struct.success) { - oprot.writeString(_iter1457); + oprot.writeString(_iter1465); } oprot.writeListEnd(); } @@ -135224,9 +136188,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1458 : struct.success) + for (String _iter1466 : struct.success) { - oprot.writeString(_iter1458); + oprot.writeString(_iter1466); } } } @@ -135241,13 +136205,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 _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1459.size); - String _elem1460; - for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) + org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1467.size); + String _elem1468; + for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) { - _elem1460 = iprot.readString(); - struct.success.add(_elem1460); + _elem1468 = iprot.readString(); + struct.success.add(_elem1468); } } struct.setSuccessIsSet(true); @@ -136010,15 +136974,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 _map1462 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1462.size); - String _key1463; - String _val1464; - for (int _i1465 = 0; _i1465 < _map1462.size; ++_i1465) + org.apache.thrift.protocol.TMap _map1470 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1470.size); + String _key1471; + String _val1472; + for (int _i1473 = 0; _i1473 < _map1470.size; ++_i1473) { - _key1463 = iprot.readString(); - _val1464 = iprot.readString(); - struct.success.put(_key1463, _val1464); + _key1471 = iprot.readString(); + _val1472 = iprot.readString(); + struct.success.put(_key1471, _val1472); } iprot.readMapEnd(); } @@ -136053,10 +137017,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 _iter1466 : struct.success.entrySet()) + for (Map.Entry _iter1474 : struct.success.entrySet()) { - oprot.writeString(_iter1466.getKey()); - oprot.writeString(_iter1466.getValue()); + oprot.writeString(_iter1474.getKey()); + oprot.writeString(_iter1474.getValue()); } oprot.writeMapEnd(); } @@ -136095,10 +137059,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 _iter1467 : struct.success.entrySet()) + for (Map.Entry _iter1475 : struct.success.entrySet()) { - oprot.writeString(_iter1467.getKey()); - oprot.writeString(_iter1467.getValue()); + oprot.writeString(_iter1475.getKey()); + oprot.writeString(_iter1475.getValue()); } } } @@ -136113,15 +137077,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 _map1468 = 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*_map1468.size); - String _key1469; - String _val1470; - for (int _i1471 = 0; _i1471 < _map1468.size; ++_i1471) + org.apache.thrift.protocol.TMap _map1476 = 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*_map1476.size); + String _key1477; + String _val1478; + for (int _i1479 = 0; _i1479 < _map1476.size; ++_i1479) { - _key1469 = iprot.readString(); - _val1470 = iprot.readString(); - struct.success.put(_key1469, _val1470); + _key1477 = iprot.readString(); + _val1478 = iprot.readString(); + struct.success.put(_key1477, _val1478); } } struct.setSuccessIsSet(true); @@ -136716,15 +137680,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 _map1472 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1472.size); - String _key1473; - String _val1474; - for (int _i1475 = 0; _i1475 < _map1472.size; ++_i1475) + org.apache.thrift.protocol.TMap _map1480 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1480.size); + String _key1481; + String _val1482; + for (int _i1483 = 0; _i1483 < _map1480.size; ++_i1483) { - _key1473 = iprot.readString(); - _val1474 = iprot.readString(); - struct.part_vals.put(_key1473, _val1474); + _key1481 = iprot.readString(); + _val1482 = iprot.readString(); + struct.part_vals.put(_key1481, _val1482); } iprot.readMapEnd(); } @@ -136768,10 +137732,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 _iter1476 : struct.part_vals.entrySet()) + for (Map.Entry _iter1484 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1476.getKey()); - oprot.writeString(_iter1476.getValue()); + oprot.writeString(_iter1484.getKey()); + oprot.writeString(_iter1484.getValue()); } oprot.writeMapEnd(); } @@ -136822,10 +137786,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1477 : struct.part_vals.entrySet()) + for (Map.Entry _iter1485 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1477.getKey()); - oprot.writeString(_iter1477.getValue()); + oprot.writeString(_iter1485.getKey()); + oprot.writeString(_iter1485.getValue()); } } } @@ -136848,15 +137812,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1478 = 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*_map1478.size); - String _key1479; - String _val1480; - for (int _i1481 = 0; _i1481 < _map1478.size; ++_i1481) + org.apache.thrift.protocol.TMap _map1486 = 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*_map1486.size); + String _key1487; + String _val1488; + for (int _i1489 = 0; _i1489 < _map1486.size; ++_i1489) { - _key1479 = iprot.readString(); - _val1480 = iprot.readString(); - struct.part_vals.put(_key1479, _val1480); + _key1487 = iprot.readString(); + _val1488 = iprot.readString(); + struct.part_vals.put(_key1487, _val1488); } } struct.setPart_valsIsSet(true); @@ -138340,15 +139304,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 _map1482 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1482.size); - String _key1483; - String _val1484; - for (int _i1485 = 0; _i1485 < _map1482.size; ++_i1485) + org.apache.thrift.protocol.TMap _map1490 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1490.size); + String _key1491; + String _val1492; + for (int _i1493 = 0; _i1493 < _map1490.size; ++_i1493) { - _key1483 = iprot.readString(); - _val1484 = iprot.readString(); - struct.part_vals.put(_key1483, _val1484); + _key1491 = iprot.readString(); + _val1492 = iprot.readString(); + struct.part_vals.put(_key1491, _val1492); } iprot.readMapEnd(); } @@ -138392,10 +139356,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 _iter1486 : struct.part_vals.entrySet()) + for (Map.Entry _iter1494 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1486.getKey()); - oprot.writeString(_iter1486.getValue()); + oprot.writeString(_iter1494.getKey()); + oprot.writeString(_iter1494.getValue()); } oprot.writeMapEnd(); } @@ -138446,10 +139410,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1487 : struct.part_vals.entrySet()) + for (Map.Entry _iter1495 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1487.getKey()); - oprot.writeString(_iter1487.getValue()); + oprot.writeString(_iter1495.getKey()); + oprot.writeString(_iter1495.getValue()); } } } @@ -138472,15 +139436,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1488 = 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*_map1488.size); - String _key1489; - String _val1490; - for (int _i1491 = 0; _i1491 < _map1488.size; ++_i1491) + org.apache.thrift.protocol.TMap _map1496 = 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*_map1496.size); + String _key1497; + String _val1498; + for (int _i1499 = 0; _i1499 < _map1496.size; ++_i1499) { - _key1489 = iprot.readString(); - _val1490 = iprot.readString(); - struct.part_vals.put(_key1489, _val1490); + _key1497 = iprot.readString(); + _val1498 = iprot.readString(); + struct.part_vals.put(_key1497, _val1498); } } struct.setPart_valsIsSet(true); @@ -163136,13 +164100,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 _list1492 = iprot.readListBegin(); - struct.success = new ArrayList(_list1492.size); - String _elem1493; - for (int _i1494 = 0; _i1494 < _list1492.size; ++_i1494) + org.apache.thrift.protocol.TList _list1500 = iprot.readListBegin(); + struct.success = new ArrayList(_list1500.size); + String _elem1501; + for (int _i1502 = 0; _i1502 < _list1500.size; ++_i1502) { - _elem1493 = iprot.readString(); - struct.success.add(_elem1493); + _elem1501 = iprot.readString(); + struct.success.add(_elem1501); } iprot.readListEnd(); } @@ -163177,9 +164141,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 _iter1495 : struct.success) + for (String _iter1503 : struct.success) { - oprot.writeString(_iter1495); + oprot.writeString(_iter1503); } oprot.writeListEnd(); } @@ -163218,9 +164182,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1496 : struct.success) + for (String _iter1504 : struct.success) { - oprot.writeString(_iter1496); + oprot.writeString(_iter1504); } } } @@ -163235,13 +164199,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 _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 _list1505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1505.size); + String _elem1506; + for (int _i1507 = 0; _i1507 < _list1505.size; ++_i1507) { - _elem1498 = iprot.readString(); - struct.success.add(_elem1498); + _elem1506 = iprot.readString(); + struct.success.add(_elem1506); } } struct.setSuccessIsSet(true); @@ -167296,13 +168260,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 _list1500 = iprot.readListBegin(); - struct.success = new ArrayList(_list1500.size); - String _elem1501; - for (int _i1502 = 0; _i1502 < _list1500.size; ++_i1502) + org.apache.thrift.protocol.TList _list1508 = iprot.readListBegin(); + struct.success = new ArrayList(_list1508.size); + String _elem1509; + for (int _i1510 = 0; _i1510 < _list1508.size; ++_i1510) { - _elem1501 = iprot.readString(); - struct.success.add(_elem1501); + _elem1509 = iprot.readString(); + struct.success.add(_elem1509); } iprot.readListEnd(); } @@ -167337,9 +168301,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 _iter1503 : struct.success) + for (String _iter1511 : struct.success) { - oprot.writeString(_iter1503); + oprot.writeString(_iter1511); } oprot.writeListEnd(); } @@ -167378,9 +168342,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1504 : struct.success) + for (String _iter1512 : struct.success) { - oprot.writeString(_iter1504); + oprot.writeString(_iter1512); } } } @@ -167395,13 +168359,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 _list1505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1505.size); - String _elem1506; - for (int _i1507 = 0; _i1507 < _list1505.size; ++_i1507) + org.apache.thrift.protocol.TList _list1513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1513.size); + String _elem1514; + for (int _i1515 = 0; _i1515 < _list1513.size; ++_i1515) { - _elem1506 = iprot.readString(); - struct.success.add(_elem1506); + _elem1514 = iprot.readString(); + struct.success.add(_elem1514); } } struct.setSuccessIsSet(true); @@ -170692,14 +171656,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 _list1508 = iprot.readListBegin(); - struct.success = new ArrayList(_list1508.size); - Role _elem1509; - for (int _i1510 = 0; _i1510 < _list1508.size; ++_i1510) + org.apache.thrift.protocol.TList _list1516 = iprot.readListBegin(); + struct.success = new ArrayList(_list1516.size); + Role _elem1517; + for (int _i1518 = 0; _i1518 < _list1516.size; ++_i1518) { - _elem1509 = new Role(); - _elem1509.read(iprot); - struct.success.add(_elem1509); + _elem1517 = new Role(); + _elem1517.read(iprot); + struct.success.add(_elem1517); } iprot.readListEnd(); } @@ -170734,9 +171698,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 _iter1511 : struct.success) + for (Role _iter1519 : struct.success) { - _iter1511.write(oprot); + _iter1519.write(oprot); } oprot.writeListEnd(); } @@ -170775,9 +171739,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1512 : struct.success) + for (Role _iter1520 : struct.success) { - _iter1512.write(oprot); + _iter1520.write(oprot); } } } @@ -170792,14 +171756,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 _list1513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1513.size); - Role _elem1514; - for (int _i1515 = 0; _i1515 < _list1513.size; ++_i1515) + 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); + Role _elem1522; + for (int _i1523 = 0; _i1523 < _list1521.size; ++_i1523) { - _elem1514 = new Role(); - _elem1514.read(iprot); - struct.success.add(_elem1514); + _elem1522 = new Role(); + _elem1522.read(iprot); + struct.success.add(_elem1522); } } struct.setSuccessIsSet(true); @@ -173804,13 +174768,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 _list1516 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1516.size); - String _elem1517; - for (int _i1518 = 0; _i1518 < _list1516.size; ++_i1518) + 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) { - _elem1517 = iprot.readString(); - struct.group_names.add(_elem1517); + _elem1525 = iprot.readString(); + struct.group_names.add(_elem1525); } iprot.readListEnd(); } @@ -173846,9 +174810,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 _iter1519 : struct.group_names) + for (String _iter1527 : struct.group_names) { - oprot.writeString(_iter1519); + oprot.writeString(_iter1527); } oprot.writeListEnd(); } @@ -173891,9 +174855,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 _iter1520 : struct.group_names) + for (String _iter1528 : struct.group_names) { - oprot.writeString(_iter1520); + oprot.writeString(_iter1528); } } } @@ -173914,13 +174878,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1521.size); - String _elem1522; - for (int _i1523 = 0; _i1523 < _list1521.size; ++_i1523) + 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) { - _elem1522 = iprot.readString(); - struct.group_names.add(_elem1522); + _elem1530 = iprot.readString(); + struct.group_names.add(_elem1530); } } struct.setGroup_namesIsSet(true); @@ -175378,14 +176342,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 _list1524 = iprot.readListBegin(); - struct.success = new ArrayList(_list1524.size); - HiveObjectPrivilege _elem1525; - for (int _i1526 = 0; _i1526 < _list1524.size; ++_i1526) + org.apache.thrift.protocol.TList _list1532 = iprot.readListBegin(); + struct.success = new ArrayList(_list1532.size); + HiveObjectPrivilege _elem1533; + for (int _i1534 = 0; _i1534 < _list1532.size; ++_i1534) { - _elem1525 = new HiveObjectPrivilege(); - _elem1525.read(iprot); - struct.success.add(_elem1525); + _elem1533 = new HiveObjectPrivilege(); + _elem1533.read(iprot); + struct.success.add(_elem1533); } iprot.readListEnd(); } @@ -175420,9 +176384,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 _iter1527 : struct.success) + for (HiveObjectPrivilege _iter1535 : struct.success) { - _iter1527.write(oprot); + _iter1535.write(oprot); } oprot.writeListEnd(); } @@ -175461,9 +176425,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1528 : struct.success) + for (HiveObjectPrivilege _iter1536 : struct.success) { - _iter1528.write(oprot); + _iter1536.write(oprot); } } } @@ -175478,14 +176442,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 _list1529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1529.size); - HiveObjectPrivilege _elem1530; - for (int _i1531 = 0; _i1531 < _list1529.size; ++_i1531) + org.apache.thrift.protocol.TList _list1537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1537.size); + HiveObjectPrivilege _elem1538; + for (int _i1539 = 0; _i1539 < _list1537.size; ++_i1539) { - _elem1530 = new HiveObjectPrivilege(); - _elem1530.read(iprot); - struct.success.add(_elem1530); + _elem1538 = new HiveObjectPrivilege(); + _elem1538.read(iprot); + struct.success.add(_elem1538); } } struct.setSuccessIsSet(true); @@ -179432,13 +180396,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 _list1532 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1532.size); - String _elem1533; - for (int _i1534 = 0; _i1534 < _list1532.size; ++_i1534) + org.apache.thrift.protocol.TList _list1540 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1540.size); + String _elem1541; + for (int _i1542 = 0; _i1542 < _list1540.size; ++_i1542) { - _elem1533 = iprot.readString(); - struct.group_names.add(_elem1533); + _elem1541 = iprot.readString(); + struct.group_names.add(_elem1541); } iprot.readListEnd(); } @@ -179469,9 +180433,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 _iter1535 : struct.group_names) + for (String _iter1543 : struct.group_names) { - oprot.writeString(_iter1535); + oprot.writeString(_iter1543); } oprot.writeListEnd(); } @@ -179508,9 +180472,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 _iter1536 : struct.group_names) + for (String _iter1544 : struct.group_names) { - oprot.writeString(_iter1536); + oprot.writeString(_iter1544); } } } @@ -179526,13 +180490,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1537.size); - String _elem1538; - for (int _i1539 = 0; _i1539 < _list1537.size; ++_i1539) + org.apache.thrift.protocol.TList _list1545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1545.size); + String _elem1546; + for (int _i1547 = 0; _i1547 < _list1545.size; ++_i1547) { - _elem1538 = iprot.readString(); - struct.group_names.add(_elem1538); + _elem1546 = iprot.readString(); + struct.group_names.add(_elem1546); } } struct.setGroup_namesIsSet(true); @@ -179935,13 +180899,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 _list1540 = iprot.readListBegin(); - struct.success = new ArrayList(_list1540.size); - String _elem1541; - for (int _i1542 = 0; _i1542 < _list1540.size; ++_i1542) + org.apache.thrift.protocol.TList _list1548 = iprot.readListBegin(); + struct.success = new ArrayList(_list1548.size); + String _elem1549; + for (int _i1550 = 0; _i1550 < _list1548.size; ++_i1550) { - _elem1541 = iprot.readString(); - struct.success.add(_elem1541); + _elem1549 = iprot.readString(); + struct.success.add(_elem1549); } iprot.readListEnd(); } @@ -179976,9 +180940,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 _iter1543 : struct.success) + for (String _iter1551 : struct.success) { - oprot.writeString(_iter1543); + oprot.writeString(_iter1551); } oprot.writeListEnd(); } @@ -180017,9 +180981,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1544 : struct.success) + for (String _iter1552 : struct.success) { - oprot.writeString(_iter1544); + oprot.writeString(_iter1552); } } } @@ -180034,13 +180998,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 _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 _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) { - _elem1546 = iprot.readString(); - struct.success.add(_elem1546); + _elem1554 = iprot.readString(); + struct.success.add(_elem1554); } } struct.setSuccessIsSet(true); @@ -185331,13 +186295,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 _list1548 = iprot.readListBegin(); - struct.success = new ArrayList(_list1548.size); - String _elem1549; - for (int _i1550 = 0; _i1550 < _list1548.size; ++_i1550) + org.apache.thrift.protocol.TList _list1556 = iprot.readListBegin(); + struct.success = new ArrayList(_list1556.size); + String _elem1557; + for (int _i1558 = 0; _i1558 < _list1556.size; ++_i1558) { - _elem1549 = iprot.readString(); - struct.success.add(_elem1549); + _elem1557 = iprot.readString(); + struct.success.add(_elem1557); } iprot.readListEnd(); } @@ -185363,9 +186327,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 _iter1551 : struct.success) + for (String _iter1559 : struct.success) { - oprot.writeString(_iter1551); + oprot.writeString(_iter1559); } oprot.writeListEnd(); } @@ -185396,9 +186360,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1552 : struct.success) + for (String _iter1560 : struct.success) { - oprot.writeString(_iter1552); + oprot.writeString(_iter1560); } } } @@ -185410,13 +186374,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 _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 _list1561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1561.size); + String _elem1562; + for (int _i1563 = 0; _i1563 < _list1561.size; ++_i1563) { - _elem1554 = iprot.readString(); - struct.success.add(_elem1554); + _elem1562 = iprot.readString(); + struct.success.add(_elem1562); } } struct.setSuccessIsSet(true); @@ -188446,13 +189410,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 _list1556 = iprot.readListBegin(); - struct.success = new ArrayList(_list1556.size); - String _elem1557; - for (int _i1558 = 0; _i1558 < _list1556.size; ++_i1558) + org.apache.thrift.protocol.TList _list1564 = iprot.readListBegin(); + struct.success = new ArrayList(_list1564.size); + String _elem1565; + for (int _i1566 = 0; _i1566 < _list1564.size; ++_i1566) { - _elem1557 = iprot.readString(); - struct.success.add(_elem1557); + _elem1565 = iprot.readString(); + struct.success.add(_elem1565); } iprot.readListEnd(); } @@ -188478,9 +189442,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 _iter1559 : struct.success) + for (String _iter1567 : struct.success) { - oprot.writeString(_iter1559); + oprot.writeString(_iter1567); } oprot.writeListEnd(); } @@ -188511,9 +189475,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1560 : struct.success) + for (String _iter1568 : struct.success) { - oprot.writeString(_iter1560); + oprot.writeString(_iter1568); } } } @@ -188525,13 +189489,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 _list1561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1561.size); - String _elem1562; - for (int _i1563 = 0; _i1563 < _list1561.size; ++_i1563) + org.apache.thrift.protocol.TList _list1569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1569.size); + String _elem1570; + for (int _i1571 = 0; _i1571 < _list1569.size; ++_i1571) { - _elem1562 = iprot.readString(); - struct.success.add(_elem1562); + _elem1570 = iprot.readString(); + struct.success.add(_elem1570); } } struct.setSuccessIsSet(true); @@ -197110,7 +198074,5383 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("check_lock_result("); + StringBuilder sb = new StringBuilder("check_lock_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + 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 check_lock_resultStandardSchemeFactory implements SchemeFactory { + public check_lock_resultStandardScheme getScheme() { + return new check_lock_resultStandardScheme(); + } + } + + private static class check_lock_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, check_lock_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 LockResponse(); + 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 NoSuchTxnException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new TxnAbortedException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new NoSuchLockException(); + struct.o3.read(iprot); + struct.setO3IsSet(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, check_lock_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(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class check_lock_resultTupleSchemeFactory implements SchemeFactory { + public check_lock_resultTupleScheme getScheme() { + return new check_lock_resultTupleScheme(); + } + } + + private static class check_lock_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, check_lock_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); + } + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, check_lock_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.success = new LockResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new NoSuchTxnException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new TxnAbortedException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(3)) { + struct.o3 = new NoSuchLockException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class unlock_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("unlock_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 unlock_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new unlock_argsTupleSchemeFactory()); + } + + private UnlockRequest 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, UnlockRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unlock_args.class, metaDataMap); + } + + public unlock_args() { + } + + public unlock_args( + UnlockRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public unlock_args(unlock_args other) { + if (other.isSetRqst()) { + this.rqst = new UnlockRequest(other.rqst); + } + } + + public unlock_args deepCopy() { + return new unlock_args(this); + } + + @Override + public void clear() { + this.rqst = null; + } + + public UnlockRequest getRqst() { + return this.rqst; + } + + public void setRqst(UnlockRequest 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((UnlockRequest)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 unlock_args) + return this.equals((unlock_args)that); + return false; + } + + public boolean equals(unlock_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(unlock_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("unlock_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 unlock_argsStandardSchemeFactory implements SchemeFactory { + public unlock_argsStandardScheme getScheme() { + return new unlock_argsStandardScheme(); + } + } + + private static class unlock_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_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 UnlockRequest(); + 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, unlock_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 unlock_argsTupleSchemeFactory implements SchemeFactory { + public unlock_argsTupleScheme getScheme() { + return new unlock_argsTupleScheme(); + } + } + + private static class unlock_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, unlock_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, unlock_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new UnlockRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class unlock_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("unlock_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 org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new unlock_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new unlock_resultTupleSchemeFactory()); + } + + private NoSuchLockException o1; // required + private TxnOpenException o2; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // O1 + return O1; + case 2: // O2 + return O2; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unlock_result.class, metaDataMap); + } + + public unlock_result() { + } + + public unlock_result( + NoSuchLockException o1, + TxnOpenException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public unlock_result(unlock_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchLockException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new TxnOpenException(other.o2); + } + } + + public unlock_result deepCopy() { + return new unlock_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + } + + public NoSuchLockException getO1() { + return this.o1; + } + + public void setO1(NoSuchLockException 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 TxnOpenException getO2() { + return this.o2; + } + + public void setO2(TxnOpenException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchLockException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((TxnOpenException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof unlock_result) + return this.equals((unlock_result)that); + return false; + } + + public boolean equals(unlock_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; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(unlock_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; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + 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("unlock_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // 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 unlock_resultStandardSchemeFactory implements SchemeFactory { + public unlock_resultStandardScheme getScheme() { + return new unlock_resultStandardScheme(); + } + } + + private static class unlock_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_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 NoSuchLockException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new TxnOpenException(); + struct.o2.read(iprot); + struct.setO2IsSet(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, unlock_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(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class unlock_resultTupleSchemeFactory implements SchemeFactory { + public unlock_resultTupleScheme getScheme() { + return new unlock_resultTupleScheme(); + } + } + + private static class unlock_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, unlock_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, unlock_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchLockException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new TxnOpenException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class show_locks_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("show_locks_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 show_locks_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_locks_argsTupleSchemeFactory()); + } + + private ShowLocksRequest 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, ShowLocksRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_locks_args.class, metaDataMap); + } + + public show_locks_args() { + } + + public show_locks_args( + ShowLocksRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public show_locks_args(show_locks_args other) { + if (other.isSetRqst()) { + this.rqst = new ShowLocksRequest(other.rqst); + } + } + + public show_locks_args deepCopy() { + return new show_locks_args(this); + } + + @Override + public void clear() { + this.rqst = null; + } + + public ShowLocksRequest getRqst() { + return this.rqst; + } + + public void setRqst(ShowLocksRequest 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((ShowLocksRequest)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 show_locks_args) + return this.equals((show_locks_args)that); + return false; + } + + public boolean equals(show_locks_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(show_locks_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("show_locks_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 show_locks_argsStandardSchemeFactory implements SchemeFactory { + public show_locks_argsStandardScheme getScheme() { + return new show_locks_argsStandardScheme(); + } + } + + private static class show_locks_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_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 ShowLocksRequest(); + 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, show_locks_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 show_locks_argsTupleSchemeFactory implements SchemeFactory { + public show_locks_argsTupleScheme getScheme() { + return new show_locks_argsTupleScheme(); + } + } + + private static class show_locks_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, show_locks_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, show_locks_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new ShowLocksRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class show_locks_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("show_locks_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new show_locks_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_locks_resultTupleSchemeFactory()); + } + + private ShowLocksResponse 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ShowLocksResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_locks_result.class, metaDataMap); + } + + public show_locks_result() { + } + + public show_locks_result( + ShowLocksResponse success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public show_locks_result(show_locks_result other) { + if (other.isSetSuccess()) { + this.success = new ShowLocksResponse(other.success); + } + } + + public show_locks_result deepCopy() { + return new show_locks_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public ShowLocksResponse getSuccess() { + return this.success; + } + + public void setSuccess(ShowLocksResponse 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((ShowLocksResponse)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 show_locks_result) + return this.equals((show_locks_result)that); + return false; + } + + public boolean equals(show_locks_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(show_locks_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("show_locks_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 + 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 show_locks_resultStandardSchemeFactory implements SchemeFactory { + public show_locks_resultStandardScheme getScheme() { + return new show_locks_resultStandardScheme(); + } + } + + private static class show_locks_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_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 ShowLocksResponse(); + struct.success.read(iprot); + 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, show_locks_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(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class show_locks_resultTupleSchemeFactory implements SchemeFactory { + public show_locks_resultTupleScheme getScheme() { + return new show_locks_resultTupleScheme(); + } + } + + private static class show_locks_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, show_locks_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()) { + struct.success.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, show_locks_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = new ShowLocksResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_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("heartbeat_args"); + + private static final org.apache.thrift.protocol.TField IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ids", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new heartbeat_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new heartbeat_argsTupleSchemeFactory()); + } + + private HeartbeatRequest ids; // 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 { + IDS((short)1, "ids"); + + 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: // IDS + return IDS; + 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.IDS, new org.apache.thrift.meta_data.FieldMetaData("ids", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HeartbeatRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_args.class, metaDataMap); + } + + public heartbeat_args() { + } + + public heartbeat_args( + HeartbeatRequest ids) + { + this(); + this.ids = ids; + } + + /** + * Performs a deep copy on other. + */ + public heartbeat_args(heartbeat_args other) { + if (other.isSetIds()) { + this.ids = new HeartbeatRequest(other.ids); + } + } + + public heartbeat_args deepCopy() { + return new heartbeat_args(this); + } + + @Override + public void clear() { + this.ids = null; + } + + public HeartbeatRequest getIds() { + return this.ids; + } + + public void setIds(HeartbeatRequest ids) { + this.ids = ids; + } + + public void unsetIds() { + this.ids = null; + } + + /** Returns true if field ids is set (has been assigned a value) and false otherwise */ + public boolean isSetIds() { + return this.ids != null; + } + + public void setIdsIsSet(boolean value) { + if (!value) { + this.ids = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case IDS: + if (value == null) { + unsetIds(); + } else { + setIds((HeartbeatRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case IDS: + return getIds(); + + } + 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 IDS: + return isSetIds(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof heartbeat_args) + return this.equals((heartbeat_args)that); + return false; + } + + public boolean equals(heartbeat_args that) { + if (that == null) + return false; + + boolean this_present_ids = true && this.isSetIds(); + boolean that_present_ids = true && that.isSetIds(); + if (this_present_ids || that_present_ids) { + if (!(this_present_ids && that_present_ids)) + return false; + if (!this.ids.equals(that.ids)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_ids = true && (isSetIds()); + list.add(present_ids); + if (present_ids) + list.add(ids); + + return list.hashCode(); + } + + @Override + public int compareTo(heartbeat_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetIds()).compareTo(other.isSetIds()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIds()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, other.ids); + 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_args("); + boolean first = true; + + sb.append("ids:"); + if (this.ids == null) { + sb.append("null"); + } else { + sb.append(this.ids); + } + 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 (ids != null) { + ids.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 heartbeat_argsStandardSchemeFactory implements SchemeFactory { + public heartbeat_argsStandardScheme getScheme() { + return new heartbeat_argsStandardScheme(); + } + } + + private static class heartbeat_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_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: // IDS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ids = new HeartbeatRequest(); + struct.ids.read(iprot); + struct.setIdsIsSet(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_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.ids != null) { + oprot.writeFieldBegin(IDS_FIELD_DESC); + struct.ids.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class heartbeat_argsTupleSchemeFactory implements SchemeFactory { + public heartbeat_argsTupleScheme getScheme() { + return new heartbeat_argsTupleScheme(); + } + } + + private static class heartbeat_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetIds()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetIds()) { + struct.ids.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.ids = new HeartbeatRequest(); + struct.ids.read(iprot); + struct.setIdsIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_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_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 org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new heartbeat_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new heartbeat_resultTupleSchemeFactory()); + } + + private NoSuchLockException o1; // required + private NoSuchTxnException o2; // required + private TxnAbortedException o3; // 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"), + O2((short)2, "o2"), + O3((short)3, "o3"); + + 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; + case 2: // O2 + return O2; + case 3: // O3 + return O3; + 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))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", 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_result.class, metaDataMap); + } + + public heartbeat_result() { + } + + public heartbeat_result( + NoSuchLockException o1, + NoSuchTxnException o2, + TxnAbortedException o3) + { + this(); + this.o1 = o1; + this.o2 = o2; + this.o3 = o3; + } + + /** + * Performs a deep copy on other. + */ + public heartbeat_result(heartbeat_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchLockException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchTxnException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new TxnAbortedException(other.o3); + } + } + + public heartbeat_result deepCopy() { + return new heartbeat_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + this.o3 = null; + } + + public NoSuchLockException getO1() { + return this.o1; + } + + public void setO1(NoSuchLockException 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 NoSuchTxnException getO2() { + return this.o2; + } + + public void setO2(NoSuchTxnException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public TxnAbortedException getO3() { + return this.o3; + } + + public void setO3(TxnAbortedException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchLockException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchTxnException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((TxnAbortedException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + + } + 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(); + case O2: + return isSetO2(); + case O3: + return isSetO3(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof heartbeat_result) + return this.equals((heartbeat_result)that); + return false; + } + + public boolean equals(heartbeat_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; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + 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); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + return list.hashCode(); + } + + @Override + public int compareTo(heartbeat_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; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + 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_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + 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 heartbeat_resultStandardSchemeFactory implements SchemeFactory { + public heartbeat_resultStandardScheme getScheme() { + return new heartbeat_resultStandardScheme(); + } + } + + private static class heartbeat_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_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 NoSuchLockException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new NoSuchTxnException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new TxnAbortedException(); + struct.o3.read(iprot); + struct.setO3IsSet(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_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(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class heartbeat_resultTupleSchemeFactory implements SchemeFactory { + public heartbeat_resultTupleScheme getScheme() { + return new heartbeat_resultTupleScheme(); + } + } + + private static class heartbeat_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + if (struct.isSetO3()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.o1 = new NoSuchLockException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new NoSuchTxnException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { + struct.o3 = new TxnAbortedException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_txn_range_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("heartbeat_txn_range_args"); + + private static final org.apache.thrift.protocol.TField TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("txns", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new heartbeat_txn_range_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new heartbeat_txn_range_argsTupleSchemeFactory()); + } + + private HeartbeatTxnRangeRequest txns; // 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 { + TXNS((short)1, "txns"); + + 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: // TXNS + return TXNS; + 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.TXNS, new org.apache.thrift.meta_data.FieldMetaData("txns", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HeartbeatTxnRangeRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_txn_range_args.class, metaDataMap); + } + + public heartbeat_txn_range_args() { + } + + public heartbeat_txn_range_args( + HeartbeatTxnRangeRequest txns) + { + this(); + this.txns = txns; + } + + /** + * Performs a deep copy on other. + */ + public heartbeat_txn_range_args(heartbeat_txn_range_args other) { + if (other.isSetTxns()) { + this.txns = new HeartbeatTxnRangeRequest(other.txns); + } + } + + public heartbeat_txn_range_args deepCopy() { + return new heartbeat_txn_range_args(this); + } + + @Override + public void clear() { + this.txns = null; + } + + public HeartbeatTxnRangeRequest getTxns() { + return this.txns; + } + + public void setTxns(HeartbeatTxnRangeRequest txns) { + this.txns = txns; + } + + public void unsetTxns() { + this.txns = null; + } + + /** Returns true if field txns is set (has been assigned a value) and false otherwise */ + public boolean isSetTxns() { + return this.txns != null; + } + + public void setTxnsIsSet(boolean value) { + if (!value) { + this.txns = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TXNS: + if (value == null) { + unsetTxns(); + } else { + setTxns((HeartbeatTxnRangeRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TXNS: + return getTxns(); + + } + 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 TXNS: + return isSetTxns(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof heartbeat_txn_range_args) + return this.equals((heartbeat_txn_range_args)that); + return false; + } + + public boolean equals(heartbeat_txn_range_args that) { + if (that == null) + return false; + + boolean this_present_txns = true && this.isSetTxns(); + boolean that_present_txns = true && that.isSetTxns(); + if (this_present_txns || that_present_txns) { + if (!(this_present_txns && that_present_txns)) + return false; + if (!this.txns.equals(that.txns)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_txns = true && (isSetTxns()); + list.add(present_txns); + if (present_txns) + list.add(txns); + + return list.hashCode(); + } + + @Override + public int compareTo(heartbeat_txn_range_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTxns()).compareTo(other.isSetTxns()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txns, other.txns); + 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_txn_range_args("); + boolean first = true; + + sb.append("txns:"); + if (this.txns == null) { + sb.append("null"); + } else { + sb.append(this.txns); + } + 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 (txns != null) { + txns.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 heartbeat_txn_range_argsStandardSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_argsStandardScheme getScheme() { + return new heartbeat_txn_range_argsStandardScheme(); + } + } + + private static class heartbeat_txn_range_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_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: // TXNS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.txns = new HeartbeatTxnRangeRequest(); + struct.txns.read(iprot); + struct.setTxnsIsSet(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_txn_range_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.txns != null) { + oprot.writeFieldBegin(TXNS_FIELD_DESC); + struct.txns.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class heartbeat_txn_range_argsTupleSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_argsTupleScheme getScheme() { + return new heartbeat_txn_range_argsTupleScheme(); + } + } + + private static class heartbeat_txn_range_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetTxns()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetTxns()) { + struct.txns.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.txns = new HeartbeatTxnRangeRequest(); + struct.txns.read(iprot); + struct.setTxnsIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_txn_range_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_txn_range_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new heartbeat_txn_range_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new heartbeat_txn_range_resultTupleSchemeFactory()); + } + + private HeartbeatTxnRangeResponse 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HeartbeatTxnRangeResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_txn_range_result.class, metaDataMap); + } + + public heartbeat_txn_range_result() { + } + + public heartbeat_txn_range_result( + HeartbeatTxnRangeResponse success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public heartbeat_txn_range_result(heartbeat_txn_range_result other) { + if (other.isSetSuccess()) { + this.success = new HeartbeatTxnRangeResponse(other.success); + } + } + + public heartbeat_txn_range_result deepCopy() { + return new heartbeat_txn_range_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public HeartbeatTxnRangeResponse getSuccess() { + return this.success; + } + + public void setSuccess(HeartbeatTxnRangeResponse 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((HeartbeatTxnRangeResponse)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 heartbeat_txn_range_result) + return this.equals((heartbeat_txn_range_result)that); + return false; + } + + public boolean equals(heartbeat_txn_range_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(heartbeat_txn_range_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_txn_range_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 + 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 heartbeat_txn_range_resultStandardSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_resultStandardScheme getScheme() { + return new heartbeat_txn_range_resultStandardScheme(); + } + } + + private static class heartbeat_txn_range_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_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 HeartbeatTxnRangeResponse(); + struct.success.read(iprot); + 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_txn_range_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(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class heartbeat_txn_range_resultTupleSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_resultTupleScheme getScheme() { + return new heartbeat_txn_range_resultTupleScheme(); + } + } + + private static class heartbeat_txn_range_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_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()) { + struct.success.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = new HeartbeatTxnRangeResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class 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("compact_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 compact_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory()); + } + + private CompactionRequest 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, CompactionRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_args.class, metaDataMap); + } + + public compact_args() { + } + + public compact_args( + CompactionRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public compact_args(compact_args other) { + if (other.isSetRqst()) { + this.rqst = new CompactionRequest(other.rqst); + } + } + + public compact_args deepCopy() { + return new compact_args(this); + } + + @Override + public void clear() { + this.rqst = null; + } + + public CompactionRequest getRqst() { + return this.rqst; + } + + public void setRqst(CompactionRequest 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((CompactionRequest)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 compact_args) + return this.equals((compact_args)that); + return false; + } + + public boolean equals(compact_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(compact_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("compact_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 compact_argsStandardSchemeFactory implements SchemeFactory { + public compact_argsStandardScheme getScheme() { + return new compact_argsStandardScheme(); + } + } + + private static class compact_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, 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: // RQST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rqst = new CompactionRequest(); + 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, compact_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 compact_argsTupleSchemeFactory implements SchemeFactory { + public compact_argsTupleScheme getScheme() { + return new compact_argsTupleScheme(); + } + } + + private static class compact_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, compact_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, compact_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new CompactionRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class 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("compact_result"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact_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(compact_result.class, metaDataMap); + } + + public compact_result() { + } + + /** + * Performs a deep copy on other. + */ + public compact_result(compact_result other) { + } + + public compact_result deepCopy() { + return new compact_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 compact_result) + return this.equals((compact_result)that); + return false; + } + + public boolean equals(compact_result that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + return list.hashCode(); + } + + @Override + public int compareTo(compact_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("compact_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 compact_resultStandardSchemeFactory implements SchemeFactory { + public compact_resultStandardScheme getScheme() { + return new compact_resultStandardScheme(); + } + } + + private static class compact_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, 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) { + 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, compact_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class compact_resultTupleSchemeFactory implements SchemeFactory { + public compact_resultTupleScheme getScheme() { + return new compact_resultTupleScheme(); + } + } + + private static class compact_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, compact_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 compact2_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("compact2_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 compact2_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact2_argsTupleSchemeFactory()); + } + + private CompactionRequest 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, CompactionRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_args.class, metaDataMap); + } + + public compact2_args() { + } + + public compact2_args( + CompactionRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public compact2_args(compact2_args other) { + if (other.isSetRqst()) { + this.rqst = new CompactionRequest(other.rqst); + } + } + + public compact2_args deepCopy() { + return new compact2_args(this); + } + + @Override + public void clear() { + this.rqst = null; + } + + public CompactionRequest getRqst() { + return this.rqst; + } + + public void setRqst(CompactionRequest 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((CompactionRequest)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 compact2_args) + return this.equals((compact2_args)that); + return false; + } + + public boolean equals(compact2_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(compact2_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("compact2_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 compact2_argsStandardSchemeFactory implements SchemeFactory { + public compact2_argsStandardScheme getScheme() { + return new compact2_argsStandardScheme(); + } + } + + private static class compact2_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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 CompactionRequest(); + 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, compact2_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 compact2_argsTupleSchemeFactory implements SchemeFactory { + public compact2_argsTupleScheme getScheme() { + return new compact2_argsTupleScheme(); + } + } + + private static class compact2_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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, compact2_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new CompactionRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class compact2_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("compact2_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new compact2_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact2_resultTupleSchemeFactory()); + } + + private CompactionResponse 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_result.class, metaDataMap); + } + + public compact2_result() { + } + + public compact2_result( + CompactionResponse success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public compact2_result(compact2_result other) { + if (other.isSetSuccess()) { + this.success = new CompactionResponse(other.success); + } + } + + public compact2_result deepCopy() { + return new compact2_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public CompactionResponse getSuccess() { + return this.success; + } + + public void setSuccess(CompactionResponse 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((CompactionResponse)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 compact2_result) + return this.equals((compact2_result)that); + return false; + } + + public boolean equals(compact2_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(compact2_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("compact2_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 + 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 compact2_resultStandardSchemeFactory implements SchemeFactory { + public compact2_resultStandardScheme getScheme() { + return new compact2_resultStandardScheme(); + } + } + + private static class compact2_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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 CompactionResponse(); + struct.success.read(iprot); + 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, compact2_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(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class compact2_resultTupleSchemeFactory implements SchemeFactory { + public compact2_resultTupleScheme getScheme() { + return new compact2_resultTupleScheme(); + } + } + + private static class compact2_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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()) { + struct.success.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, compact2_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = new CompactionResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class show_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("show_compact_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 show_compact_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_compact_argsTupleSchemeFactory()); + } + + private ShowCompactRequest 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, ShowCompactRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_args.class, metaDataMap); + } + + public show_compact_args() { + } + + public show_compact_args( + ShowCompactRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public show_compact_args(show_compact_args other) { + if (other.isSetRqst()) { + this.rqst = new ShowCompactRequest(other.rqst); + } + } + + public show_compact_args deepCopy() { + return new show_compact_args(this); + } + + @Override + public void clear() { + this.rqst = null; + } + + public ShowCompactRequest getRqst() { + return this.rqst; + } + + public void setRqst(ShowCompactRequest 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((ShowCompactRequest)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 show_compact_args) + return this.equals((show_compact_args)that); + return false; + } + + public boolean equals(show_compact_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(show_compact_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("show_compact_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 show_compact_argsStandardSchemeFactory implements SchemeFactory { + public show_compact_argsStandardScheme getScheme() { + return new show_compact_argsStandardScheme(); + } + } + + private static class show_compact_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, show_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: // RQST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rqst = new ShowCompactRequest(); + 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, show_compact_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 show_compact_argsTupleSchemeFactory implements SchemeFactory { + public show_compact_argsTupleScheme getScheme() { + return new show_compact_argsTupleScheme(); + } + } + + private static class show_compact_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_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, show_compact_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new ShowCompactRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class show_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("show_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new show_compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_compact_resultTupleSchemeFactory()); + } + + private ShowCompactResponse 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ShowCompactResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_result.class, metaDataMap); + } + + public show_compact_result() { + } + + public show_compact_result( + ShowCompactResponse success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public show_compact_result(show_compact_result other) { + if (other.isSetSuccess()) { + this.success = new ShowCompactResponse(other.success); + } + } + + public show_compact_result deepCopy() { + return new show_compact_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public ShowCompactResponse getSuccess() { + return this.success; + } + + public void setSuccess(ShowCompactResponse 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((ShowCompactResponse)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 show_compact_result) + return this.equals((show_compact_result)that); + return false; + } + + public boolean equals(show_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; + } + + 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(show_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; + } + } + 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("show_compact_result("); boolean first = true; sb.append("success:"); @@ -197120,30 +203460,6 @@ public String toString() { sb.append(this.success); } first = false; - if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { - sb.append("null"); - } else { - sb.append(this.o2); - } - first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -197172,15 +203488,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class check_lock_resultStandardSchemeFactory implements SchemeFactory { - public check_lock_resultStandardScheme getScheme() { - return new check_lock_resultStandardScheme(); + private static class show_compact_resultStandardSchemeFactory implements SchemeFactory { + public show_compact_resultStandardScheme getScheme() { + return new show_compact_resultStandardScheme(); } } - private static class check_lock_resultStandardScheme extends StandardScheme { + private static class show_compact_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, check_lock_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -197192,40 +203508,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, check_lock_result s switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new LockResponse(); + struct.success = new ShowCompactResponse(); 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 NoSuchTxnException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new TxnAbortedException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new NoSuchLockException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -197235,7 +203524,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, check_lock_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, check_lock_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -197244,107 +203533,59 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, check_lock_result struct.success.write(oprot); oprot.writeFieldEnd(); } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class check_lock_resultTupleSchemeFactory implements SchemeFactory { - public check_lock_resultTupleScheme getScheme() { - return new check_lock_resultTupleScheme(); + private static class show_compact_resultTupleSchemeFactory implements SchemeFactory { + public show_compact_resultTupleScheme getScheme() { + return new show_compact_resultTupleScheme(); } } - private static class check_lock_resultTupleScheme extends TupleScheme { + private static class show_compact_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, check_lock_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, show_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); - } - if (struct.isSetO2()) { - optionals.set(2); - } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { struct.success.write(oprot); } - if (struct.isSetO1()) { - struct.o1.write(oprot); - } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, check_lock_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new LockResponse(); + struct.success = new ShowCompactResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.o1 = new NoSuchTxnException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(2)) { - struct.o2 = new TxnAbortedException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } - if (incoming.get(3)) { - struct.o3 = new NoSuchLockException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class unlock_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("unlock_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_dynamic_partitions_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_dynamic_partitions_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 unlock_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new unlock_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_dynamic_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_dynamic_partitions_argsTupleSchemeFactory()); } - private UnlockRequest rqst; // required + private AddDynamicPartitions 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 { @@ -197409,16 +203650,16 @@ public String getFieldName() { 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, UnlockRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddDynamicPartitions.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unlock_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_args.class, metaDataMap); } - public unlock_args() { + public add_dynamic_partitions_args() { } - public unlock_args( - UnlockRequest rqst) + public add_dynamic_partitions_args( + AddDynamicPartitions rqst) { this(); this.rqst = rqst; @@ -197427,14 +203668,14 @@ public unlock_args( /** * Performs a deep copy on other. */ - public unlock_args(unlock_args other) { + public add_dynamic_partitions_args(add_dynamic_partitions_args other) { if (other.isSetRqst()) { - this.rqst = new UnlockRequest(other.rqst); + this.rqst = new AddDynamicPartitions(other.rqst); } } - public unlock_args deepCopy() { - return new unlock_args(this); + public add_dynamic_partitions_args deepCopy() { + return new add_dynamic_partitions_args(this); } @Override @@ -197442,11 +203683,11 @@ public void clear() { this.rqst = null; } - public UnlockRequest getRqst() { + public AddDynamicPartitions getRqst() { return this.rqst; } - public void setRqst(UnlockRequest rqst) { + public void setRqst(AddDynamicPartitions rqst) { this.rqst = rqst; } @@ -197471,7 +203712,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRqst(); } else { - setRqst((UnlockRequest)value); + setRqst((AddDynamicPartitions)value); } break; @@ -197504,12 +203745,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof unlock_args) - return this.equals((unlock_args)that); + if (that instanceof add_dynamic_partitions_args) + return this.equals((add_dynamic_partitions_args)that); return false; } - public boolean equals(unlock_args that) { + public boolean equals(add_dynamic_partitions_args that) { if (that == null) return false; @@ -197538,7 +203779,7 @@ public int hashCode() { } @Override - public int compareTo(unlock_args other) { + public int compareTo(add_dynamic_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -197572,7 +203813,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("unlock_args("); + StringBuilder sb = new StringBuilder("add_dynamic_partitions_args("); boolean first = true; sb.append("rqst:"); @@ -197610,15 +203851,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class unlock_argsStandardSchemeFactory implements SchemeFactory { - public unlock_argsStandardScheme getScheme() { - return new unlock_argsStandardScheme(); + private static class add_dynamic_partitions_argsStandardSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_argsStandardScheme getScheme() { + return new add_dynamic_partitions_argsStandardScheme(); } } - private static class unlock_argsStandardScheme extends StandardScheme { + private static class add_dynamic_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -197630,7 +203871,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_args struct) switch (schemeField.id) { case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new UnlockRequest(); + struct.rqst = new AddDynamicPartitions(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } else { @@ -197646,7 +203887,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_args struct) struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, unlock_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -197661,16 +203902,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, unlock_args struct } - private static class unlock_argsTupleSchemeFactory implements SchemeFactory { - public unlock_argsTupleScheme getScheme() { - return new unlock_argsTupleScheme(); + private static class add_dynamic_partitions_argsTupleSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_argsTupleScheme getScheme() { + return new add_dynamic_partitions_argsTupleScheme(); } } - private static class unlock_argsTupleScheme extends TupleScheme { + private static class add_dynamic_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, unlock_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRqst()) { @@ -197683,11 +203924,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, unlock_args struct) } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, unlock_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.rqst = new UnlockRequest(); + struct.rqst = new AddDynamicPartitions(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } @@ -197696,20 +203937,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, unlock_args struct) } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class unlock_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("unlock_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_dynamic_partitions_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_dynamic_partitions_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 org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new unlock_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new unlock_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_dynamic_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_dynamic_partitions_resultTupleSchemeFactory()); } - private NoSuchLockException o1; // required - private TxnOpenException o2; // required + private NoSuchTxnException o1; // required + private TxnAbortedException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -197781,15 +204022,15 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unlock_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_result.class, metaDataMap); } - public unlock_result() { + public add_dynamic_partitions_result() { } - public unlock_result( - NoSuchLockException o1, - TxnOpenException o2) + public add_dynamic_partitions_result( + NoSuchTxnException o1, + TxnAbortedException o2) { this(); this.o1 = o1; @@ -197799,17 +204040,17 @@ public unlock_result( /** * Performs a deep copy on other. */ - public unlock_result(unlock_result other) { + public add_dynamic_partitions_result(add_dynamic_partitions_result other) { if (other.isSetO1()) { - this.o1 = new NoSuchLockException(other.o1); + this.o1 = new NoSuchTxnException(other.o1); } if (other.isSetO2()) { - this.o2 = new TxnOpenException(other.o2); + this.o2 = new TxnAbortedException(other.o2); } } - public unlock_result deepCopy() { - return new unlock_result(this); + public add_dynamic_partitions_result deepCopy() { + return new add_dynamic_partitions_result(this); } @Override @@ -197818,11 +204059,11 @@ public void clear() { this.o2 = null; } - public NoSuchLockException getO1() { + public NoSuchTxnException getO1() { return this.o1; } - public void setO1(NoSuchLockException o1) { + public void setO1(NoSuchTxnException o1) { this.o1 = o1; } @@ -197841,11 +204082,11 @@ public void setO1IsSet(boolean value) { } } - public TxnOpenException getO2() { + public TxnAbortedException getO2() { return this.o2; } - public void setO2(TxnOpenException o2) { + public void setO2(TxnAbortedException o2) { this.o2 = o2; } @@ -197870,7 +204111,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchLockException)value); + setO1((NoSuchTxnException)value); } break; @@ -197878,7 +204119,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((TxnOpenException)value); + setO2((TxnAbortedException)value); } break; @@ -197916,12 +204157,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof unlock_result) - return this.equals((unlock_result)that); + if (that instanceof add_dynamic_partitions_result) + return this.equals((add_dynamic_partitions_result)that); return false; } - public boolean equals(unlock_result that) { + public boolean equals(add_dynamic_partitions_result that) { if (that == null) return false; @@ -197964,7 +204205,7 @@ public int hashCode() { } @Override - public int compareTo(unlock_result other) { + public int compareTo(add_dynamic_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -198008,7 +204249,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("unlock_result("); + StringBuilder sb = new StringBuilder("add_dynamic_partitions_result("); boolean first = true; sb.append("o1:"); @@ -198051,15 +204292,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class unlock_resultStandardSchemeFactory implements SchemeFactory { - public unlock_resultStandardScheme getScheme() { - return new unlock_resultStandardScheme(); + private static class add_dynamic_partitions_resultStandardSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_resultStandardScheme getScheme() { + return new add_dynamic_partitions_resultStandardScheme(); } } - private static class unlock_resultStandardScheme extends StandardScheme { + private static class add_dynamic_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -198071,7 +204312,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_result struc switch (schemeField.id) { case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchLockException(); + struct.o1 = new NoSuchTxnException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -198080,7 +204321,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_result struc break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new TxnOpenException(); + struct.o2 = new TxnAbortedException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -198096,7 +204337,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, unlock_result struc struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, unlock_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -198116,16 +204357,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, unlock_result stru } - private static class unlock_resultTupleSchemeFactory implements SchemeFactory { - public unlock_resultTupleScheme getScheme() { - return new unlock_resultTupleScheme(); + private static class add_dynamic_partitions_resultTupleSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_resultTupleScheme getScheme() { + return new add_dynamic_partitions_resultTupleScheme(); } } - private static class unlock_resultTupleScheme extends TupleScheme { + private static class add_dynamic_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, unlock_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -198144,16 +204385,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, unlock_result struc } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, unlock_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new NoSuchLockException(); + struct.o1 = new NoSuchTxnException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o2 = new TxnOpenException(); + struct.o2 = new TxnAbortedException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -198162,22 +204403,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, unlock_result struct } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class show_locks_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("show_locks_args"); + @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 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 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 show_locks_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_locks_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new find_next_compact_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_next_compact_argsTupleSchemeFactory()); } - private ShowLocksRequest rqst; // required + 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 { - RQST((short)1, "rqst"); + WORKER_ID((short)1, "workerId"); private static final Map byName = new HashMap(); @@ -198192,8 +204433,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, unlock_result struct */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // RQST - return RQST; + case 1: // WORKER_ID + return WORKER_ID; default: return null; } @@ -198237,70 +204478,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, ShowLocksRequest.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(show_locks_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_next_compact_args.class, metaDataMap); } - public show_locks_args() { + public find_next_compact_args() { } - public show_locks_args( - ShowLocksRequest rqst) + public find_next_compact_args( + String workerId) { this(); - this.rqst = rqst; + this.workerId = workerId; } /** * Performs a deep copy on other. */ - public show_locks_args(show_locks_args other) { - if (other.isSetRqst()) { - this.rqst = new ShowLocksRequest(other.rqst); + public find_next_compact_args(find_next_compact_args other) { + if (other.isSetWorkerId()) { + this.workerId = other.workerId; } } - public show_locks_args deepCopy() { - return new show_locks_args(this); + public find_next_compact_args deepCopy() { + return new find_next_compact_args(this); } @Override public void clear() { - this.rqst = null; + this.workerId = null; } - public ShowLocksRequest getRqst() { - return this.rqst; + public String getWorkerId() { + return this.workerId; } - public void setRqst(ShowLocksRequest rqst) { - this.rqst = rqst; + public void setWorkerId(String workerId) { + this.workerId = workerId; } - public void unsetRqst() { - this.rqst = null; + public void unsetWorkerId() { + this.workerId = 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 workerId is set (has been assigned a value) and false otherwise */ + public boolean isSetWorkerId() { + return this.workerId != null; } - public void setRqstIsSet(boolean value) { + public void setWorkerIdIsSet(boolean value) { if (!value) { - this.rqst = null; + this.workerId = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case RQST: + case WORKER_ID: if (value == null) { - unsetRqst(); + unsetWorkerId(); } else { - setRqst((ShowLocksRequest)value); + setWorkerId((String)value); } break; @@ -198309,8 +204550,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case RQST: - return getRqst(); + case WORKER_ID: + return getWorkerId(); } throw new IllegalStateException(); @@ -198323,8 +204564,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case RQST: - return isSetRqst(); + case WORKER_ID: + return isSetWorkerId(); } throw new IllegalStateException(); } @@ -198333,21 +204574,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof show_locks_args) - return this.equals((show_locks_args)that); + if (that instanceof find_next_compact_args) + return this.equals((find_next_compact_args)that); return false; } - public boolean equals(show_locks_args that) { + public boolean equals(find_next_compact_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_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.rqst.equals(that.rqst)) + if (!this.workerId.equals(that.workerId)) return false; } @@ -198358,28 +204599,28 @@ public boolean equals(show_locks_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_workerId = true && (isSetWorkerId()); + list.add(present_workerId); + if (present_workerId) + list.add(workerId); return list.hashCode(); } @Override - public int compareTo(show_locks_args other) { + 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(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetWorkerId()).compareTo(other.isSetWorkerId()); if (lastComparison != 0) { return lastComparison; } - if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + if (isSetWorkerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerId, other.workerId); if (lastComparison != 0) { return lastComparison; } @@ -198401,14 +204642,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("show_locks_args("); + StringBuilder sb = new StringBuilder("find_next_compact_args("); boolean first = true; - sb.append("rqst:"); - if (this.rqst == null) { + sb.append("workerId:"); + if (this.workerId == null) { sb.append("null"); } else { - sb.append(this.rqst); + sb.append(this.workerId); } first = false; sb.append(")"); @@ -198418,9 +204659,6 @@ 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(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -198439,15 +204677,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class show_locks_argsStandardSchemeFactory implements SchemeFactory { - public show_locks_argsStandardScheme getScheme() { - return new show_locks_argsStandardScheme(); + private static class find_next_compact_argsStandardSchemeFactory implements SchemeFactory { + public find_next_compact_argsStandardScheme getScheme() { + return new find_next_compact_argsStandardScheme(); } } - private static class show_locks_argsStandardScheme extends StandardScheme { + private static class find_next_compact_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_args struct) throws org.apache.thrift.TException { + 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) @@ -198457,11 +204695,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_args str break; } switch (schemeField.id) { - case 1: // RQST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new ShowLocksRequest(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); + 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); } @@ -198475,13 +204712,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, show_locks_args struct) throws org.apache.thrift.TException { + 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.rqst != null) { - oprot.writeFieldBegin(RQST_FIELD_DESC); - struct.rqst.write(oprot); + if (struct.workerId != null) { + oprot.writeFieldBegin(WORKER_ID_FIELD_DESC); + oprot.writeString(struct.workerId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -198490,57 +204727,59 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, show_locks_args st } - private static class show_locks_argsTupleSchemeFactory implements SchemeFactory { - public show_locks_argsTupleScheme getScheme() { - return new show_locks_argsTupleScheme(); + private static class find_next_compact_argsTupleSchemeFactory implements SchemeFactory { + public find_next_compact_argsTupleScheme getScheme() { + return new find_next_compact_argsTupleScheme(); } } - private static class show_locks_argsTupleScheme extends TupleScheme { + private static class find_next_compact_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_locks_args struct) throws org.apache.thrift.TException { + 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.isSetRqst()) { + if (struct.isSetWorkerId()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetRqst()) { - struct.rqst.write(oprot); + if (struct.isSetWorkerId()) { + oprot.writeString(struct.workerId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, show_locks_args struct) throws org.apache.thrift.TException { + 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.rqst = new ShowLocksRequest(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); + struct.workerId = iprot.readString(); + struct.setWorkerIdIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class show_locks_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("show_locks_result"); + @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 show_locks_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_locks_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new find_next_compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_next_compact_resultTupleSchemeFactory()); } - private ShowLocksResponse success; // required + private OptionalCompactionInfoStruct 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"); + SUCCESS((short)0, "success"), + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -198557,6 +204796,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // O1 + return O1; default: return null; } @@ -198601,44 +204842,52 @@ public String getFieldName() { 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, ShowLocksResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OptionalCompactionInfoStruct.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(show_locks_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_next_compact_result.class, metaDataMap); } - public show_locks_result() { + public find_next_compact_result() { } - public show_locks_result( - ShowLocksResponse success) + public find_next_compact_result( + OptionalCompactionInfoStruct success, + MetaException o1) { this(); this.success = success; + this.o1 = o1; } /** * Performs a deep copy on other. */ - public show_locks_result(show_locks_result other) { + public find_next_compact_result(find_next_compact_result other) { if (other.isSetSuccess()) { - this.success = new ShowLocksResponse(other.success); + this.success = new OptionalCompactionInfoStruct(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public show_locks_result deepCopy() { - return new show_locks_result(this); + public find_next_compact_result deepCopy() { + return new find_next_compact_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; } - public ShowLocksResponse getSuccess() { + public OptionalCompactionInfoStruct getSuccess() { return this.success; } - public void setSuccess(ShowLocksResponse success) { + public void setSuccess(OptionalCompactionInfoStruct success) { this.success = success; } @@ -198657,13 +204906,44 @@ public void setSuccessIsSet(boolean value) { } } + 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((ShowLocksResponse)value); + setSuccess((OptionalCompactionInfoStruct)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); } break; @@ -198675,6 +204955,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + } throw new IllegalStateException(); } @@ -198688,6 +204971,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); } throw new IllegalStateException(); } @@ -198696,12 +204981,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof show_locks_result) - return this.equals((show_locks_result)that); + if (that instanceof find_next_compact_result) + return this.equals((find_next_compact_result)that); return false; } - public boolean equals(show_locks_result that) { + public boolean equals(find_next_compact_result that) { if (that == null) return false; @@ -198714,6 +204999,15 @@ public boolean equals(show_locks_result that) { 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; } @@ -198726,11 +205020,16 @@ public int hashCode() { 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(show_locks_result other) { + public int compareTo(find_next_compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -198747,6 +205046,16 @@ public int compareTo(show_locks_result other) { 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; } @@ -198764,7 +205073,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("show_locks_result("); + StringBuilder sb = new StringBuilder("find_next_compact_result("); boolean first = true; sb.append("success:"); @@ -198774,6 +205083,14 @@ public String toString() { 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(); } @@ -198802,15 +205119,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class show_locks_resultStandardSchemeFactory implements SchemeFactory { - public show_locks_resultStandardScheme getScheme() { - return new show_locks_resultStandardScheme(); + private static class find_next_compact_resultStandardSchemeFactory implements SchemeFactory { + public find_next_compact_resultStandardScheme getScheme() { + return new find_next_compact_resultStandardScheme(); } } - private static class show_locks_resultStandardScheme extends StandardScheme { + private static class find_next_compact_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_result struct) throws org.apache.thrift.TException { + 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) @@ -198822,13 +205139,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_result s switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ShowLocksResponse(); + struct.success = new OptionalCompactionInfoStruct(); 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); } @@ -198838,7 +205164,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_locks_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, show_locks_result struct) throws org.apache.thrift.TException { + 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); @@ -198847,63 +205173,82 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, show_locks_result 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 show_locks_resultTupleSchemeFactory implements SchemeFactory { - public show_locks_resultTupleScheme getScheme() { - return new show_locks_resultTupleScheme(); + private static class find_next_compact_resultTupleSchemeFactory implements SchemeFactory { + public find_next_compact_resultTupleScheme getScheme() { + return new find_next_compact_resultTupleScheme(); } } - private static class show_locks_resultTupleScheme extends TupleScheme { + private static class find_next_compact_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_locks_result struct) throws org.apache.thrift.TException { + 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); } - oprot.writeBitSet(optionals, 1); + 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, show_locks_result struct) throws org.apache.thrift.TException { + 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(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new ShowLocksResponse(); + struct.success = new OptionalCompactionInfoStruct(); 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 heartbeat_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("heartbeat_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_compactor_state_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("update_compactor_state_args"); - private static final org.apache.thrift.protocol.TField IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ids", 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 org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_id", org.apache.thrift.protocol.TType.I64, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new heartbeat_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new update_compactor_state_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new update_compactor_state_argsTupleSchemeFactory()); } - private HeartbeatRequest ids; // required + private CompactionInfoStruct cr; // required + private long txn_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 { - IDS((short)1, "ids"); + CR((short)1, "cr"), + TXN_ID((short)2, "txn_id"); private static final Map byName = new HashMap(); @@ -198918,8 +205263,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_locks_result st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IDS - return IDS; + case 1: // CR + return CR; + case 2: // TXN_ID + return TXN_ID; default: return null; } @@ -198960,73 +205307,114 @@ public String getFieldName() { } // isset id assignments + private static final int __TXN_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.IDS, new org.apache.thrift.meta_data.FieldMetaData("ids", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HeartbeatRequest.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.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txn_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(heartbeat_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compactor_state_args.class, metaDataMap); } - public heartbeat_args() { + public update_compactor_state_args() { } - public heartbeat_args( - HeartbeatRequest ids) + public update_compactor_state_args( + CompactionInfoStruct cr, + long txn_id) { this(); - this.ids = ids; + this.cr = cr; + this.txn_id = txn_id; + setTxn_idIsSet(true); } /** * Performs a deep copy on other. */ - public heartbeat_args(heartbeat_args other) { - if (other.isSetIds()) { - this.ids = new HeartbeatRequest(other.ids); + public update_compactor_state_args(update_compactor_state_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } + this.txn_id = other.txn_id; } - public heartbeat_args deepCopy() { - return new heartbeat_args(this); + public update_compactor_state_args deepCopy() { + return new update_compactor_state_args(this); } @Override public void clear() { - this.ids = null; + this.cr = null; + setTxn_idIsSet(false); + this.txn_id = 0; } - public HeartbeatRequest getIds() { - return this.ids; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setIds(HeartbeatRequest ids) { - this.ids = ids; + public void setCr(CompactionInfoStruct cr) { + this.cr = cr; } - public void unsetIds() { - this.ids = null; + public void unsetCr() { + this.cr = null; } - /** Returns true if field ids is set (has been assigned a value) and false otherwise */ - public boolean isSetIds() { - return this.ids != 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 setIdsIsSet(boolean value) { + public void setCrIsSet(boolean value) { if (!value) { - this.ids = null; + this.cr = null; } } + public long getTxn_id() { + return this.txn_id; + } + + public void setTxn_id(long txn_id) { + this.txn_id = txn_id; + setTxn_idIsSet(true); + } + + public void unsetTxn_id() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TXN_ID_ISSET_ID); + } + + /** Returns true if field txn_id is set (has been assigned a value) and false otherwise */ + public boolean isSetTxn_id() { + return EncodingUtils.testBit(__isset_bitfield, __TXN_ID_ISSET_ID); + } + + public void setTxn_idIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXN_ID_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case IDS: + case CR: if (value == null) { - unsetIds(); + unsetCr(); } else { - setIds((HeartbeatRequest)value); + setCr((CompactionInfoStruct)value); + } + break; + + case TXN_ID: + if (value == null) { + unsetTxn_id(); + } else { + setTxn_id((Long)value); } break; @@ -199035,8 +205423,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case IDS: - return getIds(); + case CR: + return getCr(); + + case TXN_ID: + return getTxn_id(); } throw new IllegalStateException(); @@ -199049,8 +205440,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case IDS: - return isSetIds(); + case CR: + return isSetCr(); + case TXN_ID: + return isSetTxn_id(); } throw new IllegalStateException(); } @@ -199059,21 +205452,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_args) - return this.equals((heartbeat_args)that); + if (that instanceof update_compactor_state_args) + return this.equals((update_compactor_state_args)that); return false; } - public boolean equals(heartbeat_args that) { + public boolean equals(update_compactor_state_args that) { if (that == null) return false; - boolean this_present_ids = true && this.isSetIds(); - boolean that_present_ids = true && that.isSetIds(); - if (this_present_ids || that_present_ids) { - if (!(this_present_ids && that_present_ids)) + 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.ids.equals(that.ids)) + if (!this.cr.equals(that.cr)) + return false; + } + + boolean this_present_txn_id = true; + boolean that_present_txn_id = true; + if (this_present_txn_id || that_present_txn_id) { + if (!(this_present_txn_id && that_present_txn_id)) + return false; + if (this.txn_id != that.txn_id) return false; } @@ -199084,28 +205486,43 @@ public boolean equals(heartbeat_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_ids = true && (isSetIds()); - list.add(present_ids); - if (present_ids) - list.add(ids); + boolean present_cr = true && (isSetCr()); + list.add(present_cr); + if (present_cr) + list.add(cr); + + boolean present_txn_id = true; + list.add(present_txn_id); + if (present_txn_id) + list.add(txn_id); return list.hashCode(); } @Override - public int compareTo(heartbeat_args other) { + public int compareTo(update_compactor_state_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetIds()).compareTo(other.isSetIds()); + lastComparison = Boolean.valueOf(isSetCr()).compareTo(other.isSetCr()); if (lastComparison != 0) { return lastComparison; } - if (isSetIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, other.ids); + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTxn_id()).compareTo(other.isSetTxn_id()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxn_id()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_id, other.txn_id); if (lastComparison != 0) { return lastComparison; } @@ -199127,16 +205544,20 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_args("); + StringBuilder sb = new StringBuilder("update_compactor_state_args("); boolean first = true; - sb.append("ids:"); - if (this.ids == null) { + sb.append("cr:"); + if (this.cr == null) { sb.append("null"); } else { - sb.append(this.ids); + sb.append(this.cr); } first = false; + if (!first) sb.append(", "); + sb.append("txn_id:"); + sb.append(this.txn_id); + first = false; sb.append(")"); return sb.toString(); } @@ -199144,8 +205565,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (ids != null) { - ids.validate(); + if (cr != null) { + cr.validate(); } } @@ -199159,21 +205580,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 heartbeat_argsStandardSchemeFactory implements SchemeFactory { - public heartbeat_argsStandardScheme getScheme() { - return new heartbeat_argsStandardScheme(); + private static class update_compactor_state_argsStandardSchemeFactory implements SchemeFactory { + public update_compactor_state_argsStandardScheme getScheme() { + return new update_compactor_state_argsStandardScheme(); } } - private static class heartbeat_argsStandardScheme extends StandardScheme { + private static class update_compactor_state_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, update_compactor_state_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -199183,11 +205606,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_args stru break; } switch (schemeField.id) { - case 1: // IDS + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ids = new HeartbeatRequest(); - struct.ids.read(iprot); - struct.setIdsIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TXN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.txn_id = iprot.readI64(); + struct.setTxn_idIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -199201,78 +205632,83 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_args stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, update_compactor_state_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.ids != null) { - oprot.writeFieldBegin(IDS_FIELD_DESC); - struct.ids.write(oprot); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(TXN_ID_FIELD_DESC); + oprot.writeI64(struct.txn_id); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class heartbeat_argsTupleSchemeFactory implements SchemeFactory { - public heartbeat_argsTupleScheme getScheme() { - return new heartbeat_argsTupleScheme(); + private static class update_compactor_state_argsTupleSchemeFactory implements SchemeFactory { + public update_compactor_state_argsTupleScheme getScheme() { + return new update_compactor_state_argsTupleScheme(); } } - private static class heartbeat_argsTupleScheme extends TupleScheme { + private static class update_compactor_state_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetIds()) { + if (struct.isSetCr()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetIds()) { - struct.ids.write(oprot); + if (struct.isSetTxn_id()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetCr()) { + struct.cr.write(oprot); + } + if (struct.isSetTxn_id()) { + oprot.writeI64(struct.txn_id); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_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.ids = new HeartbeatRequest(); - struct.ids.read(iprot); - struct.setIdsIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } + if (incoming.get(1)) { + struct.txn_id = iprot.readI64(); + struct.setTxn_idIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_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_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_compactor_state_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("update_compactor_state_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 org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new heartbeat_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new update_compactor_state_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new update_compactor_state_resultTupleSchemeFactory()); } - private NoSuchLockException o1; // required - private NoSuchTxnException o2; // required - private TxnAbortedException o3; // 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"), - O2((short)2, "o2"), - O3((short)3, "o3"); +; private static final Map byName = new HashMap(); @@ -199287,12 +205723,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_args struc */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // O1 - return O1; - case 2: // O2 - return O2; - case 3: // O3 - return O3; default: return null; } @@ -199331,170 +205761,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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", 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_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compactor_state_result.class, metaDataMap); } - public heartbeat_result() { - } - - public heartbeat_result( - NoSuchLockException o1, - NoSuchTxnException o2, - TxnAbortedException o3) - { - this(); - this.o1 = o1; - this.o2 = o2; - this.o3 = o3; + public update_compactor_state_result() { } /** * Performs a deep copy on other. */ - public heartbeat_result(heartbeat_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchLockException(other.o1); - } - if (other.isSetO2()) { - this.o2 = new NoSuchTxnException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new TxnAbortedException(other.o3); - } + public update_compactor_state_result(update_compactor_state_result other) { } - public heartbeat_result deepCopy() { - return new heartbeat_result(this); + public update_compactor_state_result deepCopy() { + return new update_compactor_state_result(this); } @Override public void clear() { - this.o1 = null; - this.o2 = null; - this.o3 = null; - } - - public NoSuchLockException getO1() { - return this.o1; - } - - public void setO1(NoSuchLockException 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 NoSuchTxnException getO2() { - return this.o2; - } - - public void setO2(NoSuchTxnException o2) { - this.o2 = o2; - } - - public void unsetO2() { - this.o2 = null; - } - - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; - } - - public void setO2IsSet(boolean value) { - if (!value) { - this.o2 = null; - } - } - - public TxnAbortedException getO3() { - return this.o3; - } - - public void setO3(TxnAbortedException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchLockException)value); - } - break; - - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((NoSuchTxnException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((TxnAbortedException)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case O1: - return getO1(); - - case O2: - return getO2(); - - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -199506,12 +205803,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case O1: - return isSetO1(); - case O2: - return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -199520,42 +205811,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_result) - return this.equals((heartbeat_result)that); + if (that instanceof update_compactor_state_result) + return this.equals((update_compactor_state_result)that); return false; } - public boolean equals(heartbeat_result that) { + public boolean equals(update_compactor_state_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; - } - - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - return false; - } - - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -199563,62 +205827,17 @@ public boolean equals(heartbeat_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); - - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(heartbeat_result other) { + public int compareTo(update_compactor_state_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; - } - } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -199636,32 +205855,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_result("); + StringBuilder sb = new StringBuilder("update_compactor_state_result("); boolean first = true; - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { - sb.append("null"); - } else { - sb.append(this.o2); - } - first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -199687,15 +205883,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class heartbeat_resultStandardSchemeFactory implements SchemeFactory { - public heartbeat_resultStandardScheme getScheme() { - return new heartbeat_resultStandardScheme(); + private static class update_compactor_state_resultStandardSchemeFactory implements SchemeFactory { + public update_compactor_state_resultStandardScheme getScheme() { + return new update_compactor_state_resultStandardScheme(); } } - private static class heartbeat_resultStandardScheme extends StandardScheme { + private static class update_compactor_state_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, update_compactor_state_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -199705,33 +205901,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_result st break; } switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchLockException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchTxnException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new TxnAbortedException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -199741,104 +205910,53 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_result st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, update_compactor_state_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(); - } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class heartbeat_resultTupleSchemeFactory implements SchemeFactory { - public heartbeat_resultTupleScheme getScheme() { - return new heartbeat_resultTupleScheme(); + private static class update_compactor_state_resultTupleSchemeFactory implements SchemeFactory { + public update_compactor_state_resultTupleScheme getScheme() { + return new update_compactor_state_resultTupleScheme(); } } - private static class heartbeat_resultTupleScheme extends TupleScheme { + private static class update_compactor_state_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetO1()) { - optionals.set(0); - } - if (struct.isSetO2()) { - optionals.set(1); - } - if (struct.isSetO3()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetO1()) { - struct.o1.write(oprot); - } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.o1 = new NoSuchLockException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(1)) { - struct.o2 = new NoSuchTxnException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } - if (incoming.get(2)) { - struct.o3 = new TxnAbortedException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_txn_range_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("heartbeat_txn_range_args"); + @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 TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("txns", 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 heartbeat_txn_range_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_txn_range_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new find_columns_with_stats_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_columns_with_stats_argsTupleSchemeFactory()); } - private HeartbeatTxnRangeRequest txns; // 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 { - TXNS((short)1, "txns"); + CR((short)1, "cr"); private static final Map byName = new HashMap(); @@ -199853,8 +205971,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_result str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TXNS - return TXNS; + case 1: // CR + return CR; default: return null; } @@ -199898,70 +206016,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.TXNS, new org.apache.thrift.meta_data.FieldMetaData("txns", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HeartbeatTxnRangeRequest.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(heartbeat_txn_range_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_columns_with_stats_args.class, metaDataMap); } - public heartbeat_txn_range_args() { + public find_columns_with_stats_args() { } - public heartbeat_txn_range_args( - HeartbeatTxnRangeRequest txns) + public find_columns_with_stats_args( + CompactionInfoStruct cr) { this(); - this.txns = txns; + this.cr = cr; } /** * Performs a deep copy on other. */ - public heartbeat_txn_range_args(heartbeat_txn_range_args other) { - if (other.isSetTxns()) { - this.txns = new HeartbeatTxnRangeRequest(other.txns); + public find_columns_with_stats_args(find_columns_with_stats_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } } - public heartbeat_txn_range_args deepCopy() { - return new heartbeat_txn_range_args(this); + public find_columns_with_stats_args deepCopy() { + return new find_columns_with_stats_args(this); } @Override public void clear() { - this.txns = null; + this.cr = null; } - public HeartbeatTxnRangeRequest getTxns() { - return this.txns; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setTxns(HeartbeatTxnRangeRequest txns) { - this.txns = txns; + public void setCr(CompactionInfoStruct cr) { + this.cr = cr; } - public void unsetTxns() { - this.txns = null; + public void unsetCr() { + this.cr = null; } - /** Returns true if field txns is set (has been assigned a value) and false otherwise */ - public boolean isSetTxns() { - return this.txns != 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 setTxnsIsSet(boolean value) { + public void setCrIsSet(boolean value) { if (!value) { - this.txns = null; + this.cr = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TXNS: + case CR: if (value == null) { - unsetTxns(); + unsetCr(); } else { - setTxns((HeartbeatTxnRangeRequest)value); + setCr((CompactionInfoStruct)value); } break; @@ -199970,8 +206088,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case TXNS: - return getTxns(); + case CR: + return getCr(); } throw new IllegalStateException(); @@ -199984,8 +206102,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case TXNS: - return isSetTxns(); + case CR: + return isSetCr(); } throw new IllegalStateException(); } @@ -199994,21 +206112,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_txn_range_args) - return this.equals((heartbeat_txn_range_args)that); + if (that instanceof find_columns_with_stats_args) + return this.equals((find_columns_with_stats_args)that); return false; } - public boolean equals(heartbeat_txn_range_args that) { + public boolean equals(find_columns_with_stats_args that) { if (that == null) return false; - boolean this_present_txns = true && this.isSetTxns(); - boolean that_present_txns = true && that.isSetTxns(); - if (this_present_txns || that_present_txns) { - if (!(this_present_txns && that_present_txns)) + 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.txns.equals(that.txns)) + if (!this.cr.equals(that.cr)) return false; } @@ -200019,28 +206137,28 @@ public boolean equals(heartbeat_txn_range_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_txns = true && (isSetTxns()); - list.add(present_txns); - if (present_txns) - list.add(txns); + boolean present_cr = true && (isSetCr()); + list.add(present_cr); + if (present_cr) + list.add(cr); return list.hashCode(); } @Override - public int compareTo(heartbeat_txn_range_args other) { + 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(isSetTxns()).compareTo(other.isSetTxns()); + lastComparison = Boolean.valueOf(isSetCr()).compareTo(other.isSetCr()); if (lastComparison != 0) { return lastComparison; } - if (isSetTxns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txns, other.txns); + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); if (lastComparison != 0) { return lastComparison; } @@ -200062,14 +206180,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_txn_range_args("); + StringBuilder sb = new StringBuilder("find_columns_with_stats_args("); boolean first = true; - sb.append("txns:"); - if (this.txns == null) { + sb.append("cr:"); + if (this.cr == null) { sb.append("null"); } else { - sb.append(this.txns); + sb.append(this.cr); } first = false; sb.append(")"); @@ -200079,8 +206197,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (txns != null) { - txns.validate(); + if (cr != null) { + cr.validate(); } } @@ -200100,15 +206218,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class heartbeat_txn_range_argsStandardSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_argsStandardScheme getScheme() { - return new heartbeat_txn_range_argsStandardScheme(); + 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 heartbeat_txn_range_argsStandardScheme extends StandardScheme { + private static class find_columns_with_stats_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + 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) @@ -200118,11 +206236,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range break; } switch (schemeField.id) { - case 1: // TXNS + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.txns = new HeartbeatTxnRangeRequest(); - struct.txns.read(iprot); - struct.setTxnsIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -200136,13 +206254,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + 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.txns != null) { - oprot.writeFieldBegin(TXNS_FIELD_DESC); - struct.txns.write(oprot); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -200151,53 +206269,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_rang } - private static class heartbeat_txn_range_argsTupleSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_argsTupleScheme getScheme() { - return new heartbeat_txn_range_argsTupleScheme(); + 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 heartbeat_txn_range_argsTupleScheme extends TupleScheme { + private static class find_columns_with_stats_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + 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.isSetTxns()) { + if (struct.isSetCr()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetTxns()) { - struct.txns.write(oprot); + if (struct.isSetCr()) { + struct.cr.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + 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.txns = new HeartbeatTxnRangeRequest(); - struct.txns.read(iprot); - struct.setTxnsIsSet(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_txn_range_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_txn_range_result"); + @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.STRUCT, (short)0); + 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 heartbeat_txn_range_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_txn_range_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new find_columns_with_stats_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new find_columns_with_stats_resultTupleSchemeFactory()); } - private HeartbeatTxnRangeResponse success; // required + 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 { @@ -200262,16 +206380,17 @@ public String getFieldName() { 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, HeartbeatTxnRangeResponse.class))); + 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(heartbeat_txn_range_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_columns_with_stats_result.class, metaDataMap); } - public heartbeat_txn_range_result() { + public find_columns_with_stats_result() { } - public heartbeat_txn_range_result( - HeartbeatTxnRangeResponse success) + public find_columns_with_stats_result( + List success) { this(); this.success = success; @@ -200280,14 +206399,15 @@ public heartbeat_txn_range_result( /** * Performs a deep copy on other. */ - public heartbeat_txn_range_result(heartbeat_txn_range_result other) { + public find_columns_with_stats_result(find_columns_with_stats_result other) { if (other.isSetSuccess()) { - this.success = new HeartbeatTxnRangeResponse(other.success); + List __this__success = new ArrayList(other.success); + this.success = __this__success; } } - public heartbeat_txn_range_result deepCopy() { - return new heartbeat_txn_range_result(this); + public find_columns_with_stats_result deepCopy() { + return new find_columns_with_stats_result(this); } @Override @@ -200295,11 +206415,26 @@ public void clear() { this.success = null; } - public HeartbeatTxnRangeResponse getSuccess() { + 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(HeartbeatTxnRangeResponse success) { + public void setSuccess(List success) { this.success = success; } @@ -200324,7 +206459,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((HeartbeatTxnRangeResponse)value); + setSuccess((List)value); } break; @@ -200357,12 +206492,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_txn_range_result) - return this.equals((heartbeat_txn_range_result)that); + if (that instanceof find_columns_with_stats_result) + return this.equals((find_columns_with_stats_result)that); return false; } - public boolean equals(heartbeat_txn_range_result that) { + public boolean equals(find_columns_with_stats_result that) { if (that == null) return false; @@ -200391,7 +206526,7 @@ public int hashCode() { } @Override - public int compareTo(heartbeat_txn_range_result other) { + public int compareTo(find_columns_with_stats_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -200425,7 +206560,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_txn_range_result("); + StringBuilder sb = new StringBuilder("find_columns_with_stats_result("); boolean first = true; sb.append("success:"); @@ -200442,9 +206577,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 { @@ -200463,15 +206595,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class heartbeat_txn_range_resultStandardSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_resultStandardScheme getScheme() { - return new heartbeat_txn_range_resultStandardScheme(); + 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 heartbeat_txn_range_resultStandardScheme extends StandardScheme { + private static class find_columns_with_stats_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { + 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) @@ -200482,9 +206614,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new HeartbeatTxnRangeResponse(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1572 = iprot.readListBegin(); + struct.success = new ArrayList(_list1572.size); + String _elem1573; + for (int _i1574 = 0; _i1574 < _list1572.size; ++_i1574) + { + _elem1573 = iprot.readString(); + struct.success.add(_elem1573); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -200499,13 +206640,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { + 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); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1575 : struct.success) + { + oprot.writeString(_iter1575); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -200514,16 +206662,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_rang } - private static class heartbeat_txn_range_resultTupleSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_resultTupleScheme getScheme() { - return new heartbeat_txn_range_resultTupleScheme(); + 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 heartbeat_txn_range_resultTupleScheme extends TupleScheme { + private static class find_columns_with_stats_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { + 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()) { @@ -200531,17 +206679,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (String _iter1576 : struct.success) + { + oprot.writeString(_iter1576); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { + 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)) { - struct.success = new HeartbeatTxnRangeResponse(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1577.size); + String _elem1578; + for (int _i1579 = 0; _i1579 < _list1577.size; ++_i1579) + { + _elem1578 = iprot.readString(); + struct.success.add(_elem1578); + } + } struct.setSuccessIsSet(true); } } @@ -200549,22 +206711,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_ } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class 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("compact_args"); + @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 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 compact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_cleaned_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_cleaned_argsTupleSchemeFactory()); } - private CompactionRequest 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(); @@ -200579,8 +206741,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // RQST - return RQST; + case 1: // CR + return CR; default: return null; } @@ -200624,70 +206786,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, CompactionRequest.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(compact_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_args.class, metaDataMap); } - public compact_args() { + public mark_cleaned_args() { } - public compact_args( - CompactionRequest rqst) + public mark_cleaned_args( + CompactionInfoStruct cr) { this(); - this.rqst = rqst; + this.cr = cr; } /** * Performs a deep copy on other. */ - public compact_args(compact_args other) { - if (other.isSetRqst()) { - this.rqst = new CompactionRequest(other.rqst); + public mark_cleaned_args(mark_cleaned_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } } - public compact_args deepCopy() { - return new compact_args(this); + public mark_cleaned_args deepCopy() { + return new mark_cleaned_args(this); } @Override public void clear() { - this.rqst = null; + this.cr = null; } - public CompactionRequest getRqst() { - return this.rqst; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setRqst(CompactionRequest 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((CompactionRequest)value); + setCr((CompactionInfoStruct)value); } break; @@ -200696,8 +206858,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(); @@ -200710,8 +206872,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case RQST: - return isSetRqst(); + case CR: + return isSetCr(); } throw new IllegalStateException(); } @@ -200720,21 +206882,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact_args) - return this.equals((compact_args)that); + if (that instanceof mark_cleaned_args) + return this.equals((mark_cleaned_args)that); return false; } - public boolean equals(compact_args that) { + public boolean equals(mark_cleaned_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; } @@ -200745,28 +206907,28 @@ public boolean equals(compact_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(compact_args other) { + 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(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; } @@ -200788,14 +206950,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact_args("); + StringBuilder sb = new StringBuilder("mark_cleaned_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(")"); @@ -200805,8 +206967,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(); } } @@ -200826,15 +206988,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact_argsStandardSchemeFactory implements SchemeFactory { - public compact_argsStandardScheme getScheme() { - return new compact_argsStandardScheme(); + private static class mark_cleaned_argsStandardSchemeFactory implements SchemeFactory { + public mark_cleaned_argsStandardScheme getScheme() { + return new mark_cleaned_argsStandardScheme(); } } - private static class compact_argsStandardScheme extends StandardScheme { + private static class mark_cleaned_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact_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) @@ -200844,11 +207006,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct break; } switch (schemeField.id) { - case 1: // RQST + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new CompactionRequest(); - 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); } @@ -200862,13 +207024,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact_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.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(); @@ -200877,55 +207039,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, compact_args struc } - private static class compact_argsTupleSchemeFactory implements SchemeFactory { - public compact_argsTupleScheme getScheme() { - return new compact_argsTupleScheme(); + private static class mark_cleaned_argsTupleSchemeFactory implements SchemeFactory { + public mark_cleaned_argsTupleScheme getScheme() { + return new mark_cleaned_argsTupleScheme(); } } - private static class compact_argsTupleScheme extends TupleScheme { + private static class mark_cleaned_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact_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.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, compact_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(1); if (incoming.get(0)) { - struct.rqst = new CompactionRequest(); - 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 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("compact_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 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 compact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_cleaned_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_cleaned_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(); @@ -200940,6 +207104,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // O1 + return O1; default: return null; } @@ -200978,37 +207144,86 @@ 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(compact_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_result.class, metaDataMap); } - public compact_result() { + public mark_cleaned_result() { + } + + public mark_cleaned_result( + MetaException o1) + { + this(); + this.o1 = o1; } /** * Performs a deep copy on other. */ - public compact_result(compact_result other) { + public mark_cleaned_result(mark_cleaned_result other) { + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } } - public compact_result deepCopy() { - return new compact_result(this); + public mark_cleaned_result deepCopy() { + return new mark_cleaned_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(); } @@ -201020,6 +207235,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case O1: + return isSetO1(); } throw new IllegalStateException(); } @@ -201028,15 +207245,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact_result) - return this.equals((compact_result)that); + if (that instanceof mark_cleaned_result) + return this.equals((mark_cleaned_result)that); return false; } - public boolean equals(compact_result that) { + public boolean equals(mark_cleaned_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; } @@ -201044,17 +207270,32 @@ public boolean equals(compact_result that) { 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(compact_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(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; } @@ -201072,9 +207313,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact_result("); + StringBuilder sb = new StringBuilder("mark_cleaned_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(); } @@ -201100,15 +207348,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact_resultStandardSchemeFactory implements SchemeFactory { - public compact_resultStandardScheme getScheme() { - return new compact_resultStandardScheme(); + private static class mark_cleaned_resultStandardSchemeFactory implements SchemeFactory { + public mark_cleaned_resultStandardScheme getScheme() { + return new mark_cleaned_resultStandardScheme(); } } - private static class compact_resultStandardScheme extends StandardScheme { + private static class mark_cleaned_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact_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) @@ -201118,6 +207366,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result stru 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); } @@ -201127,53 +207384,72 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact_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.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class compact_resultTupleSchemeFactory implements SchemeFactory { - public compact_resultTupleScheme getScheme() { - return new compact_resultTupleScheme(); + private static class mark_cleaned_resultTupleSchemeFactory implements SchemeFactory { + public mark_cleaned_resultTupleScheme getScheme() { + return new mark_cleaned_resultTupleScheme(); } } - private static class compact_resultTupleScheme extends TupleScheme { + private static class mark_cleaned_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact_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.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, compact_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.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 compact2_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("compact2_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 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 compact2_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact2_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_compacted_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_compacted_argsTupleSchemeFactory()); } - private CompactionRequest 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(); @@ -201188,8 +207464,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struc */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // RQST - return RQST; + case 1: // CR + return CR; default: return null; } @@ -201233,70 +207509,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, CompactionRequest.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(compact2_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_args.class, metaDataMap); } - public compact2_args() { + public mark_compacted_args() { } - public compact2_args( - CompactionRequest rqst) + public mark_compacted_args( + CompactionInfoStruct cr) { this(); - this.rqst = rqst; + this.cr = cr; } /** * Performs a deep copy on other. */ - public compact2_args(compact2_args other) { - if (other.isSetRqst()) { - this.rqst = new CompactionRequest(other.rqst); + public mark_compacted_args(mark_compacted_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } } - public compact2_args deepCopy() { - return new compact2_args(this); + public mark_compacted_args deepCopy() { + return new mark_compacted_args(this); } @Override public void clear() { - this.rqst = null; + this.cr = null; } - public CompactionRequest getRqst() { - return this.rqst; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setRqst(CompactionRequest 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((CompactionRequest)value); + setCr((CompactionInfoStruct)value); } break; @@ -201305,8 +207581,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(); @@ -201319,8 +207595,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case RQST: - return isSetRqst(); + case CR: + return isSetCr(); } throw new IllegalStateException(); } @@ -201329,21 +207605,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact2_args) - return this.equals((compact2_args)that); + if (that instanceof mark_compacted_args) + return this.equals((mark_compacted_args)that); return false; } - public boolean equals(compact2_args that) { + public boolean equals(mark_compacted_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; } @@ -201354,28 +207630,28 @@ public boolean equals(compact2_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(compact2_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(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; } @@ -201397,14 +207673,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact2_args("); + StringBuilder sb = new StringBuilder("mark_compacted_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(")"); @@ -201414,8 +207690,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(); } } @@ -201435,15 +207711,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact2_argsStandardSchemeFactory implements SchemeFactory { - public compact2_argsStandardScheme getScheme() { - return new compact2_argsStandardScheme(); + private static class mark_compacted_argsStandardSchemeFactory implements SchemeFactory { + public mark_compacted_argsStandardScheme getScheme() { + return new mark_compacted_argsStandardScheme(); } } - private static class compact2_argsStandardScheme extends StandardScheme { + private static class mark_compacted_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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) @@ -201453,11 +207729,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_args struc break; } switch (schemeField.id) { - case 1: // RQST + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new CompactionRequest(); - 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); } @@ -201471,13 +207747,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_args struc struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_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.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(); @@ -201486,57 +207762,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_args stru } - private static class compact2_argsTupleSchemeFactory implements SchemeFactory { - public compact2_argsTupleScheme getScheme() { - return new compact2_argsTupleScheme(); + private static class mark_compacted_argsTupleSchemeFactory implements SchemeFactory { + public mark_compacted_argsTupleScheme getScheme() { + return new mark_compacted_argsTupleScheme(); } } - private static class compact2_argsTupleScheme extends TupleScheme { + private static class mark_compacted_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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.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, compact2_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.rqst = new CompactionRequest(); - 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 compact2_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("compact2_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 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 compact2_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact2_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_compacted_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_compacted_resultTupleSchemeFactory()); } - private CompactionResponse 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(); @@ -201551,8 +207827,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact2_args struct */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // O1 + return O1; default: return null; } @@ -201596,70 +207872,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.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, CompactionResponse.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(compact2_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_result.class, metaDataMap); } - public compact2_result() { + public mark_compacted_result() { } - public compact2_result( - CompactionResponse success) + public mark_compacted_result( + MetaException o1) { this(); - this.success = success; + this.o1 = o1; } /** * Performs a deep copy on other. */ - public compact2_result(compact2_result other) { - if (other.isSetSuccess()) { - this.success = new CompactionResponse(other.success); + public mark_compacted_result(mark_compacted_result other) { + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public compact2_result deepCopy() { - return new compact2_result(this); + public mark_compacted_result deepCopy() { + return new mark_compacted_result(this); } @Override public void clear() { - this.success = null; + this.o1 = null; } - public CompactionResponse getSuccess() { - return this.success; + public MetaException getO1() { + return this.o1; } - public void setSuccess(CompactionResponse success) { - this.success = success; + public void setO1(MetaException o1) { + this.o1 = o1; } - public void unsetSuccess() { - this.success = null; + 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 this.success != 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 setSuccessIsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.success = null; + this.o1 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((CompactionResponse)value); + setO1((MetaException)value); } break; @@ -201668,8 +207944,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case O1: + return getO1(); } throw new IllegalStateException(); @@ -201682,8 +207958,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case O1: + return isSetO1(); } throw new IllegalStateException(); } @@ -201692,21 +207968,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact2_result) - return this.equals((compact2_result)that); + if (that instanceof mark_compacted_result) + return this.equals((mark_compacted_result)that); return false; } - public boolean equals(compact2_result that) { + public boolean equals(mark_compacted_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)) + 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.equals(that.success)) + if (!this.o1.equals(that.o1)) return false; } @@ -201717,28 +207993,28 @@ public boolean equals(compact2_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(compact2_result other) { + public int compareTo(mark_compacted_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; } @@ -201760,14 +208036,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact2_result("); + StringBuilder sb = new StringBuilder("mark_compacted_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.success); + sb.append(this.o1); } first = false; sb.append(")"); @@ -201777,9 +208053,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 { @@ -201798,15 +208071,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact2_resultStandardSchemeFactory implements SchemeFactory { - public compact2_resultStandardScheme getScheme() { - return new compact2_resultStandardScheme(); + private static class mark_compacted_resultStandardSchemeFactory implements SchemeFactory { + public mark_compacted_resultStandardScheme getScheme() { + return new mark_compacted_resultStandardScheme(); } } - private static class compact2_resultStandardScheme extends StandardScheme { + private static class mark_compacted_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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) @@ -201816,11 +208089,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_result str break; } switch (schemeField.id) { - case 0: // SUCCESS + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new CompactionResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -201834,13 +208107,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_result str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_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); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -201849,57 +208122,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_result st } - private static class compact2_resultTupleSchemeFactory implements SchemeFactory { - public compact2_resultTupleScheme getScheme() { - return new compact2_resultTupleScheme(); + private static class mark_compacted_resultTupleSchemeFactory implements SchemeFactory { + public mark_compacted_resultTupleScheme getScheme() { + return new mark_compacted_resultTupleScheme(); } } - private static class compact2_resultTupleScheme extends TupleScheme { + private static class mark_compacted_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + if (struct.isSetO1()) { + struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, compact2_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)) { - struct.success = new CompactionResponse(); - struct.success.read(iprot); - 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 show_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("show_compact_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 show_compact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_compact_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_failed_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_failed_argsTupleSchemeFactory()); } - private ShowCompactRequest 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(); @@ -201914,8 +208187,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact2_result stru */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // RQST - return RQST; + case 1: // CR + return CR; default: return null; } @@ -201959,70 +208232,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, ShowCompactRequest.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(show_compact_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_args.class, metaDataMap); } - public show_compact_args() { + public mark_failed_args() { } - public show_compact_args( - ShowCompactRequest rqst) + public mark_failed_args( + CompactionInfoStruct cr) { this(); - this.rqst = rqst; + this.cr = cr; } /** * Performs a deep copy on other. */ - public show_compact_args(show_compact_args other) { - if (other.isSetRqst()) { - this.rqst = new ShowCompactRequest(other.rqst); + public mark_failed_args(mark_failed_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } } - public show_compact_args deepCopy() { - return new show_compact_args(this); + public mark_failed_args deepCopy() { + return new mark_failed_args(this); } @Override public void clear() { - this.rqst = null; + this.cr = null; } - public ShowCompactRequest getRqst() { - return this.rqst; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setRqst(ShowCompactRequest 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((ShowCompactRequest)value); + setCr((CompactionInfoStruct)value); } break; @@ -202031,8 +208304,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(); @@ -202045,8 +208318,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case RQST: - return isSetRqst(); + case CR: + return isSetCr(); } throw new IllegalStateException(); } @@ -202055,21 +208328,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof show_compact_args) - return this.equals((show_compact_args)that); + if (that instanceof mark_failed_args) + return this.equals((mark_failed_args)that); return false; } - public boolean equals(show_compact_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; } @@ -202080,28 +208353,28 @@ public boolean equals(show_compact_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(show_compact_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; } @@ -202123,14 +208396,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("show_compact_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(")"); @@ -202140,8 +208413,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(); } } @@ -202161,15 +208434,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class show_compact_argsStandardSchemeFactory implements SchemeFactory { - public show_compact_argsStandardScheme getScheme() { - return new show_compact_argsStandardScheme(); + private static class mark_failed_argsStandardSchemeFactory implements SchemeFactory { + public mark_failed_argsStandardScheme getScheme() { + return new mark_failed_argsStandardScheme(); } } - private static class show_compact_argsStandardScheme extends StandardScheme { + private static class mark_failed_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_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) @@ -202179,11 +208452,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_args s break; } switch (schemeField.id) { - case 1: // RQST + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new ShowCompactRequest(); - 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); } @@ -202197,13 +208470,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_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(); @@ -202212,57 +208485,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_args } - private static class show_compact_argsTupleSchemeFactory implements SchemeFactory { - public show_compact_argsTupleScheme getScheme() { - return new show_compact_argsTupleScheme(); + private static class mark_failed_argsTupleSchemeFactory implements SchemeFactory { + public mark_failed_argsTupleScheme getScheme() { + return new mark_failed_argsTupleScheme(); } } - private static class show_compact_argsTupleScheme extends TupleScheme { + private static class mark_failed_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_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, show_compact_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 ShowCompactRequest(); - 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 show_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("show_compact_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.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 show_compact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_compact_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new mark_failed_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new mark_failed_resultTupleSchemeFactory()); } - private ShowCompactResponse 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(); @@ -202277,8 +208550,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_args st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // O1 + return O1; default: return null; } @@ -202322,70 +208595,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.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, ShowCompactResponse.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(show_compact_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_result.class, metaDataMap); } - public show_compact_result() { + public mark_failed_result() { } - public show_compact_result( - ShowCompactResponse success) + public mark_failed_result( + MetaException o1) { this(); - this.success = success; + this.o1 = o1; } /** * Performs a deep copy on other. */ - public show_compact_result(show_compact_result other) { - if (other.isSetSuccess()) { - this.success = new ShowCompactResponse(other.success); + public mark_failed_result(mark_failed_result other) { + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public show_compact_result deepCopy() { - return new show_compact_result(this); + public mark_failed_result deepCopy() { + return new mark_failed_result(this); } @Override public void clear() { - this.success = null; + this.o1 = null; } - public ShowCompactResponse getSuccess() { - return this.success; + public MetaException getO1() { + return this.o1; } - public void setSuccess(ShowCompactResponse success) { - this.success = success; + public void setO1(MetaException o1) { + this.o1 = o1; } - public void unsetSuccess() { - this.success = null; + 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 this.success != 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 setSuccessIsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.success = null; + this.o1 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((ShowCompactResponse)value); + setO1((MetaException)value); } break; @@ -202394,8 +208667,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case O1: + return getO1(); } throw new IllegalStateException(); @@ -202408,8 +208681,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case O1: + return isSetO1(); } throw new IllegalStateException(); } @@ -202418,21 +208691,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof show_compact_result) - return this.equals((show_compact_result)that); + if (that instanceof mark_failed_result) + return this.equals((mark_failed_result)that); return false; } - public boolean equals(show_compact_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)) + 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.equals(that.success)) + if (!this.o1.equals(that.o1)) return false; } @@ -202443,28 +208716,28 @@ public boolean equals(show_compact_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(show_compact_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()); + 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; } @@ -202486,14 +208759,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("show_compact_result("); + StringBuilder sb = new StringBuilder("mark_failed_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.success); + sb.append(this.o1); } first = false; sb.append(")"); @@ -202503,9 +208776,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 { @@ -202524,15 +208794,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class show_compact_resultStandardSchemeFactory implements SchemeFactory { - public show_compact_resultStandardScheme getScheme() { - return new show_compact_resultStandardScheme(); + private static class mark_failed_resultStandardSchemeFactory implements SchemeFactory { + public mark_failed_resultStandardScheme getScheme() { + return new mark_failed_resultStandardScheme(); } } - private static class show_compact_resultStandardScheme extends StandardScheme { + private static class mark_failed_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_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) @@ -202542,11 +208812,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_result break; } switch (schemeField.id) { - case 0: // SUCCESS + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ShowCompactResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -202560,13 +208830,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_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); - struct.success.write(oprot); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -202575,57 +208845,60 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_resul } - private static class show_compact_resultTupleSchemeFactory implements SchemeFactory { - public show_compact_resultTupleScheme getScheme() { - return new show_compact_resultTupleScheme(); + private static class mark_failed_resultTupleSchemeFactory implements SchemeFactory { + public mark_failed_resultTupleScheme getScheme() { + return new mark_failed_resultTupleScheme(); } } - private static class show_compact_resultTupleScheme extends TupleScheme { + private static class mark_failed_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_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()) { + if (struct.isSetO1()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + if (struct.isSetO1()) { + struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_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(1); if (incoming.get(0)) { - struct.success = new ShowCompactResponse(); - struct.success.read(iprot); - 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_dynamic_partitions_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_dynamic_partitions_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 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 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 add_dynamic_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_dynamic_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new set_hadoop_jobid_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_hadoop_jobid_argsTupleSchemeFactory()); } - private AddDynamicPartitions rqst; // 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 { - RQST((short)1, "rqst"); + JOB_ID((short)1, "jobId"), + CQ_ID((short)2, "cq_id"); private static final Map byName = new HashMap(); @@ -202640,8 +208913,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // RQST - return RQST; + case 1: // JOB_ID + return JOB_ID; + case 2: // CQ_ID + return CQ_ID; default: return null; } @@ -202682,73 +208957,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.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, AddDynamicPartitions.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(add_dynamic_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_hadoop_jobid_args.class, metaDataMap); } - public add_dynamic_partitions_args() { + public set_hadoop_jobid_args() { } - public add_dynamic_partitions_args( - AddDynamicPartitions rqst) + public set_hadoop_jobid_args( + String jobId, + long cq_id) { this(); - this.rqst = rqst; + this.jobId = jobId; + this.cq_id = cq_id; + setCq_idIsSet(true); } /** * Performs a deep copy on other. */ - public add_dynamic_partitions_args(add_dynamic_partitions_args other) { - if (other.isSetRqst()) { - this.rqst = new AddDynamicPartitions(other.rqst); + 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 add_dynamic_partitions_args deepCopy() { - return new add_dynamic_partitions_args(this); + public set_hadoop_jobid_args deepCopy() { + return new set_hadoop_jobid_args(this); } @Override public void clear() { - this.rqst = null; + this.jobId = null; + setCq_idIsSet(false); + this.cq_id = 0; } - public AddDynamicPartitions getRqst() { - return this.rqst; + public String getJobId() { + return this.jobId; } - public void setRqst(AddDynamicPartitions rqst) { - this.rqst = rqst; + public void setJobId(String jobId) { + this.jobId = jobId; } - public void unsetRqst() { - this.rqst = null; + public void unsetJobId() { + this.jobId = 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 jobId is set (has been assigned a value) and false otherwise */ + public boolean isSetJobId() { + return this.jobId != null; } - public void setRqstIsSet(boolean value) { + public void setJobIdIsSet(boolean value) { if (!value) { - this.rqst = 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 RQST: + case JOB_ID: if (value == null) { - unsetRqst(); + unsetJobId(); } else { - setRqst((AddDynamicPartitions)value); + setJobId((String)value); + } + break; + + case CQ_ID: + if (value == null) { + unsetCq_id(); + } else { + setCq_id((Long)value); } break; @@ -202757,8 +209073,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case RQST: - return getRqst(); + case JOB_ID: + return getJobId(); + + case CQ_ID: + return getCq_id(); } throw new IllegalStateException(); @@ -202771,8 +209090,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case RQST: - return isSetRqst(); + case JOB_ID: + return isSetJobId(); + case CQ_ID: + return isSetCq_id(); } throw new IllegalStateException(); } @@ -202781,21 +209102,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_dynamic_partitions_args) - return this.equals((add_dynamic_partitions_args)that); + if (that instanceof set_hadoop_jobid_args) + return this.equals((set_hadoop_jobid_args)that); return false; } - public boolean equals(add_dynamic_partitions_args that) { + public boolean equals(set_hadoop_jobid_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_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.rqst.equals(that.rqst)) + 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; } @@ -202806,28 +209136,43 @@ public boolean equals(add_dynamic_partitions_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_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(add_dynamic_partitions_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(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetJobId()).compareTo(other.isSetJobId()); if (lastComparison != 0) { return lastComparison; } - if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + 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; } @@ -202849,16 +209194,20 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_dynamic_partitions_args("); + StringBuilder sb = new StringBuilder("set_hadoop_jobid_args("); boolean first = true; - sb.append("rqst:"); - if (this.rqst == null) { + sb.append("jobId:"); + if (this.jobId == null) { sb.append("null"); } else { - sb.append(this.rqst); + 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(); } @@ -202866,9 +209215,6 @@ 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(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -202881,21 +209227,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 add_dynamic_partitions_argsStandardSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_argsStandardScheme getScheme() { - return new add_dynamic_partitions_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 add_dynamic_partitions_argsStandardScheme extends StandardScheme { + private static class set_hadoop_jobid_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_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) @@ -202905,11 +209253,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partiti break; } switch (schemeField.id) { - case 1: // RQST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new AddDynamicPartitions(); - struct.rqst.read(iprot); - struct.setRqstIsSet(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); } @@ -202923,75 +209278,82 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partiti struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_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.rqst != null) { - oprot.writeFieldBegin(RQST_FIELD_DESC); - struct.rqst.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 add_dynamic_partitions_argsTupleSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_argsTupleScheme getScheme() { - return new add_dynamic_partitions_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 add_dynamic_partitions_argsTupleScheme extends TupleScheme { + private static class set_hadoop_jobid_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_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.isSetRqst()) { + if (struct.isSetJobId()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRqst()) { - struct.rqst.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, add_dynamic_partitions_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.rqst = new AddDynamicPartitions(); - struct.rqst.read(iprot); - struct.setRqstIsSet(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 add_dynamic_partitions_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_dynamic_partitions_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 O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_dynamic_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_dynamic_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new set_hadoop_jobid_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new set_hadoop_jobid_resultTupleSchemeFactory()); } - private NoSuchTxnException o1; // required - private TxnAbortedException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - O1((short)1, "o1"), - O2((short)2, "o2"); +; private static final Map byName = new HashMap(); @@ -203006,10 +209368,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitio */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // O1 - return O1; - case 2: // O2 - return O2; default: return null; } @@ -203048,128 +209406,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.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_result.class, metaDataMap); - } - - public add_dynamic_partitions_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_hadoop_jobid_result.class, metaDataMap); } - public add_dynamic_partitions_result( - NoSuchTxnException o1, - TxnAbortedException o2) - { - this(); - this.o1 = o1; - this.o2 = o2; + public set_hadoop_jobid_result() { } /** * Performs a deep copy on other. */ - public add_dynamic_partitions_result(add_dynamic_partitions_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchTxnException(other.o1); - } - if (other.isSetO2()) { - this.o2 = new TxnAbortedException(other.o2); - } + public set_hadoop_jobid_result(set_hadoop_jobid_result other) { } - public add_dynamic_partitions_result deepCopy() { - return new add_dynamic_partitions_result(this); + public set_hadoop_jobid_result deepCopy() { + return new set_hadoop_jobid_result(this); } @Override public void clear() { - this.o1 = null; - this.o2 = null; - } - - public NoSuchTxnException getO1() { - return this.o1; - } - - public void setO1(NoSuchTxnException 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 TxnAbortedException getO2() { - return this.o2; - } - - public void setO2(TxnAbortedException o2) { - this.o2 = o2; - } - - public void unsetO2() { - this.o2 = null; - } - - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; - } - - public void setO2IsSet(boolean value) { - if (!value) { - this.o2 = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchTxnException)value); - } - break; - - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((TxnAbortedException)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case O1: - return getO1(); - - case O2: - return getO2(); - } throw new IllegalStateException(); } @@ -203181,10 +209448,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case O1: - return isSetO1(); - case O2: - return isSetO2(); } throw new IllegalStateException(); } @@ -203193,33 +209456,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_dynamic_partitions_result) - return this.equals((add_dynamic_partitions_result)that); + if (that instanceof set_hadoop_jobid_result) + return this.equals((set_hadoop_jobid_result)that); return false; } - public boolean equals(add_dynamic_partitions_result that) { + public boolean equals(set_hadoop_jobid_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; - } - - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - return false; - } - return true; } @@ -203227,47 +209472,17 @@ public boolean equals(add_dynamic_partitions_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); - return list.hashCode(); } @Override - public int compareTo(add_dynamic_partitions_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(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; - } - } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -203285,24 +209500,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_dynamic_partitions_result("); + StringBuilder sb = new StringBuilder("set_hadoop_jobid_result("); boolean first = true; - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { - sb.append("null"); - } else { - sb.append(this.o2); - } - first = false; sb.append(")"); return sb.toString(); } @@ -203328,15 +209528,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_dynamic_partitions_resultStandardSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_resultStandardScheme getScheme() { - return new add_dynamic_partitions_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 add_dynamic_partitions_resultStandardScheme extends StandardScheme { + private static class set_hadoop_jobid_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_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) @@ -203346,24 +209546,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partiti break; } switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchTxnException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new TxnAbortedException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -203373,67 +209555,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partiti struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_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.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_dynamic_partitions_resultTupleSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_resultTupleScheme getScheme() { - return new add_dynamic_partitions_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 add_dynamic_partitions_resultTupleScheme extends TupleScheme { + private static class set_hadoop_jobid_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_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.isSetO1()) { - optionals.set(0); - } - if (struct.isSetO2()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetO1()) { - struct.o1.write(oprot); - } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_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.o1 = new NoSuchTxnException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(1)) { - struct.o2 = new TxnAbortedException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } } } @@ -237440,14 +243587,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 _list1564 = iprot.readListBegin(); - struct.success = new ArrayList(_list1564.size); - SchemaVersion _elem1565; - for (int _i1566 = 0; _i1566 < _list1564.size; ++_i1566) + org.apache.thrift.protocol.TList _list1580 = iprot.readListBegin(); + struct.success = new ArrayList(_list1580.size); + SchemaVersion _elem1581; + for (int _i1582 = 0; _i1582 < _list1580.size; ++_i1582) { - _elem1565 = new SchemaVersion(); - _elem1565.read(iprot); - struct.success.add(_elem1565); + _elem1581 = new SchemaVersion(); + _elem1581.read(iprot); + struct.success.add(_elem1581); } iprot.readListEnd(); } @@ -237491,9 +243638,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 _iter1567 : struct.success) + for (SchemaVersion _iter1583 : struct.success) { - _iter1567.write(oprot); + _iter1583.write(oprot); } oprot.writeListEnd(); } @@ -237540,9 +243687,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1568 : struct.success) + for (SchemaVersion _iter1584 : struct.success) { - _iter1568.write(oprot); + _iter1584.write(oprot); } } } @@ -237560,14 +243707,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 _list1569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1569.size); - SchemaVersion _elem1570; - for (int _i1571 = 0; _i1571 < _list1569.size; ++_i1571) + org.apache.thrift.protocol.TList _list1585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1585.size); + SchemaVersion _elem1586; + for (int _i1587 = 0; _i1587 < _list1585.size; ++_i1587) { - _elem1570 = new SchemaVersion(); - _elem1570.read(iprot); - struct.success.add(_elem1570); + _elem1586 = new SchemaVersion(); + _elem1586.read(iprot); + struct.success.add(_elem1586); } } struct.setSuccessIsSet(true); @@ -246110,14 +252257,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1572 = iprot.readListBegin(); - struct.success = new ArrayList(_list1572.size); - RuntimeStat _elem1573; - for (int _i1574 = 0; _i1574 < _list1572.size; ++_i1574) + org.apache.thrift.protocol.TList _list1588 = iprot.readListBegin(); + struct.success = new ArrayList(_list1588.size); + RuntimeStat _elem1589; + for (int _i1590 = 0; _i1590 < _list1588.size; ++_i1590) { - _elem1573 = new RuntimeStat(); - _elem1573.read(iprot); - struct.success.add(_elem1573); + _elem1589 = new RuntimeStat(); + _elem1589.read(iprot); + struct.success.add(_elem1589); } iprot.readListEnd(); } @@ -246152,9 +252299,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (RuntimeStat _iter1575 : struct.success) + for (RuntimeStat _iter1591 : struct.success) { - _iter1575.write(oprot); + _iter1591.write(oprot); } oprot.writeListEnd(); } @@ -246193,9 +252340,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1576 : struct.success) + for (RuntimeStat _iter1592 : struct.success) { - _iter1576.write(oprot); + _iter1592.write(oprot); } } } @@ -246210,14 +252357,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1577.size); - RuntimeStat _elem1578; - for (int _i1579 = 0; _i1579 < _list1577.size; ++_i1579) + org.apache.thrift.protocol.TList _list1593 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1593.size); + RuntimeStat _elem1594; + for (int _i1595 = 0; _i1595 < _list1593.size; ++_i1595) { - _elem1578 = new RuntimeStat(); - _elem1578.read(iprot); - struct.success.add(_elem1578); + _elem1594 = new RuntimeStat(); + _elem1594.read(iprot); + struct.success.add(_elem1594); } } struct.setSuccessIsSet(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 6d3ac0c70b..f92e23ea20 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 _list880 = iprot.readListBegin(); - struct.pools = new ArrayList(_list880.size); - WMPool _elem881; - for (int _i882 = 0; _i882 < _list880.size; ++_i882) + org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); + struct.pools = new ArrayList(_list888.size); + WMPool _elem889; + for (int _i890 = 0; _i890 < _list888.size; ++_i890) { - _elem881 = new WMPool(); - _elem881.read(iprot); - struct.pools.add(_elem881); + _elem889 = new WMPool(); + _elem889.read(iprot); + struct.pools.add(_elem889); } 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 _list883 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list883.size); - WMMapping _elem884; - for (int _i885 = 0; _i885 < _list883.size; ++_i885) + org.apache.thrift.protocol.TList _list891 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list891.size); + WMMapping _elem892; + for (int _i893 = 0; _i893 < _list891.size; ++_i893) { - _elem884 = new WMMapping(); - _elem884.read(iprot); - struct.mappings.add(_elem884); + _elem892 = new WMMapping(); + _elem892.read(iprot); + struct.mappings.add(_elem892); } 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 _list886 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list886.size); - WMTrigger _elem887; - for (int _i888 = 0; _i888 < _list886.size; ++_i888) + org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list894.size); + WMTrigger _elem895; + for (int _i896 = 0; _i896 < _list894.size; ++_i896) { - _elem887 = new WMTrigger(); - _elem887.read(iprot); - struct.triggers.add(_elem887); + _elem895 = new WMTrigger(); + _elem895.read(iprot); + struct.triggers.add(_elem895); } 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 _list889 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list889.size); - WMPoolTrigger _elem890; - for (int _i891 = 0; _i891 < _list889.size; ++_i891) + org.apache.thrift.protocol.TList _list897 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list897.size); + WMPoolTrigger _elem898; + for (int _i899 = 0; _i899 < _list897.size; ++_i899) { - _elem890 = new WMPoolTrigger(); - _elem890.read(iprot); - struct.poolTriggers.add(_elem890); + _elem898 = new WMPoolTrigger(); + _elem898.read(iprot); + struct.poolTriggers.add(_elem898); } 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 _iter892 : struct.pools) + for (WMPool _iter900 : struct.pools) { - _iter892.write(oprot); + _iter900.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 _iter893 : struct.mappings) + for (WMMapping _iter901 : struct.mappings) { - _iter893.write(oprot); + _iter901.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 _iter894 : struct.triggers) + for (WMTrigger _iter902 : struct.triggers) { - _iter894.write(oprot); + _iter902.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 _iter895 : struct.poolTriggers) + for (WMPoolTrigger _iter903 : struct.poolTriggers) { - _iter895.write(oprot); + _iter903.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 _iter896 : struct.pools) + for (WMPool _iter904 : struct.pools) { - _iter896.write(oprot); + _iter904.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 _iter897 : struct.mappings) + for (WMMapping _iter905 : struct.mappings) { - _iter897.write(oprot); + _iter905.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter898 : struct.triggers) + for (WMTrigger _iter906 : struct.triggers) { - _iter898.write(oprot); + _iter906.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter899 : struct.poolTriggers) + for (WMPoolTrigger _iter907 : struct.poolTriggers) { - _iter899.write(oprot); + _iter907.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 _list900 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list900.size); - WMPool _elem901; - for (int _i902 = 0; _i902 < _list900.size; ++_i902) + org.apache.thrift.protocol.TList _list908 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list908.size); + WMPool _elem909; + for (int _i910 = 0; _i910 < _list908.size; ++_i910) { - _elem901 = new WMPool(); - _elem901.read(iprot); - struct.pools.add(_elem901); + _elem909 = new WMPool(); + _elem909.read(iprot); + struct.pools.add(_elem909); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list903 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list903.size); - WMMapping _elem904; - for (int _i905 = 0; _i905 < _list903.size; ++_i905) + org.apache.thrift.protocol.TList _list911 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list911.size); + WMMapping _elem912; + for (int _i913 = 0; _i913 < _list911.size; ++_i913) { - _elem904 = new WMMapping(); - _elem904.read(iprot); - struct.mappings.add(_elem904); + _elem912 = new WMMapping(); + _elem912.read(iprot); + struct.mappings.add(_elem912); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list906 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list906.size); - WMTrigger _elem907; - for (int _i908 = 0; _i908 < _list906.size; ++_i908) + org.apache.thrift.protocol.TList _list914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list914.size); + WMTrigger _elem915; + for (int _i916 = 0; _i916 < _list914.size; ++_i916) { - _elem907 = new WMTrigger(); - _elem907.read(iprot); - struct.triggers.add(_elem907); + _elem915 = new WMTrigger(); + _elem915.read(iprot); + struct.triggers.add(_elem915); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list909.size); - WMPoolTrigger _elem910; - for (int _i911 = 0; _i911 < _list909.size; ++_i911) + org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list917.size); + WMPoolTrigger _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) { - _elem910 = new WMPoolTrigger(); - _elem910.read(iprot); - struct.poolTriggers.add(_elem910); + _elem918 = new WMPoolTrigger(); + _elem918.read(iprot); + struct.poolTriggers.add(_elem918); } } 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 2c427b9cb5..cd20b15be4 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 _list912 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list912.size); - WMResourcePlan _elem913; - for (int _i914 = 0; _i914 < _list912.size; ++_i914) + org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list920.size); + WMResourcePlan _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem913 = new WMResourcePlan(); - _elem913.read(iprot); - struct.resourcePlans.add(_elem913); + _elem921 = new WMResourcePlan(); + _elem921.read(iprot); + struct.resourcePlans.add(_elem921); } 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 _iter915 : struct.resourcePlans) + for (WMResourcePlan _iter923 : struct.resourcePlans) { - _iter915.write(oprot); + _iter923.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 _iter916 : struct.resourcePlans) + for (WMResourcePlan _iter924 : struct.resourcePlans) { - _iter916.write(oprot); + _iter924.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 _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list917.size); - WMResourcePlan _elem918; - for (int _i919 = 0; _i919 < _list917.size; ++_i919) + org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list925.size); + WMResourcePlan _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem918 = new WMResourcePlan(); - _elem918.read(iprot); - struct.resourcePlans.add(_elem918); + _elem926 = new WMResourcePlan(); + _elem926.read(iprot); + struct.resourcePlans.add(_elem926); } } 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 57615c00d5..0fc76b9ffc 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 _list936 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list936.size); - WMTrigger _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list944.size); + WMTrigger _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) { - _elem937 = new WMTrigger(); - _elem937.read(iprot); - struct.triggers.add(_elem937); + _elem945 = new WMTrigger(); + _elem945.read(iprot); + struct.triggers.add(_elem945); } 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 _iter939 : struct.triggers) + for (WMTrigger _iter947 : struct.triggers) { - _iter939.write(oprot); + _iter947.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 _iter940 : struct.triggers) + for (WMTrigger _iter948 : struct.triggers) { - _iter940.write(oprot); + _iter948.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 _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list941.size); - WMTrigger _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list949.size); + WMTrigger _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) { - _elem942 = new WMTrigger(); - _elem942.read(iprot); - struct.triggers.add(_elem942); + _elem950 = new WMTrigger(); + _elem950.read(iprot); + struct.triggers.add(_elem950); } } 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 3f7f953a26..deb1569bb1 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 _list920 = iprot.readListBegin(); - struct.errors = new ArrayList(_list920.size); - String _elem921; - for (int _i922 = 0; _i922 < _list920.size; ++_i922) + org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); + struct.errors = new ArrayList(_list928.size); + String _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) { - _elem921 = iprot.readString(); - struct.errors.add(_elem921); + _elem929 = iprot.readString(); + struct.errors.add(_elem929); } 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 _list923 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list923.size); - String _elem924; - for (int _i925 = 0; _i925 < _list923.size; ++_i925) + org.apache.thrift.protocol.TList _list931 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list931.size); + String _elem932; + for (int _i933 = 0; _i933 < _list931.size; ++_i933) { - _elem924 = iprot.readString(); - struct.warnings.add(_elem924); + _elem932 = iprot.readString(); + struct.warnings.add(_elem932); } 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 _iter926 : struct.errors) + for (String _iter934 : struct.errors) { - oprot.writeString(_iter926); + oprot.writeString(_iter934); } 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 _iter927 : struct.warnings) + for (String _iter935 : struct.warnings) { - oprot.writeString(_iter927); + oprot.writeString(_iter935); } 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 _iter928 : struct.errors) + for (String _iter936 : struct.errors) { - oprot.writeString(_iter928); + oprot.writeString(_iter936); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter929 : struct.warnings) + for (String _iter937 : struct.warnings) { - oprot.writeString(_iter929); + oprot.writeString(_iter937); } } } @@ -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 _list930 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list930.size); - String _elem931; - for (int _i932 = 0; _i932 < _list930.size; ++_i932) + org.apache.thrift.protocol.TList _list938 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list938.size); + String _elem939; + for (int _i940 = 0; _i940 < _list938.size; ++_i940) { - _elem931 = iprot.readString(); - struct.errors.add(_elem931); + _elem939 = iprot.readString(); + struct.errors.add(_elem939); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list933.size); - String _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) + org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list941.size); + String _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) { - _elem934 = iprot.readString(); - struct.warnings.add(_elem934); + _elem942 = iprot.readString(); + struct.warnings.add(_elem942); } } 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 a89714177a..57f50b7dc8 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 _list780 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list780.size); - String _elem781; - for (int _i782 = 0; _i782 < _list780.size; ++_i782) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list788.size); + String _elem789; + for (int _i790 = 0; _i790 < _list788.size; ++_i790) { - _elem781 = iprot.readString(); - struct.partitionVals.add(_elem781); + _elem789 = iprot.readString(); + struct.partitionVals.add(_elem789); } 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 _iter783 : struct.partitionVals) + for (String _iter791 : struct.partitionVals) { - oprot.writeString(_iter783); + oprot.writeString(_iter791); } 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 _iter784 : struct.partitionVals) + for (String _iter792 : struct.partitionVals) { - oprot.writeString(_iter784); + oprot.writeString(_iter792); } } } @@ -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 _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list785.size); - String _elem786; - for (int _i787 = 0; _i787 < _list785.size; ++_i787) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list793.size); + String _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) { - _elem786 = iprot.readString(); - struct.partitionVals.add(_elem786); + _elem794 = iprot.readString(); + struct.partitionVals.add(_elem794); } } 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 3170798663..b94dd25b84 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 @@ -1293,6 +1293,42 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\TxnAbortedException */ public function add_dynamic_partitions(\metastore\AddDynamicPartitions $rqst); + /** + * @param string $workerId + * @return \metastore\OptionalCompactionInfoStruct + * @throws \metastore\MetaException + */ + public function find_next_compact($workerId); + /** + * @param \metastore\CompactionInfoStruct $cr + * @param int $txn_id + */ + public function update_compactor_state(\metastore\CompactionInfoStruct $cr, $txn_id); + /** + * @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); /** * @param \metastore\NotificationEventRequest $rqst * @return \metastore\NotificationEventResponse @@ -11090,6 +11126,362 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + 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 update_compactor_state(\metastore\CompactionInfoStruct $cr, $txn_id) + { + $this->send_update_compactor_state($cr, $txn_id); + $this->recv_update_compactor_state(); + } + + public function send_update_compactor_state(\metastore\CompactionInfoStruct $cr, $txn_id) + { + $args = new \metastore\ThriftHiveMetastore_update_compactor_state_args(); + $args->cr = $cr; + $args->txn_id = $txn_id; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'update_compactor_state', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('update_compactor_state', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_update_compactor_state() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_update_compactor_state_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_update_compactor_state_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; + } + public function get_next_notification(\metastore\NotificationEventRequest $rqst) { $this->send_get_next_notification($rqst); @@ -15952,14 +16344,14 @@ class ThriftHiveMetastore_get_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) + $_size896 = 0; + $_etype899 = 0; + $xfer += $input->readListBegin($_etype899, $_size896); + for ($_i900 = 0; $_i900 < $_size896; ++$_i900) { - $elem894 = null; - $xfer += $input->readString($elem894); - $this->success []= $elem894; + $elem901 = null; + $xfer += $input->readString($elem901); + $this->success []= $elem901; } $xfer += $input->readListEnd(); } else { @@ -15995,9 +16387,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter895) + foreach ($this->success as $iter902) { - $xfer += $output->writeString($iter895); + $xfer += $output->writeString($iter902); } } $output->writeListEnd(); @@ -16128,14 +16520,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size896 = 0; - $_etype899 = 0; - $xfer += $input->readListBegin($_etype899, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) + $_size903 = 0; + $_etype906 = 0; + $xfer += $input->readListBegin($_etype906, $_size903); + for ($_i907 = 0; $_i907 < $_size903; ++$_i907) { - $elem901 = null; - $xfer += $input->readString($elem901); - $this->success []= $elem901; + $elem908 = null; + $xfer += $input->readString($elem908); + $this->success []= $elem908; } $xfer += $input->readListEnd(); } else { @@ -16171,9 +16563,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter902) + foreach ($this->success as $iter909) { - $xfer += $output->writeString($iter902); + $xfer += $output->writeString($iter909); } } $output->writeListEnd(); @@ -17174,18 +17566,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size903 = 0; - $_ktype904 = 0; - $_vtype905 = 0; - $xfer += $input->readMapBegin($_ktype904, $_vtype905, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size910 = 0; + $_ktype911 = 0; + $_vtype912 = 0; + $xfer += $input->readMapBegin($_ktype911, $_vtype912, $_size910); + for ($_i914 = 0; $_i914 < $_size910; ++$_i914) { - $key908 = ''; - $val909 = new \metastore\Type(); - $xfer += $input->readString($key908); - $val909 = new \metastore\Type(); - $xfer += $val909->read($input); - $this->success[$key908] = $val909; + $key915 = ''; + $val916 = new \metastore\Type(); + $xfer += $input->readString($key915); + $val916 = new \metastore\Type(); + $xfer += $val916->read($input); + $this->success[$key915] = $val916; } $xfer += $input->readMapEnd(); } else { @@ -17221,10 +17613,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter910 => $viter911) + foreach ($this->success as $kiter917 => $viter918) { - $xfer += $output->writeString($kiter910); - $xfer += $viter911->write($output); + $xfer += $output->writeString($kiter917); + $xfer += $viter918->write($output); } } $output->writeMapEnd(); @@ -17428,15 +17820,15 @@ class ThriftHiveMetastore_get_fields_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) + $_size919 = 0; + $_etype922 = 0; + $xfer += $input->readListBegin($_etype922, $_size919); + for ($_i923 = 0; $_i923 < $_size919; ++$_i923) { - $elem917 = null; - $elem917 = new \metastore\FieldSchema(); - $xfer += $elem917->read($input); - $this->success []= $elem917; + $elem924 = null; + $elem924 = new \metastore\FieldSchema(); + $xfer += $elem924->read($input); + $this->success []= $elem924; } $xfer += $input->readListEnd(); } else { @@ -17488,9 +17880,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter918) + foreach ($this->success as $iter925) { - $xfer += $iter918->write($output); + $xfer += $iter925->write($output); } } $output->writeListEnd(); @@ -17732,15 +18124,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_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) + $_size926 = 0; + $_etype929 = 0; + $xfer += $input->readListBegin($_etype929, $_size926); + for ($_i930 = 0; $_i930 < $_size926; ++$_i930) { - $elem924 = null; - $elem924 = new \metastore\FieldSchema(); - $xfer += $elem924->read($input); - $this->success []= $elem924; + $elem931 = null; + $elem931 = new \metastore\FieldSchema(); + $xfer += $elem931->read($input); + $this->success []= $elem931; } $xfer += $input->readListEnd(); } else { @@ -17792,9 +18184,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter925) + foreach ($this->success as $iter932) { - $xfer += $iter925->write($output); + $xfer += $iter932->write($output); } } $output->writeListEnd(); @@ -18008,15 +18400,15 @@ class ThriftHiveMetastore_get_schema_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) + $_size933 = 0; + $_etype936 = 0; + $xfer += $input->readListBegin($_etype936, $_size933); + for ($_i937 = 0; $_i937 < $_size933; ++$_i937) { - $elem931 = null; - $elem931 = new \metastore\FieldSchema(); - $xfer += $elem931->read($input); - $this->success []= $elem931; + $elem938 = null; + $elem938 = new \metastore\FieldSchema(); + $xfer += $elem938->read($input); + $this->success []= $elem938; } $xfer += $input->readListEnd(); } else { @@ -18068,9 +18460,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter932) + foreach ($this->success as $iter939) { - $xfer += $iter932->write($output); + $xfer += $iter939->write($output); } } $output->writeListEnd(); @@ -18312,15 +18704,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size933 = 0; - $_etype936 = 0; - $xfer += $input->readListBegin($_etype936, $_size933); - for ($_i937 = 0; $_i937 < $_size933; ++$_i937) + $_size940 = 0; + $_etype943 = 0; + $xfer += $input->readListBegin($_etype943, $_size940); + for ($_i944 = 0; $_i944 < $_size940; ++$_i944) { - $elem938 = null; - $elem938 = new \metastore\FieldSchema(); - $xfer += $elem938->read($input); - $this->success []= $elem938; + $elem945 = null; + $elem945 = new \metastore\FieldSchema(); + $xfer += $elem945->read($input); + $this->success []= $elem945; } $xfer += $input->readListEnd(); } else { @@ -18372,9 +18764,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter939) + foreach ($this->success as $iter946) { - $xfer += $iter939->write($output); + $xfer += $iter946->write($output); } } $output->writeListEnd(); @@ -19046,15 +19438,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size940 = 0; - $_etype943 = 0; - $xfer += $input->readListBegin($_etype943, $_size940); - for ($_i944 = 0; $_i944 < $_size940; ++$_i944) + $_size947 = 0; + $_etype950 = 0; + $xfer += $input->readListBegin($_etype950, $_size947); + for ($_i951 = 0; $_i951 < $_size947; ++$_i951) { - $elem945 = null; - $elem945 = new \metastore\SQLPrimaryKey(); - $xfer += $elem945->read($input); - $this->primaryKeys []= $elem945; + $elem952 = null; + $elem952 = new \metastore\SQLPrimaryKey(); + $xfer += $elem952->read($input); + $this->primaryKeys []= $elem952; } $xfer += $input->readListEnd(); } else { @@ -19064,15 +19456,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size946 = 0; - $_etype949 = 0; - $xfer += $input->readListBegin($_etype949, $_size946); - for ($_i950 = 0; $_i950 < $_size946; ++$_i950) + $_size953 = 0; + $_etype956 = 0; + $xfer += $input->readListBegin($_etype956, $_size953); + for ($_i957 = 0; $_i957 < $_size953; ++$_i957) { - $elem951 = null; - $elem951 = new \metastore\SQLForeignKey(); - $xfer += $elem951->read($input); - $this->foreignKeys []= $elem951; + $elem958 = null; + $elem958 = new \metastore\SQLForeignKey(); + $xfer += $elem958->read($input); + $this->foreignKeys []= $elem958; } $xfer += $input->readListEnd(); } else { @@ -19082,15 +19474,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size952 = 0; - $_etype955 = 0; - $xfer += $input->readListBegin($_etype955, $_size952); - for ($_i956 = 0; $_i956 < $_size952; ++$_i956) + $_size959 = 0; + $_etype962 = 0; + $xfer += $input->readListBegin($_etype962, $_size959); + for ($_i963 = 0; $_i963 < $_size959; ++$_i963) { - $elem957 = null; - $elem957 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem957->read($input); - $this->uniqueConstraints []= $elem957; + $elem964 = null; + $elem964 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem964->read($input); + $this->uniqueConstraints []= $elem964; } $xfer += $input->readListEnd(); } else { @@ -19100,15 +19492,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size958 = 0; - $_etype961 = 0; - $xfer += $input->readListBegin($_etype961, $_size958); - for ($_i962 = 0; $_i962 < $_size958; ++$_i962) + $_size965 = 0; + $_etype968 = 0; + $xfer += $input->readListBegin($_etype968, $_size965); + for ($_i969 = 0; $_i969 < $_size965; ++$_i969) { - $elem963 = null; - $elem963 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem963->read($input); - $this->notNullConstraints []= $elem963; + $elem970 = null; + $elem970 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem970->read($input); + $this->notNullConstraints []= $elem970; } $xfer += $input->readListEnd(); } else { @@ -19118,15 +19510,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size964 = 0; - $_etype967 = 0; - $xfer += $input->readListBegin($_etype967, $_size964); - for ($_i968 = 0; $_i968 < $_size964; ++$_i968) + $_size971 = 0; + $_etype974 = 0; + $xfer += $input->readListBegin($_etype974, $_size971); + for ($_i975 = 0; $_i975 < $_size971; ++$_i975) { - $elem969 = null; - $elem969 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem969->read($input); - $this->defaultConstraints []= $elem969; + $elem976 = null; + $elem976 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem976->read($input); + $this->defaultConstraints []= $elem976; } $xfer += $input->readListEnd(); } else { @@ -19136,15 +19528,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size970 = 0; - $_etype973 = 0; - $xfer += $input->readListBegin($_etype973, $_size970); - for ($_i974 = 0; $_i974 < $_size970; ++$_i974) + $_size977 = 0; + $_etype980 = 0; + $xfer += $input->readListBegin($_etype980, $_size977); + for ($_i981 = 0; $_i981 < $_size977; ++$_i981) { - $elem975 = null; - $elem975 = new \metastore\SQLCheckConstraint(); - $xfer += $elem975->read($input); - $this->checkConstraints []= $elem975; + $elem982 = null; + $elem982 = new \metastore\SQLCheckConstraint(); + $xfer += $elem982->read($input); + $this->checkConstraints []= $elem982; } $xfer += $input->readListEnd(); } else { @@ -19180,9 +19572,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter976) + foreach ($this->primaryKeys as $iter983) { - $xfer += $iter976->write($output); + $xfer += $iter983->write($output); } } $output->writeListEnd(); @@ -19197,9 +19589,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter977) + foreach ($this->foreignKeys as $iter984) { - $xfer += $iter977->write($output); + $xfer += $iter984->write($output); } } $output->writeListEnd(); @@ -19214,9 +19606,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter978) + foreach ($this->uniqueConstraints as $iter985) { - $xfer += $iter978->write($output); + $xfer += $iter985->write($output); } } $output->writeListEnd(); @@ -19231,9 +19623,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter979) + foreach ($this->notNullConstraints as $iter986) { - $xfer += $iter979->write($output); + $xfer += $iter986->write($output); } } $output->writeListEnd(); @@ -19248,9 +19640,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter980) + foreach ($this->defaultConstraints as $iter987) { - $xfer += $iter980->write($output); + $xfer += $iter987->write($output); } } $output->writeListEnd(); @@ -19265,9 +19657,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter981) + foreach ($this->checkConstraints as $iter988) { - $xfer += $iter981->write($output); + $xfer += $iter988->write($output); } } $output->writeListEnd(); @@ -21267,14 +21659,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size982 = 0; - $_etype985 = 0; - $xfer += $input->readListBegin($_etype985, $_size982); - for ($_i986 = 0; $_i986 < $_size982; ++$_i986) + $_size989 = 0; + $_etype992 = 0; + $xfer += $input->readListBegin($_etype992, $_size989); + for ($_i993 = 0; $_i993 < $_size989; ++$_i993) { - $elem987 = null; - $xfer += $input->readString($elem987); - $this->partNames []= $elem987; + $elem994 = null; + $xfer += $input->readString($elem994); + $this->partNames []= $elem994; } $xfer += $input->readListEnd(); } else { @@ -21312,9 +21704,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter988) + foreach ($this->partNames as $iter995) { - $xfer += $output->writeString($iter988); + $xfer += $output->writeString($iter995); } } $output->writeListEnd(); @@ -21750,14 +22142,14 @@ class ThriftHiveMetastore_get_tables_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) + $_size996 = 0; + $_etype999 = 0; + $xfer += $input->readListBegin($_etype999, $_size996); + for ($_i1000 = 0; $_i1000 < $_size996; ++$_i1000) { - $elem994 = null; - $xfer += $input->readString($elem994); - $this->success []= $elem994; + $elem1001 = null; + $xfer += $input->readString($elem1001); + $this->success []= $elem1001; } $xfer += $input->readListEnd(); } else { @@ -21793,9 +22185,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter995) + foreach ($this->success as $iter1002) { - $xfer += $output->writeString($iter995); + $xfer += $output->writeString($iter1002); } } $output->writeListEnd(); @@ -21997,14 +22389,14 @@ class ThriftHiveMetastore_get_tables_by_type_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) + $_size1003 = 0; + $_etype1006 = 0; + $xfer += $input->readListBegin($_etype1006, $_size1003); + for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) { - $elem1001 = null; - $xfer += $input->readString($elem1001); - $this->success []= $elem1001; + $elem1008 = null; + $xfer += $input->readString($elem1008); + $this->success []= $elem1008; } $xfer += $input->readListEnd(); } else { @@ -22040,9 +22432,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1002) + foreach ($this->success as $iter1009) { - $xfer += $output->writeString($iter1002); + $xfer += $output->writeString($iter1009); } } $output->writeListEnd(); @@ -22198,14 +22590,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1003 = 0; - $_etype1006 = 0; - $xfer += $input->readListBegin($_etype1006, $_size1003); - for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) + $_size1010 = 0; + $_etype1013 = 0; + $xfer += $input->readListBegin($_etype1013, $_size1010); + for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) { - $elem1008 = null; - $xfer += $input->readString($elem1008); - $this->success []= $elem1008; + $elem1015 = null; + $xfer += $input->readString($elem1015); + $this->success []= $elem1015; } $xfer += $input->readListEnd(); } else { @@ -22241,9 +22633,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1009) + foreach ($this->success as $iter1016) { - $xfer += $output->writeString($iter1009); + $xfer += $output->writeString($iter1016); } } $output->writeListEnd(); @@ -22348,14 +22740,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size1010 = 0; - $_etype1013 = 0; - $xfer += $input->readListBegin($_etype1013, $_size1010); - for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) + $_size1017 = 0; + $_etype1020 = 0; + $xfer += $input->readListBegin($_etype1020, $_size1017); + for ($_i1021 = 0; $_i1021 < $_size1017; ++$_i1021) { - $elem1015 = null; - $xfer += $input->readString($elem1015); - $this->tbl_types []= $elem1015; + $elem1022 = null; + $xfer += $input->readString($elem1022); + $this->tbl_types []= $elem1022; } $xfer += $input->readListEnd(); } else { @@ -22393,9 +22785,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1016) + foreach ($this->tbl_types as $iter1023) { - $xfer += $output->writeString($iter1016); + $xfer += $output->writeString($iter1023); } } $output->writeListEnd(); @@ -22472,15 +22864,15 @@ class ThriftHiveMetastore_get_table_meta_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) + $_size1024 = 0; + $_etype1027 = 0; + $xfer += $input->readListBegin($_etype1027, $_size1024); + for ($_i1028 = 0; $_i1028 < $_size1024; ++$_i1028) { - $elem1022 = null; - $elem1022 = new \metastore\TableMeta(); - $xfer += $elem1022->read($input); - $this->success []= $elem1022; + $elem1029 = null; + $elem1029 = new \metastore\TableMeta(); + $xfer += $elem1029->read($input); + $this->success []= $elem1029; } $xfer += $input->readListEnd(); } else { @@ -22516,9 +22908,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1023) + foreach ($this->success as $iter1030) { - $xfer += $iter1023->write($output); + $xfer += $iter1030->write($output); } } $output->writeListEnd(); @@ -22674,14 +23066,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1024 = 0; - $_etype1027 = 0; - $xfer += $input->readListBegin($_etype1027, $_size1024); - for ($_i1028 = 0; $_i1028 < $_size1024; ++$_i1028) + $_size1031 = 0; + $_etype1034 = 0; + $xfer += $input->readListBegin($_etype1034, $_size1031); + for ($_i1035 = 0; $_i1035 < $_size1031; ++$_i1035) { - $elem1029 = null; - $xfer += $input->readString($elem1029); - $this->success []= $elem1029; + $elem1036 = null; + $xfer += $input->readString($elem1036); + $this->success []= $elem1036; } $xfer += $input->readListEnd(); } else { @@ -22717,9 +23109,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1030) + foreach ($this->success as $iter1037) { - $xfer += $output->writeString($iter1030); + $xfer += $output->writeString($iter1037); } } $output->writeListEnd(); @@ -23034,14 +23426,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size1031 = 0; - $_etype1034 = 0; - $xfer += $input->readListBegin($_etype1034, $_size1031); - for ($_i1035 = 0; $_i1035 < $_size1031; ++$_i1035) + $_size1038 = 0; + $_etype1041 = 0; + $xfer += $input->readListBegin($_etype1041, $_size1038); + for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042) { - $elem1036 = null; - $xfer += $input->readString($elem1036); - $this->tbl_names []= $elem1036; + $elem1043 = null; + $xfer += $input->readString($elem1043); + $this->tbl_names []= $elem1043; } $xfer += $input->readListEnd(); } else { @@ -23074,9 +23466,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1037) + foreach ($this->tbl_names as $iter1044) { - $xfer += $output->writeString($iter1037); + $xfer += $output->writeString($iter1044); } } $output->writeListEnd(); @@ -23141,15 +23533,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_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) + $_size1045 = 0; + $_etype1048 = 0; + $xfer += $input->readListBegin($_etype1048, $_size1045); + for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) { - $elem1043 = null; - $elem1043 = new \metastore\Table(); - $xfer += $elem1043->read($input); - $this->success []= $elem1043; + $elem1050 = null; + $elem1050 = new \metastore\Table(); + $xfer += $elem1050->read($input); + $this->success []= $elem1050; } $xfer += $input->readListEnd(); } else { @@ -23177,9 +23569,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1044) + foreach ($this->success as $iter1051) { - $xfer += $iter1044->write($output); + $xfer += $iter1051->write($output); } } $output->writeListEnd(); @@ -24379,14 +24771,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1045 = 0; - $_etype1048 = 0; - $xfer += $input->readListBegin($_etype1048, $_size1045); - for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) + $_size1052 = 0; + $_etype1055 = 0; + $xfer += $input->readListBegin($_etype1055, $_size1052); + for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) { - $elem1050 = null; - $xfer += $input->readString($elem1050); - $this->success []= $elem1050; + $elem1057 = null; + $xfer += $input->readString($elem1057); + $this->success []= $elem1057; } $xfer += $input->readListEnd(); } else { @@ -24438,9 +24830,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1051) + foreach ($this->success as $iter1058) { - $xfer += $output->writeString($iter1051); + $xfer += $output->writeString($iter1058); } } $output->writeListEnd(); @@ -25963,15 +26355,15 @@ class ThriftHiveMetastore_add_partitions_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) + $_size1059 = 0; + $_etype1062 = 0; + $xfer += $input->readListBegin($_etype1062, $_size1059); + for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) { - $elem1057 = null; - $elem1057 = new \metastore\Partition(); - $xfer += $elem1057->read($input); - $this->new_parts []= $elem1057; + $elem1064 = null; + $elem1064 = new \metastore\Partition(); + $xfer += $elem1064->read($input); + $this->new_parts []= $elem1064; } $xfer += $input->readListEnd(); } else { @@ -25999,9 +26391,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1058) + foreach ($this->new_parts as $iter1065) { - $xfer += $iter1058->write($output); + $xfer += $iter1065->write($output); } } $output->writeListEnd(); @@ -26216,15 +26608,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1059 = 0; - $_etype1062 = 0; - $xfer += $input->readListBegin($_etype1062, $_size1059); - for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) + $_size1066 = 0; + $_etype1069 = 0; + $xfer += $input->readListBegin($_etype1069, $_size1066); + for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) { - $elem1064 = null; - $elem1064 = new \metastore\PartitionSpec(); - $xfer += $elem1064->read($input); - $this->new_parts []= $elem1064; + $elem1071 = null; + $elem1071 = new \metastore\PartitionSpec(); + $xfer += $elem1071->read($input); + $this->new_parts []= $elem1071; } $xfer += $input->readListEnd(); } else { @@ -26252,9 +26644,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1065) + foreach ($this->new_parts as $iter1072) { - $xfer += $iter1065->write($output); + $xfer += $iter1072->write($output); } } $output->writeListEnd(); @@ -26504,14 +26896,14 @@ class ThriftHiveMetastore_append_partition_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) + $_size1073 = 0; + $_etype1076 = 0; + $xfer += $input->readListBegin($_etype1076, $_size1073); + for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) { - $elem1071 = null; - $xfer += $input->readString($elem1071); - $this->part_vals []= $elem1071; + $elem1078 = null; + $xfer += $input->readString($elem1078); + $this->part_vals []= $elem1078; } $xfer += $input->readListEnd(); } else { @@ -26549,9 +26941,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1072) + foreach ($this->part_vals as $iter1079) { - $xfer += $output->writeString($iter1072); + $xfer += $output->writeString($iter1079); } } $output->writeListEnd(); @@ -27053,14 +27445,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_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) + $_size1080 = 0; + $_etype1083 = 0; + $xfer += $input->readListBegin($_etype1083, $_size1080); + for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) { - $elem1078 = null; - $xfer += $input->readString($elem1078); - $this->part_vals []= $elem1078; + $elem1085 = null; + $xfer += $input->readString($elem1085); + $this->part_vals []= $elem1085; } $xfer += $input->readListEnd(); } else { @@ -27106,9 +27498,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1079) + foreach ($this->part_vals as $iter1086) { - $xfer += $output->writeString($iter1079); + $xfer += $output->writeString($iter1086); } } $output->writeListEnd(); @@ -27962,14 +28354,14 @@ class ThriftHiveMetastore_drop_partition_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) + $_size1087 = 0; + $_etype1090 = 0; + $xfer += $input->readListBegin($_etype1090, $_size1087); + for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) { - $elem1085 = null; - $xfer += $input->readString($elem1085); - $this->part_vals []= $elem1085; + $elem1092 = null; + $xfer += $input->readString($elem1092); + $this->part_vals []= $elem1092; } $xfer += $input->readListEnd(); } else { @@ -28014,9 +28406,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1086) + foreach ($this->part_vals as $iter1093) { - $xfer += $output->writeString($iter1086); + $xfer += $output->writeString($iter1093); } } $output->writeListEnd(); @@ -28269,14 +28661,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_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) + $_size1094 = 0; + $_etype1097 = 0; + $xfer += $input->readListBegin($_etype1097, $_size1094); + for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) { - $elem1092 = null; - $xfer += $input->readString($elem1092); - $this->part_vals []= $elem1092; + $elem1099 = null; + $xfer += $input->readString($elem1099); + $this->part_vals []= $elem1099; } $xfer += $input->readListEnd(); } else { @@ -28329,9 +28721,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1093) + foreach ($this->part_vals as $iter1100) { - $xfer += $output->writeString($iter1093); + $xfer += $output->writeString($iter1100); } } $output->writeListEnd(); @@ -29345,14 +29737,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1094 = 0; - $_etype1097 = 0; - $xfer += $input->readListBegin($_etype1097, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) + $_size1101 = 0; + $_etype1104 = 0; + $xfer += $input->readListBegin($_etype1104, $_size1101); + for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) { - $elem1099 = null; - $xfer += $input->readString($elem1099); - $this->part_vals []= $elem1099; + $elem1106 = null; + $xfer += $input->readString($elem1106); + $this->part_vals []= $elem1106; } $xfer += $input->readListEnd(); } else { @@ -29390,9 +29782,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1100) + foreach ($this->part_vals as $iter1107) { - $xfer += $output->writeString($iter1100); + $xfer += $output->writeString($iter1107); } } $output->writeListEnd(); @@ -29634,17 +30026,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1101 = 0; - $_ktype1102 = 0; - $_vtype1103 = 0; - $xfer += $input->readMapBegin($_ktype1102, $_vtype1103, $_size1101); - for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) + $_size1108 = 0; + $_ktype1109 = 0; + $_vtype1110 = 0; + $xfer += $input->readMapBegin($_ktype1109, $_vtype1110, $_size1108); + for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) { - $key1106 = ''; - $val1107 = ''; - $xfer += $input->readString($key1106); - $xfer += $input->readString($val1107); - $this->partitionSpecs[$key1106] = $val1107; + $key1113 = ''; + $val1114 = ''; + $xfer += $input->readString($key1113); + $xfer += $input->readString($val1114); + $this->partitionSpecs[$key1113] = $val1114; } $xfer += $input->readMapEnd(); } else { @@ -29700,10 +30092,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1108 => $viter1109) + foreach ($this->partitionSpecs as $kiter1115 => $viter1116) { - $xfer += $output->writeString($kiter1108); - $xfer += $output->writeString($viter1109); + $xfer += $output->writeString($kiter1115); + $xfer += $output->writeString($viter1116); } } $output->writeMapEnd(); @@ -30015,17 +30407,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1110 = 0; - $_ktype1111 = 0; - $_vtype1112 = 0; - $xfer += $input->readMapBegin($_ktype1111, $_vtype1112, $_size1110); - for ($_i1114 = 0; $_i1114 < $_size1110; ++$_i1114) + $_size1117 = 0; + $_ktype1118 = 0; + $_vtype1119 = 0; + $xfer += $input->readMapBegin($_ktype1118, $_vtype1119, $_size1117); + for ($_i1121 = 0; $_i1121 < $_size1117; ++$_i1121) { - $key1115 = ''; - $val1116 = ''; - $xfer += $input->readString($key1115); - $xfer += $input->readString($val1116); - $this->partitionSpecs[$key1115] = $val1116; + $key1122 = ''; + $val1123 = ''; + $xfer += $input->readString($key1122); + $xfer += $input->readString($val1123); + $this->partitionSpecs[$key1122] = $val1123; } $xfer += $input->readMapEnd(); } else { @@ -30081,10 +30473,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1117 => $viter1118) + foreach ($this->partitionSpecs as $kiter1124 => $viter1125) { - $xfer += $output->writeString($kiter1117); - $xfer += $output->writeString($viter1118); + $xfer += $output->writeString($kiter1124); + $xfer += $output->writeString($viter1125); } } $output->writeMapEnd(); @@ -30217,15 +30609,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1119 = 0; - $_etype1122 = 0; - $xfer += $input->readListBegin($_etype1122, $_size1119); - for ($_i1123 = 0; $_i1123 < $_size1119; ++$_i1123) + $_size1126 = 0; + $_etype1129 = 0; + $xfer += $input->readListBegin($_etype1129, $_size1126); + for ($_i1130 = 0; $_i1130 < $_size1126; ++$_i1130) { - $elem1124 = null; - $elem1124 = new \metastore\Partition(); - $xfer += $elem1124->read($input); - $this->success []= $elem1124; + $elem1131 = null; + $elem1131 = new \metastore\Partition(); + $xfer += $elem1131->read($input); + $this->success []= $elem1131; } $xfer += $input->readListEnd(); } else { @@ -30285,9 +30677,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1125) + foreach ($this->success as $iter1132) { - $xfer += $iter1125->write($output); + $xfer += $iter1132->write($output); } } $output->writeListEnd(); @@ -30433,14 +30825,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1126 = 0; - $_etype1129 = 0; - $xfer += $input->readListBegin($_etype1129, $_size1126); - for ($_i1130 = 0; $_i1130 < $_size1126; ++$_i1130) + $_size1133 = 0; + $_etype1136 = 0; + $xfer += $input->readListBegin($_etype1136, $_size1133); + for ($_i1137 = 0; $_i1137 < $_size1133; ++$_i1137) { - $elem1131 = null; - $xfer += $input->readString($elem1131); - $this->part_vals []= $elem1131; + $elem1138 = null; + $xfer += $input->readString($elem1138); + $this->part_vals []= $elem1138; } $xfer += $input->readListEnd(); } else { @@ -30457,14 +30849,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1132 = 0; - $_etype1135 = 0; - $xfer += $input->readListBegin($_etype1135, $_size1132); - for ($_i1136 = 0; $_i1136 < $_size1132; ++$_i1136) + $_size1139 = 0; + $_etype1142 = 0; + $xfer += $input->readListBegin($_etype1142, $_size1139); + for ($_i1143 = 0; $_i1143 < $_size1139; ++$_i1143) { - $elem1137 = null; - $xfer += $input->readString($elem1137); - $this->group_names []= $elem1137; + $elem1144 = null; + $xfer += $input->readString($elem1144); + $this->group_names []= $elem1144; } $xfer += $input->readListEnd(); } else { @@ -30502,9 +30894,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1138) + foreach ($this->part_vals as $iter1145) { - $xfer += $output->writeString($iter1138); + $xfer += $output->writeString($iter1145); } } $output->writeListEnd(); @@ -30524,9 +30916,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1139) + foreach ($this->group_names as $iter1146) { - $xfer += $output->writeString($iter1139); + $xfer += $output->writeString($iter1146); } } $output->writeListEnd(); @@ -31117,15 +31509,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1140 = 0; - $_etype1143 = 0; - $xfer += $input->readListBegin($_etype1143, $_size1140); - for ($_i1144 = 0; $_i1144 < $_size1140; ++$_i1144) + $_size1147 = 0; + $_etype1150 = 0; + $xfer += $input->readListBegin($_etype1150, $_size1147); + for ($_i1151 = 0; $_i1151 < $_size1147; ++$_i1151) { - $elem1145 = null; - $elem1145 = new \metastore\Partition(); - $xfer += $elem1145->read($input); - $this->success []= $elem1145; + $elem1152 = null; + $elem1152 = new \metastore\Partition(); + $xfer += $elem1152->read($input); + $this->success []= $elem1152; } $xfer += $input->readListEnd(); } else { @@ -31169,9 +31561,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1146) + foreach ($this->success as $iter1153) { - $xfer += $iter1146->write($output); + $xfer += $iter1153->write($output); } } $output->writeListEnd(); @@ -31317,14 +31709,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1147 = 0; - $_etype1150 = 0; - $xfer += $input->readListBegin($_etype1150, $_size1147); - for ($_i1151 = 0; $_i1151 < $_size1147; ++$_i1151) + $_size1154 = 0; + $_etype1157 = 0; + $xfer += $input->readListBegin($_etype1157, $_size1154); + for ($_i1158 = 0; $_i1158 < $_size1154; ++$_i1158) { - $elem1152 = null; - $xfer += $input->readString($elem1152); - $this->group_names []= $elem1152; + $elem1159 = null; + $xfer += $input->readString($elem1159); + $this->group_names []= $elem1159; } $xfer += $input->readListEnd(); } else { @@ -31372,9 +31764,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1153) + foreach ($this->group_names as $iter1160) { - $xfer += $output->writeString($iter1153); + $xfer += $output->writeString($iter1160); } } $output->writeListEnd(); @@ -31463,15 +31855,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_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) + $_size1161 = 0; + $_etype1164 = 0; + $xfer += $input->readListBegin($_etype1164, $_size1161); + for ($_i1165 = 0; $_i1165 < $_size1161; ++$_i1165) { - $elem1159 = null; - $elem1159 = new \metastore\Partition(); - $xfer += $elem1159->read($input); - $this->success []= $elem1159; + $elem1166 = null; + $elem1166 = new \metastore\Partition(); + $xfer += $elem1166->read($input); + $this->success []= $elem1166; } $xfer += $input->readListEnd(); } else { @@ -31515,9 +31907,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1160) + foreach ($this->success as $iter1167) { - $xfer += $iter1160->write($output); + $xfer += $iter1167->write($output); } } $output->writeListEnd(); @@ -31737,15 +32129,15 @@ class ThriftHiveMetastore_get_partitions_pspec_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) + $_size1168 = 0; + $_etype1171 = 0; + $xfer += $input->readListBegin($_etype1171, $_size1168); + for ($_i1172 = 0; $_i1172 < $_size1168; ++$_i1172) { - $elem1166 = null; - $elem1166 = new \metastore\PartitionSpec(); - $xfer += $elem1166->read($input); - $this->success []= $elem1166; + $elem1173 = null; + $elem1173 = new \metastore\PartitionSpec(); + $xfer += $elem1173->read($input); + $this->success []= $elem1173; } $xfer += $input->readListEnd(); } else { @@ -31789,9 +32181,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1167) + foreach ($this->success as $iter1174) { - $xfer += $iter1167->write($output); + $xfer += $iter1174->write($output); } } $output->writeListEnd(); @@ -32010,14 +32402,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1168 = 0; - $_etype1171 = 0; - $xfer += $input->readListBegin($_etype1171, $_size1168); - for ($_i1172 = 0; $_i1172 < $_size1168; ++$_i1172) + $_size1175 = 0; + $_etype1178 = 0; + $xfer += $input->readListBegin($_etype1178, $_size1175); + for ($_i1179 = 0; $_i1179 < $_size1175; ++$_i1179) { - $elem1173 = null; - $xfer += $input->readString($elem1173); - $this->success []= $elem1173; + $elem1180 = null; + $xfer += $input->readString($elem1180); + $this->success []= $elem1180; } $xfer += $input->readListEnd(); } else { @@ -32061,9 +32453,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1174) + foreach ($this->success as $iter1181) { - $xfer += $output->writeString($iter1174); + $xfer += $output->writeString($iter1181); } } $output->writeListEnd(); @@ -32394,14 +32786,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1175 = 0; - $_etype1178 = 0; - $xfer += $input->readListBegin($_etype1178, $_size1175); - for ($_i1179 = 0; $_i1179 < $_size1175; ++$_i1179) + $_size1182 = 0; + $_etype1185 = 0; + $xfer += $input->readListBegin($_etype1185, $_size1182); + for ($_i1186 = 0; $_i1186 < $_size1182; ++$_i1186) { - $elem1180 = null; - $xfer += $input->readString($elem1180); - $this->part_vals []= $elem1180; + $elem1187 = null; + $xfer += $input->readString($elem1187); + $this->part_vals []= $elem1187; } $xfer += $input->readListEnd(); } else { @@ -32446,9 +32838,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1181) + foreach ($this->part_vals as $iter1188) { - $xfer += $output->writeString($iter1181); + $xfer += $output->writeString($iter1188); } } $output->writeListEnd(); @@ -32542,15 +32934,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1182 = 0; - $_etype1185 = 0; - $xfer += $input->readListBegin($_etype1185, $_size1182); - for ($_i1186 = 0; $_i1186 < $_size1182; ++$_i1186) + $_size1189 = 0; + $_etype1192 = 0; + $xfer += $input->readListBegin($_etype1192, $_size1189); + for ($_i1193 = 0; $_i1193 < $_size1189; ++$_i1193) { - $elem1187 = null; - $elem1187 = new \metastore\Partition(); - $xfer += $elem1187->read($input); - $this->success []= $elem1187; + $elem1194 = null; + $elem1194 = new \metastore\Partition(); + $xfer += $elem1194->read($input); + $this->success []= $elem1194; } $xfer += $input->readListEnd(); } else { @@ -32594,9 +32986,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1188) + foreach ($this->success as $iter1195) { - $xfer += $iter1188->write($output); + $xfer += $iter1195->write($output); } } $output->writeListEnd(); @@ -32743,14 +33135,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1189 = 0; - $_etype1192 = 0; - $xfer += $input->readListBegin($_etype1192, $_size1189); - for ($_i1193 = 0; $_i1193 < $_size1189; ++$_i1193) + $_size1196 = 0; + $_etype1199 = 0; + $xfer += $input->readListBegin($_etype1199, $_size1196); + for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) { - $elem1194 = null; - $xfer += $input->readString($elem1194); - $this->part_vals []= $elem1194; + $elem1201 = null; + $xfer += $input->readString($elem1201); + $this->part_vals []= $elem1201; } $xfer += $input->readListEnd(); } else { @@ -32774,14 +33166,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1195 = 0; - $_etype1198 = 0; - $xfer += $input->readListBegin($_etype1198, $_size1195); - for ($_i1199 = 0; $_i1199 < $_size1195; ++$_i1199) + $_size1202 = 0; + $_etype1205 = 0; + $xfer += $input->readListBegin($_etype1205, $_size1202); + for ($_i1206 = 0; $_i1206 < $_size1202; ++$_i1206) { - $elem1200 = null; - $xfer += $input->readString($elem1200); - $this->group_names []= $elem1200; + $elem1207 = null; + $xfer += $input->readString($elem1207); + $this->group_names []= $elem1207; } $xfer += $input->readListEnd(); } else { @@ -32819,9 +33211,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1201) + foreach ($this->part_vals as $iter1208) { - $xfer += $output->writeString($iter1201); + $xfer += $output->writeString($iter1208); } } $output->writeListEnd(); @@ -32846,9 +33238,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1202) + foreach ($this->group_names as $iter1209) { - $xfer += $output->writeString($iter1202); + $xfer += $output->writeString($iter1209); } } $output->writeListEnd(); @@ -32937,15 +33329,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1203 = 0; - $_etype1206 = 0; - $xfer += $input->readListBegin($_etype1206, $_size1203); - for ($_i1207 = 0; $_i1207 < $_size1203; ++$_i1207) + $_size1210 = 0; + $_etype1213 = 0; + $xfer += $input->readListBegin($_etype1213, $_size1210); + for ($_i1214 = 0; $_i1214 < $_size1210; ++$_i1214) { - $elem1208 = null; - $elem1208 = new \metastore\Partition(); - $xfer += $elem1208->read($input); - $this->success []= $elem1208; + $elem1215 = null; + $elem1215 = new \metastore\Partition(); + $xfer += $elem1215->read($input); + $this->success []= $elem1215; } $xfer += $input->readListEnd(); } else { @@ -32989,9 +33381,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1209) + foreach ($this->success as $iter1216) { - $xfer += $iter1209->write($output); + $xfer += $iter1216->write($output); } } $output->writeListEnd(); @@ -33112,14 +33504,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1210 = 0; - $_etype1213 = 0; - $xfer += $input->readListBegin($_etype1213, $_size1210); - for ($_i1214 = 0; $_i1214 < $_size1210; ++$_i1214) + $_size1217 = 0; + $_etype1220 = 0; + $xfer += $input->readListBegin($_etype1220, $_size1217); + for ($_i1221 = 0; $_i1221 < $_size1217; ++$_i1221) { - $elem1215 = null; - $xfer += $input->readString($elem1215); - $this->part_vals []= $elem1215; + $elem1222 = null; + $xfer += $input->readString($elem1222); + $this->part_vals []= $elem1222; } $xfer += $input->readListEnd(); } else { @@ -33164,9 +33556,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1216) + foreach ($this->part_vals as $iter1223) { - $xfer += $output->writeString($iter1216); + $xfer += $output->writeString($iter1223); } } $output->writeListEnd(); @@ -33259,14 +33651,14 @@ class ThriftHiveMetastore_get_partition_names_ps_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) + $_size1224 = 0; + $_etype1227 = 0; + $xfer += $input->readListBegin($_etype1227, $_size1224); + for ($_i1228 = 0; $_i1228 < $_size1224; ++$_i1228) { - $elem1222 = null; - $xfer += $input->readString($elem1222); - $this->success []= $elem1222; + $elem1229 = null; + $xfer += $input->readString($elem1229); + $this->success []= $elem1229; } $xfer += $input->readListEnd(); } else { @@ -33310,9 +33702,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1223) + foreach ($this->success as $iter1230) { - $xfer += $output->writeString($iter1223); + $xfer += $output->writeString($iter1230); } } $output->writeListEnd(); @@ -33555,15 +33947,15 @@ class ThriftHiveMetastore_get_partitions_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) + $_size1231 = 0; + $_etype1234 = 0; + $xfer += $input->readListBegin($_etype1234, $_size1231); + for ($_i1235 = 0; $_i1235 < $_size1231; ++$_i1235) { - $elem1229 = null; - $elem1229 = new \metastore\Partition(); - $xfer += $elem1229->read($input); - $this->success []= $elem1229; + $elem1236 = null; + $elem1236 = new \metastore\Partition(); + $xfer += $elem1236->read($input); + $this->success []= $elem1236; } $xfer += $input->readListEnd(); } else { @@ -33607,9 +33999,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1230) + foreach ($this->success as $iter1237) { - $xfer += $iter1230->write($output); + $xfer += $iter1237->write($output); } } $output->writeListEnd(); @@ -33852,15 +34244,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1231 = 0; - $_etype1234 = 0; - $xfer += $input->readListBegin($_etype1234, $_size1231); - for ($_i1235 = 0; $_i1235 < $_size1231; ++$_i1235) + $_size1238 = 0; + $_etype1241 = 0; + $xfer += $input->readListBegin($_etype1241, $_size1238); + for ($_i1242 = 0; $_i1242 < $_size1238; ++$_i1242) { - $elem1236 = null; - $elem1236 = new \metastore\PartitionSpec(); - $xfer += $elem1236->read($input); - $this->success []= $elem1236; + $elem1243 = null; + $elem1243 = new \metastore\PartitionSpec(); + $xfer += $elem1243->read($input); + $this->success []= $elem1243; } $xfer += $input->readListEnd(); } else { @@ -33904,9 +34296,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1237) + foreach ($this->success as $iter1244) { - $xfer += $iter1237->write($output); + $xfer += $iter1244->write($output); } } $output->writeListEnd(); @@ -34472,14 +34864,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1238 = 0; - $_etype1241 = 0; - $xfer += $input->readListBegin($_etype1241, $_size1238); - for ($_i1242 = 0; $_i1242 < $_size1238; ++$_i1242) + $_size1245 = 0; + $_etype1248 = 0; + $xfer += $input->readListBegin($_etype1248, $_size1245); + for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) { - $elem1243 = null; - $xfer += $input->readString($elem1243); - $this->names []= $elem1243; + $elem1250 = null; + $xfer += $input->readString($elem1250); + $this->names []= $elem1250; } $xfer += $input->readListEnd(); } else { @@ -34517,9 +34909,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1244) + foreach ($this->names as $iter1251) { - $xfer += $output->writeString($iter1244); + $xfer += $output->writeString($iter1251); } } $output->writeListEnd(); @@ -34608,15 +35000,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1245 = 0; - $_etype1248 = 0; - $xfer += $input->readListBegin($_etype1248, $_size1245); - for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) + $_size1252 = 0; + $_etype1255 = 0; + $xfer += $input->readListBegin($_etype1255, $_size1252); + for ($_i1256 = 0; $_i1256 < $_size1252; ++$_i1256) { - $elem1250 = null; - $elem1250 = new \metastore\Partition(); - $xfer += $elem1250->read($input); - $this->success []= $elem1250; + $elem1257 = null; + $elem1257 = new \metastore\Partition(); + $xfer += $elem1257->read($input); + $this->success []= $elem1257; } $xfer += $input->readListEnd(); } else { @@ -34660,9 +35052,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1251) + foreach ($this->success as $iter1258) { - $xfer += $iter1251->write($output); + $xfer += $iter1258->write($output); } } $output->writeListEnd(); @@ -35001,15 +35393,15 @@ class ThriftHiveMetastore_alter_partitions_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) + $_size1259 = 0; + $_etype1262 = 0; + $xfer += $input->readListBegin($_etype1262, $_size1259); + for ($_i1263 = 0; $_i1263 < $_size1259; ++$_i1263) { - $elem1257 = null; - $elem1257 = new \metastore\Partition(); - $xfer += $elem1257->read($input); - $this->new_parts []= $elem1257; + $elem1264 = null; + $elem1264 = new \metastore\Partition(); + $xfer += $elem1264->read($input); + $this->new_parts []= $elem1264; } $xfer += $input->readListEnd(); } else { @@ -35047,9 +35439,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1258) + foreach ($this->new_parts as $iter1265) { - $xfer += $iter1258->write($output); + $xfer += $iter1265->write($output); } } $output->writeListEnd(); @@ -35264,15 +35656,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1259 = 0; - $_etype1262 = 0; - $xfer += $input->readListBegin($_etype1262, $_size1259); - for ($_i1263 = 0; $_i1263 < $_size1259; ++$_i1263) + $_size1266 = 0; + $_etype1269 = 0; + $xfer += $input->readListBegin($_etype1269, $_size1266); + for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) { - $elem1264 = null; - $elem1264 = new \metastore\Partition(); - $xfer += $elem1264->read($input); - $this->new_parts []= $elem1264; + $elem1271 = null; + $elem1271 = new \metastore\Partition(); + $xfer += $elem1271->read($input); + $this->new_parts []= $elem1271; } $xfer += $input->readListEnd(); } else { @@ -35318,9 +35710,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1265) + foreach ($this->new_parts as $iter1272) { - $xfer += $iter1265->write($output); + $xfer += $iter1272->write($output); } } $output->writeListEnd(); @@ -36008,14 +36400,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1266 = 0; - $_etype1269 = 0; - $xfer += $input->readListBegin($_etype1269, $_size1266); - for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) + $_size1273 = 0; + $_etype1276 = 0; + $xfer += $input->readListBegin($_etype1276, $_size1273); + for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) { - $elem1271 = null; - $xfer += $input->readString($elem1271); - $this->part_vals []= $elem1271; + $elem1278 = null; + $xfer += $input->readString($elem1278); + $this->part_vals []= $elem1278; } $xfer += $input->readListEnd(); } else { @@ -36061,9 +36453,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1272) + foreach ($this->part_vals as $iter1279) { - $xfer += $output->writeString($iter1272); + $xfer += $output->writeString($iter1279); } } $output->writeListEnd(); @@ -36458,14 +36850,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1273 = 0; - $_etype1276 = 0; - $xfer += $input->readListBegin($_etype1276, $_size1273); - for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) + $_size1280 = 0; + $_etype1283 = 0; + $xfer += $input->readListBegin($_etype1283, $_size1280); + for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) { - $elem1278 = null; - $xfer += $input->readString($elem1278); - $this->part_vals []= $elem1278; + $elem1285 = null; + $xfer += $input->readString($elem1285); + $this->part_vals []= $elem1285; } $xfer += $input->readListEnd(); } else { @@ -36500,9 +36892,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1279) + foreach ($this->part_vals as $iter1286) { - $xfer += $output->writeString($iter1279); + $xfer += $output->writeString($iter1286); } } $output->writeListEnd(); @@ -36956,14 +37348,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1280 = 0; - $_etype1283 = 0; - $xfer += $input->readListBegin($_etype1283, $_size1280); - for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) + $_size1287 = 0; + $_etype1290 = 0; + $xfer += $input->readListBegin($_etype1290, $_size1287); + for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) { - $elem1285 = null; - $xfer += $input->readString($elem1285); - $this->success []= $elem1285; + $elem1292 = null; + $xfer += $input->readString($elem1292); + $this->success []= $elem1292; } $xfer += $input->readListEnd(); } else { @@ -36999,9 +37391,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1286) + foreach ($this->success as $iter1293) { - $xfer += $output->writeString($iter1286); + $xfer += $output->writeString($iter1293); } } $output->writeListEnd(); @@ -37161,17 +37553,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1287 = 0; - $_ktype1288 = 0; - $_vtype1289 = 0; - $xfer += $input->readMapBegin($_ktype1288, $_vtype1289, $_size1287); - for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) + $_size1294 = 0; + $_ktype1295 = 0; + $_vtype1296 = 0; + $xfer += $input->readMapBegin($_ktype1295, $_vtype1296, $_size1294); + for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) { - $key1292 = ''; - $val1293 = ''; - $xfer += $input->readString($key1292); - $xfer += $input->readString($val1293); - $this->success[$key1292] = $val1293; + $key1299 = ''; + $val1300 = ''; + $xfer += $input->readString($key1299); + $xfer += $input->readString($val1300); + $this->success[$key1299] = $val1300; } $xfer += $input->readMapEnd(); } else { @@ -37207,10 +37599,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1294 => $viter1295) + foreach ($this->success as $kiter1301 => $viter1302) { - $xfer += $output->writeString($kiter1294); - $xfer += $output->writeString($viter1295); + $xfer += $output->writeString($kiter1301); + $xfer += $output->writeString($viter1302); } } $output->writeMapEnd(); @@ -37330,17 +37722,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1296 = 0; - $_ktype1297 = 0; - $_vtype1298 = 0; - $xfer += $input->readMapBegin($_ktype1297, $_vtype1298, $_size1296); - for ($_i1300 = 0; $_i1300 < $_size1296; ++$_i1300) + $_size1303 = 0; + $_ktype1304 = 0; + $_vtype1305 = 0; + $xfer += $input->readMapBegin($_ktype1304, $_vtype1305, $_size1303); + for ($_i1307 = 0; $_i1307 < $_size1303; ++$_i1307) { - $key1301 = ''; - $val1302 = ''; - $xfer += $input->readString($key1301); - $xfer += $input->readString($val1302); - $this->part_vals[$key1301] = $val1302; + $key1308 = ''; + $val1309 = ''; + $xfer += $input->readString($key1308); + $xfer += $input->readString($val1309); + $this->part_vals[$key1308] = $val1309; } $xfer += $input->readMapEnd(); } else { @@ -37385,10 +37777,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1303 => $viter1304) + foreach ($this->part_vals as $kiter1310 => $viter1311) { - $xfer += $output->writeString($kiter1303); - $xfer += $output->writeString($viter1304); + $xfer += $output->writeString($kiter1310); + $xfer += $output->writeString($viter1311); } } $output->writeMapEnd(); @@ -37710,17 +38102,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1305 = 0; - $_ktype1306 = 0; - $_vtype1307 = 0; - $xfer += $input->readMapBegin($_ktype1306, $_vtype1307, $_size1305); - for ($_i1309 = 0; $_i1309 < $_size1305; ++$_i1309) + $_size1312 = 0; + $_ktype1313 = 0; + $_vtype1314 = 0; + $xfer += $input->readMapBegin($_ktype1313, $_vtype1314, $_size1312); + for ($_i1316 = 0; $_i1316 < $_size1312; ++$_i1316) { - $key1310 = ''; - $val1311 = ''; - $xfer += $input->readString($key1310); - $xfer += $input->readString($val1311); - $this->part_vals[$key1310] = $val1311; + $key1317 = ''; + $val1318 = ''; + $xfer += $input->readString($key1317); + $xfer += $input->readString($val1318); + $this->part_vals[$key1317] = $val1318; } $xfer += $input->readMapEnd(); } else { @@ -37765,10 +38157,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1312 => $viter1313) + foreach ($this->part_vals as $kiter1319 => $viter1320) { - $xfer += $output->writeString($kiter1312); - $xfer += $output->writeString($viter1313); + $xfer += $output->writeString($kiter1319); + $xfer += $output->writeString($viter1320); } } $output->writeMapEnd(); @@ -43247,14 +43639,14 @@ class ThriftHiveMetastore_get_functions_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) + $_size1321 = 0; + $_etype1324 = 0; + $xfer += $input->readListBegin($_etype1324, $_size1321); + for ($_i1325 = 0; $_i1325 < $_size1321; ++$_i1325) { - $elem1319 = null; - $xfer += $input->readString($elem1319); - $this->success []= $elem1319; + $elem1326 = null; + $xfer += $input->readString($elem1326); + $this->success []= $elem1326; } $xfer += $input->readListEnd(); } else { @@ -43290,9 +43682,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1320) + foreach ($this->success as $iter1327) { - $xfer += $output->writeString($iter1320); + $xfer += $output->writeString($iter1327); } } $output->writeListEnd(); @@ -44161,14 +44553,14 @@ class ThriftHiveMetastore_get_role_names_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) + $_size1328 = 0; + $_etype1331 = 0; + $xfer += $input->readListBegin($_etype1331, $_size1328); + for ($_i1332 = 0; $_i1332 < $_size1328; ++$_i1332) { - $elem1326 = null; - $xfer += $input->readString($elem1326); - $this->success []= $elem1326; + $elem1333 = null; + $xfer += $input->readString($elem1333); + $this->success []= $elem1333; } $xfer += $input->readListEnd(); } else { @@ -44204,9 +44596,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1327) + foreach ($this->success as $iter1334) { - $xfer += $output->writeString($iter1327); + $xfer += $output->writeString($iter1334); } } $output->writeListEnd(); @@ -44897,15 +45289,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1328 = 0; - $_etype1331 = 0; - $xfer += $input->readListBegin($_etype1331, $_size1328); - for ($_i1332 = 0; $_i1332 < $_size1328; ++$_i1332) + $_size1335 = 0; + $_etype1338 = 0; + $xfer += $input->readListBegin($_etype1338, $_size1335); + for ($_i1339 = 0; $_i1339 < $_size1335; ++$_i1339) { - $elem1333 = null; - $elem1333 = new \metastore\Role(); - $xfer += $elem1333->read($input); - $this->success []= $elem1333; + $elem1340 = null; + $elem1340 = new \metastore\Role(); + $xfer += $elem1340->read($input); + $this->success []= $elem1340; } $xfer += $input->readListEnd(); } else { @@ -44941,9 +45333,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1334) + foreach ($this->success as $iter1341) { - $xfer += $iter1334->write($output); + $xfer += $iter1341->write($output); } } $output->writeListEnd(); @@ -45605,14 +45997,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1335 = 0; - $_etype1338 = 0; - $xfer += $input->readListBegin($_etype1338, $_size1335); - for ($_i1339 = 0; $_i1339 < $_size1335; ++$_i1339) + $_size1342 = 0; + $_etype1345 = 0; + $xfer += $input->readListBegin($_etype1345, $_size1342); + for ($_i1346 = 0; $_i1346 < $_size1342; ++$_i1346) { - $elem1340 = null; - $xfer += $input->readString($elem1340); - $this->group_names []= $elem1340; + $elem1347 = null; + $xfer += $input->readString($elem1347); + $this->group_names []= $elem1347; } $xfer += $input->readListEnd(); } else { @@ -45653,9 +46045,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1341) + foreach ($this->group_names as $iter1348) { - $xfer += $output->writeString($iter1341); + $xfer += $output->writeString($iter1348); } } $output->writeListEnd(); @@ -45963,15 +46355,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1342 = 0; - $_etype1345 = 0; - $xfer += $input->readListBegin($_etype1345, $_size1342); - for ($_i1346 = 0; $_i1346 < $_size1342; ++$_i1346) + $_size1349 = 0; + $_etype1352 = 0; + $xfer += $input->readListBegin($_etype1352, $_size1349); + for ($_i1353 = 0; $_i1353 < $_size1349; ++$_i1353) { - $elem1347 = null; - $elem1347 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1347->read($input); - $this->success []= $elem1347; + $elem1354 = null; + $elem1354 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1354->read($input); + $this->success []= $elem1354; } $xfer += $input->readListEnd(); } else { @@ -46007,9 +46399,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1348) + foreach ($this->success as $iter1355) { - $xfer += $iter1348->write($output); + $xfer += $iter1355->write($output); } } $output->writeListEnd(); @@ -46877,14 +47269,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1349 = 0; - $_etype1352 = 0; - $xfer += $input->readListBegin($_etype1352, $_size1349); - for ($_i1353 = 0; $_i1353 < $_size1349; ++$_i1353) + $_size1356 = 0; + $_etype1359 = 0; + $xfer += $input->readListBegin($_etype1359, $_size1356); + for ($_i1360 = 0; $_i1360 < $_size1356; ++$_i1360) { - $elem1354 = null; - $xfer += $input->readString($elem1354); - $this->group_names []= $elem1354; + $elem1361 = null; + $xfer += $input->readString($elem1361); + $this->group_names []= $elem1361; } $xfer += $input->readListEnd(); } else { @@ -46917,9 +47309,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1355) + foreach ($this->group_names as $iter1362) { - $xfer += $output->writeString($iter1355); + $xfer += $output->writeString($iter1362); } } $output->writeListEnd(); @@ -46995,14 +47387,14 @@ class ThriftHiveMetastore_set_ugi_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) + $_size1363 = 0; + $_etype1366 = 0; + $xfer += $input->readListBegin($_etype1366, $_size1363); + for ($_i1367 = 0; $_i1367 < $_size1363; ++$_i1367) { - $elem1361 = null; - $xfer += $input->readString($elem1361); - $this->success []= $elem1361; + $elem1368 = null; + $xfer += $input->readString($elem1368); + $this->success []= $elem1368; } $xfer += $input->readListEnd(); } else { @@ -47038,9 +47430,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1362) + foreach ($this->success as $iter1369) { - $xfer += $output->writeString($iter1362); + $xfer += $output->writeString($iter1369); } } $output->writeListEnd(); @@ -48157,14 +48549,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_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) + $_size1370 = 0; + $_etype1373 = 0; + $xfer += $input->readListBegin($_etype1373, $_size1370); + for ($_i1374 = 0; $_i1374 < $_size1370; ++$_i1374) { - $elem1368 = null; - $xfer += $input->readString($elem1368); - $this->success []= $elem1368; + $elem1375 = null; + $xfer += $input->readString($elem1375); + $this->success []= $elem1375; } $xfer += $input->readListEnd(); } else { @@ -48192,9 +48584,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1369) + foreach ($this->success as $iter1376) { - $xfer += $output->writeString($iter1369); + $xfer += $output->writeString($iter1376); } } $output->writeListEnd(); @@ -48833,14 +49225,14 @@ class ThriftHiveMetastore_get_master_keys_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) + $_size1377 = 0; + $_etype1380 = 0; + $xfer += $input->readListBegin($_etype1380, $_size1377); + for ($_i1381 = 0; $_i1381 < $_size1377; ++$_i1381) { - $elem1375 = null; - $xfer += $input->readString($elem1375); - $this->success []= $elem1375; + $elem1382 = null; + $xfer += $input->readString($elem1382); + $this->success []= $elem1382; } $xfer += $input->readListEnd(); } else { @@ -48868,9 +49260,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1376) + foreach ($this->success as $iter1383) { - $xfer += $output->writeString($iter1376); + $xfer += $output->writeString($iter1383); } } $output->writeListEnd(); @@ -52161,33 +52553,32 @@ class ThriftHiveMetastore_add_dynamic_partitions_result { } -class ThriftHiveMetastore_get_next_notification_args { +class ThriftHiveMetastore_find_next_compact_args { static $_TSPEC; /** - * @var \metastore\NotificationEventRequest + * @var string */ - public $rqst = null; + public $workerId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'rqst', - 'type' => TType::STRUCT, - 'class' => '\metastore\NotificationEventRequest', + 'var' => 'workerId', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['rqst'])) { - $this->rqst = $vals['rqst']; + if (isset($vals['workerId'])) { + $this->workerId = $vals['workerId']; } } } public function getName() { - return 'ThriftHiveMetastore_get_next_notification_args'; + return 'ThriftHiveMetastore_find_next_compact_args'; } public function read($input) @@ -52206,9 +52597,8 @@ class ThriftHiveMetastore_get_next_notification_args { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->rqst = new \metastore\NotificationEventRequest(); - $xfer += $this->rqst->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->workerId); } else { $xfer += $input->skip($ftype); } @@ -52225,13 +52615,10 @@ class ThriftHiveMetastore_get_next_notification_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_next_notification_args'); - if ($this->rqst !== null) { - if (!is_object($this->rqst)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('rqst', TType::STRUCT, 1); - $xfer += $this->rqst->write($output); + $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(); @@ -52241,13 +52628,17 @@ class ThriftHiveMetastore_get_next_notification_args { } -class ThriftHiveMetastore_get_next_notification_result { +class ThriftHiveMetastore_find_next_compact_result { static $_TSPEC; /** - * @var \metastore\NotificationEventResponse + * @var \metastore\OptionalCompactionInfoStruct */ public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -52255,7 +52646,12 @@ class ThriftHiveMetastore_get_next_notification_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => '\metastore\NotificationEventResponse', + 'class' => '\metastore\OptionalCompactionInfoStruct', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', ), ); } @@ -52263,11 +52659,14 @@ class ThriftHiveMetastore_get_next_notification_result { if (isset($vals['success'])) { $this->success = $vals['success']; } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } } } public function getName() { - return 'ThriftHiveMetastore_get_next_notification_result'; + return 'ThriftHiveMetastore_find_next_compact_result'; } public function read($input) @@ -52287,12 +52686,20 @@ class ThriftHiveMetastore_get_next_notification_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new \metastore\NotificationEventResponse(); + $this->success = new \metastore\OptionalCompactionInfoStruct(); $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; @@ -52305,7 +52712,7 @@ class ThriftHiveMetastore_get_next_notification_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_next_notification_result'); + $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); @@ -52314,6 +52721,11 @@ class ThriftHiveMetastore_get_next_notification_result { $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; @@ -52321,7 +52733,110 @@ class ThriftHiveMetastore_get_next_notification_result { } -class ThriftHiveMetastore_get_current_notificationEventId_args { +class ThriftHiveMetastore_update_compactor_state_args { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $cr = null; + /** + * @var int + */ + public $txn_id = 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' => 'txn_id', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cr'])) { + $this->cr = $vals['cr']; + } + if (isset($vals['txn_id'])) { + $this->txn_id = $vals['txn_id']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_update_compactor_state_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->txn_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_update_compactor_state_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->txn_id !== null) { + $xfer += $output->writeFieldBegin('txn_id', TType::I64, 2); + $xfer += $output->writeI64($this->txn_id); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_update_compactor_state_result { static $_TSPEC; @@ -52333,7 +52848,1017 @@ class ThriftHiveMetastore_get_current_notificationEventId_args { } public function getName() { - return 'ThriftHiveMetastore_get_current_notificationEventId_args'; + return 'ThriftHiveMetastore_update_compactor_state_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_update_compactor_state_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(); + $_size1384 = 0; + $_etype1387 = 0; + $xfer += $input->readListBegin($_etype1387, $_size1384); + for ($_i1388 = 0; $_i1388 < $_size1384; ++$_i1388) + { + $elem1389 = null; + $xfer += $input->readString($elem1389); + $this->success []= $elem1389; + } + $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 $iter1390) + { + $xfer += $output->writeString($iter1390); + } + } + $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; + } + +} + +class ThriftHiveMetastore_get_next_notification_args { + static $_TSPEC; + + /** + * @var \metastore\NotificationEventRequest + */ + public $rqst = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'rqst', + 'type' => TType::STRUCT, + 'class' => '\metastore\NotificationEventRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['rqst'])) { + $this->rqst = $vals['rqst']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_next_notification_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->rqst = new \metastore\NotificationEventRequest(); + $xfer += $this->rqst->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_next_notification_args'); + if ($this->rqst !== null) { + if (!is_object($this->rqst)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('rqst', TType::STRUCT, 1); + $xfer += $this->rqst->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_next_notification_result { + static $_TSPEC; + + /** + * @var \metastore\NotificationEventResponse + */ + public $success = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\NotificationEventResponse', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_next_notification_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\NotificationEventResponse(); + $xfer += $this->success->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_next_notification_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(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_current_notificationEventId_args { + static $_TSPEC; + + + public function __construct() { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + ); + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_current_notificationEventId_args'; } public function read($input) @@ -59699,15 +61224,15 @@ class ThriftHiveMetastore_get_schema_all_versions_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) + $_size1391 = 0; + $_etype1394 = 0; + $xfer += $input->readListBegin($_etype1394, $_size1391); + for ($_i1395 = 0; $_i1395 < $_size1391; ++$_i1395) { - $elem1382 = null; - $elem1382 = new \metastore\SchemaVersion(); - $xfer += $elem1382->read($input); - $this->success []= $elem1382; + $elem1396 = null; + $elem1396 = new \metastore\SchemaVersion(); + $xfer += $elem1396->read($input); + $this->success []= $elem1396; } $xfer += $input->readListEnd(); } else { @@ -59751,9 +61276,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1383) + foreach ($this->success as $iter1397) { - $xfer += $iter1383->write($output); + $xfer += $iter1397->write($output); } } $output->writeListEnd(); @@ -61622,15 +63147,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1384 = 0; - $_etype1387 = 0; - $xfer += $input->readListBegin($_etype1387, $_size1384); - for ($_i1388 = 0; $_i1388 < $_size1384; ++$_i1388) + $_size1398 = 0; + $_etype1401 = 0; + $xfer += $input->readListBegin($_etype1401, $_size1398); + for ($_i1402 = 0; $_i1402 < $_size1398; ++$_i1402) { - $elem1389 = null; - $elem1389 = new \metastore\RuntimeStat(); - $xfer += $elem1389->read($input); - $this->success []= $elem1389; + $elem1403 = null; + $elem1403 = new \metastore\RuntimeStat(); + $xfer += $elem1403->read($input); + $this->success []= $elem1403; } $xfer += $input->readListEnd(); } else { @@ -61666,9 +63191,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1390) + foreach ($this->success as $iter1404) { - $xfer += $iter1390->write($output); + $xfer += $iter1404->write($output); } } $output->writeListEnd(); 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 48396eaca8..2953a8f327 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 @@ -21081,6 +21081,414 @@ class CompactionRequest { } +class OptionalCompactionInfoStruct { + static $_TSPEC; + + /** + * @var \metastore\CompactionInfoStruct + */ + public $ci = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'ci', + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['ci'])) { + $this->ci = $vals['ci']; + } + } + } + + public function getName() { + return 'OptionalCompactionInfoStruct'; + } + + 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->ci = new \metastore\CompactionInfoStruct(); + $xfer += $this->ci->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('OptionalCompactionInfoStruct'); + if ($this->ci !== null) { + if (!is_object($this->ci)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('ci', TType::STRUCT, 1); + $xfer += $this->ci->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +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 string + */ + public $properties = null; + /** + * @var bool + */ + public $toomanyaborts = null; + /** + * @var string + */ + public $state = null; + /** + * @var string + */ + public $workerId = null; + /** + * @var int + */ + public $start = null; + /** + * @var int + */ + public $highestWriteId = 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::STRING, + ), + 8 => array( + 'var' => 'toomanyaborts', + 'type' => TType::BOOL, + ), + 9 => array( + 'var' => 'state', + 'type' => TType::STRING, + ), + 10 => array( + 'var' => 'workerId', + 'type' => TType::STRING, + ), + 11 => array( + 'var' => 'start', + 'type' => TType::I64, + ), + 12 => array( + 'var' => 'highestWriteId', + 'type' => TType::I64, + ), + ); + } + 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']; + } + if (isset($vals['toomanyaborts'])) { + $this->toomanyaborts = $vals['toomanyaborts']; + } + if (isset($vals['state'])) { + $this->state = $vals['state']; + } + if (isset($vals['workerId'])) { + $this->workerId = $vals['workerId']; + } + if (isset($vals['start'])) { + $this->start = $vals['start']; + } + if (isset($vals['highestWriteId'])) { + $this->highestWriteId = $vals['highestWriteId']; + } + } + } + + 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::STRING) { + $xfer += $input->readString($this->properties); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->toomanyaborts); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->state); + } else { + $xfer += $input->skip($ftype); + } + break; + case 10: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->workerId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 11: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->start); + } else { + $xfer += $input->skip($ftype); + } + break; + case 12: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->highestWriteId); + } 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) { + $xfer += $output->writeFieldBegin('properties', TType::STRING, 7); + $xfer += $output->writeString($this->properties); + $xfer += $output->writeFieldEnd(); + } + if ($this->toomanyaborts !== null) { + $xfer += $output->writeFieldBegin('toomanyaborts', TType::BOOL, 8); + $xfer += $output->writeBool($this->toomanyaborts); + $xfer += $output->writeFieldEnd(); + } + if ($this->state !== null) { + $xfer += $output->writeFieldBegin('state', TType::STRING, 9); + $xfer += $output->writeString($this->state); + $xfer += $output->writeFieldEnd(); + } + if ($this->workerId !== null) { + $xfer += $output->writeFieldBegin('workerId', TType::STRING, 10); + $xfer += $output->writeString($this->workerId); + $xfer += $output->writeFieldEnd(); + } + if ($this->start !== null) { + $xfer += $output->writeFieldBegin('start', TType::I64, 11); + $xfer += $output->writeI64($this->start); + $xfer += $output->writeFieldEnd(); + } + if ($this->highestWriteId !== null) { + $xfer += $output->writeFieldBegin('highestWriteId', TType::I64, 12); + $xfer += $output->writeI64($this->highestWriteId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class CompactionResponse { static $_TSPEC; @@ -22422,14 +22830,14 @@ class NotificationEventRequest { case 3: if ($ftype == TType::LST) { $this->eventTypeSkipList = array(); - $_size647 = 0; - $_etype650 = 0; - $xfer += $input->readListBegin($_etype650, $_size647); - for ($_i651 = 0; $_i651 < $_size647; ++$_i651) + $_size654 = 0; + $_etype657 = 0; + $xfer += $input->readListBegin($_etype657, $_size654); + for ($_i658 = 0; $_i658 < $_size654; ++$_i658) { - $elem652 = null; - $xfer += $input->readString($elem652); - $this->eventTypeSkipList []= $elem652; + $elem659 = null; + $xfer += $input->readString($elem659); + $this->eventTypeSkipList []= $elem659; } $xfer += $input->readListEnd(); } else { @@ -22467,9 +22875,9 @@ class NotificationEventRequest { { $output->writeListBegin(TType::STRING, count($this->eventTypeSkipList)); { - foreach ($this->eventTypeSkipList as $iter653) + foreach ($this->eventTypeSkipList as $iter660) { - $xfer += $output->writeString($iter653); + $xfer += $output->writeString($iter660); } } $output->writeListEnd(); @@ -22770,15 +23178,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size654 = 0; - $_etype657 = 0; - $xfer += $input->readListBegin($_etype657, $_size654); - for ($_i658 = 0; $_i658 < $_size654; ++$_i658) + $_size661 = 0; + $_etype664 = 0; + $xfer += $input->readListBegin($_etype664, $_size661); + for ($_i665 = 0; $_i665 < $_size661; ++$_i665) { - $elem659 = null; - $elem659 = new \metastore\NotificationEvent(); - $xfer += $elem659->read($input); - $this->events []= $elem659; + $elem666 = null; + $elem666 = new \metastore\NotificationEvent(); + $xfer += $elem666->read($input); + $this->events []= $elem666; } $xfer += $input->readListEnd(); } else { @@ -22806,9 +23214,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter660) + foreach ($this->events as $iter667) { - $xfer += $iter660->write($output); + $xfer += $iter667->write($output); } } $output->writeListEnd(); @@ -23237,14 +23645,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size661 = 0; - $_etype664 = 0; - $xfer += $input->readListBegin($_etype664, $_size661); - for ($_i665 = 0; $_i665 < $_size661; ++$_i665) + $_size668 = 0; + $_etype671 = 0; + $xfer += $input->readListBegin($_etype671, $_size668); + for ($_i672 = 0; $_i672 < $_size668; ++$_i672) { - $elem666 = null; - $xfer += $input->readString($elem666); - $this->filesAdded []= $elem666; + $elem673 = null; + $xfer += $input->readString($elem673); + $this->filesAdded []= $elem673; } $xfer += $input->readListEnd(); } else { @@ -23254,14 +23662,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size667 = 0; - $_etype670 = 0; - $xfer += $input->readListBegin($_etype670, $_size667); - for ($_i671 = 0; $_i671 < $_size667; ++$_i671) + $_size674 = 0; + $_etype677 = 0; + $xfer += $input->readListBegin($_etype677, $_size674); + for ($_i678 = 0; $_i678 < $_size674; ++$_i678) { - $elem672 = null; - $xfer += $input->readString($elem672); - $this->filesAddedChecksum []= $elem672; + $elem679 = null; + $xfer += $input->readString($elem679); + $this->filesAddedChecksum []= $elem679; } $xfer += $input->readListEnd(); } else { @@ -23271,14 +23679,14 @@ class InsertEventRequestData { case 4: if ($ftype == TType::LST) { $this->subDirectoryList = array(); - $_size673 = 0; - $_etype676 = 0; - $xfer += $input->readListBegin($_etype676, $_size673); - for ($_i677 = 0; $_i677 < $_size673; ++$_i677) + $_size680 = 0; + $_etype683 = 0; + $xfer += $input->readListBegin($_etype683, $_size680); + for ($_i684 = 0; $_i684 < $_size680; ++$_i684) { - $elem678 = null; - $xfer += $input->readString($elem678); - $this->subDirectoryList []= $elem678; + $elem685 = null; + $xfer += $input->readString($elem685); + $this->subDirectoryList []= $elem685; } $xfer += $input->readListEnd(); } else { @@ -23311,9 +23719,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter679) + foreach ($this->filesAdded as $iter686) { - $xfer += $output->writeString($iter679); + $xfer += $output->writeString($iter686); } } $output->writeListEnd(); @@ -23328,9 +23736,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter680) + foreach ($this->filesAddedChecksum as $iter687) { - $xfer += $output->writeString($iter680); + $xfer += $output->writeString($iter687); } } $output->writeListEnd(); @@ -23345,9 +23753,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->subDirectoryList)); { - foreach ($this->subDirectoryList as $iter681) + foreach ($this->subDirectoryList as $iter688) { - $xfer += $output->writeString($iter681); + $xfer += $output->writeString($iter688); } } $output->writeListEnd(); @@ -23576,14 +23984,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size682 = 0; - $_etype685 = 0; - $xfer += $input->readListBegin($_etype685, $_size682); - for ($_i686 = 0; $_i686 < $_size682; ++$_i686) + $_size689 = 0; + $_etype692 = 0; + $xfer += $input->readListBegin($_etype692, $_size689); + for ($_i693 = 0; $_i693 < $_size689; ++$_i693) { - $elem687 = null; - $xfer += $input->readString($elem687); - $this->partitionVals []= $elem687; + $elem694 = null; + $xfer += $input->readString($elem694); + $this->partitionVals []= $elem694; } $xfer += $input->readListEnd(); } else { @@ -23641,9 +24049,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter688) + foreach ($this->partitionVals as $iter695) { - $xfer += $output->writeString($iter688); + $xfer += $output->writeString($iter695); } } $output->writeListEnd(); @@ -23854,14 +24262,14 @@ class WriteNotificationLogRequest { case 6: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size689 = 0; - $_etype692 = 0; - $xfer += $input->readListBegin($_etype692, $_size689); - for ($_i693 = 0; $_i693 < $_size689; ++$_i693) + $_size696 = 0; + $_etype699 = 0; + $xfer += $input->readListBegin($_etype699, $_size696); + for ($_i700 = 0; $_i700 < $_size696; ++$_i700) { - $elem694 = null; - $xfer += $input->readString($elem694); - $this->partitionVals []= $elem694; + $elem701 = null; + $xfer += $input->readString($elem701); + $this->partitionVals []= $elem701; } $xfer += $input->readListEnd(); } else { @@ -23917,9 +24325,9 @@ class WriteNotificationLogRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter695) + foreach ($this->partitionVals as $iter702) { - $xfer += $output->writeString($iter695); + $xfer += $output->writeString($iter702); } } $output->writeListEnd(); @@ -24147,18 +24555,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size696 = 0; - $_ktype697 = 0; - $_vtype698 = 0; - $xfer += $input->readMapBegin($_ktype697, $_vtype698, $_size696); - for ($_i700 = 0; $_i700 < $_size696; ++$_i700) + $_size703 = 0; + $_ktype704 = 0; + $_vtype705 = 0; + $xfer += $input->readMapBegin($_ktype704, $_vtype705, $_size703); + for ($_i707 = 0; $_i707 < $_size703; ++$_i707) { - $key701 = 0; - $val702 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key701); - $val702 = new \metastore\MetadataPpdResult(); - $xfer += $val702->read($input); - $this->metadata[$key701] = $val702; + $key708 = 0; + $val709 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key708); + $val709 = new \metastore\MetadataPpdResult(); + $xfer += $val709->read($input); + $this->metadata[$key708] = $val709; } $xfer += $input->readMapEnd(); } else { @@ -24193,10 +24601,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter703 => $viter704) + foreach ($this->metadata as $kiter710 => $viter711) { - $xfer += $output->writeI64($kiter703); - $xfer += $viter704->write($output); + $xfer += $output->writeI64($kiter710); + $xfer += $viter711->write($output); } } $output->writeMapEnd(); @@ -24298,14 +24706,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size705 = 0; - $_etype708 = 0; - $xfer += $input->readListBegin($_etype708, $_size705); - for ($_i709 = 0; $_i709 < $_size705; ++$_i709) + $_size712 = 0; + $_etype715 = 0; + $xfer += $input->readListBegin($_etype715, $_size712); + for ($_i716 = 0; $_i716 < $_size712; ++$_i716) { - $elem710 = null; - $xfer += $input->readI64($elem710); - $this->fileIds []= $elem710; + $elem717 = null; + $xfer += $input->readI64($elem717); + $this->fileIds []= $elem717; } $xfer += $input->readListEnd(); } else { @@ -24354,9 +24762,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter711) + foreach ($this->fileIds as $iter718) { - $xfer += $output->writeI64($iter711); + $xfer += $output->writeI64($iter718); } } $output->writeListEnd(); @@ -24450,17 +24858,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size712 = 0; - $_ktype713 = 0; - $_vtype714 = 0; - $xfer += $input->readMapBegin($_ktype713, $_vtype714, $_size712); - for ($_i716 = 0; $_i716 < $_size712; ++$_i716) + $_size719 = 0; + $_ktype720 = 0; + $_vtype721 = 0; + $xfer += $input->readMapBegin($_ktype720, $_vtype721, $_size719); + for ($_i723 = 0; $_i723 < $_size719; ++$_i723) { - $key717 = 0; - $val718 = ''; - $xfer += $input->readI64($key717); - $xfer += $input->readString($val718); - $this->metadata[$key717] = $val718; + $key724 = 0; + $val725 = ''; + $xfer += $input->readI64($key724); + $xfer += $input->readString($val725); + $this->metadata[$key724] = $val725; } $xfer += $input->readMapEnd(); } else { @@ -24495,10 +24903,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter719 => $viter720) + foreach ($this->metadata as $kiter726 => $viter727) { - $xfer += $output->writeI64($kiter719); - $xfer += $output->writeString($viter720); + $xfer += $output->writeI64($kiter726); + $xfer += $output->writeString($viter727); } } $output->writeMapEnd(); @@ -24567,14 +24975,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size721 = 0; - $_etype724 = 0; - $xfer += $input->readListBegin($_etype724, $_size721); - for ($_i725 = 0; $_i725 < $_size721; ++$_i725) + $_size728 = 0; + $_etype731 = 0; + $xfer += $input->readListBegin($_etype731, $_size728); + for ($_i732 = 0; $_i732 < $_size728; ++$_i732) { - $elem726 = null; - $xfer += $input->readI64($elem726); - $this->fileIds []= $elem726; + $elem733 = null; + $xfer += $input->readI64($elem733); + $this->fileIds []= $elem733; } $xfer += $input->readListEnd(); } else { @@ -24602,9 +25010,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter727) + foreach ($this->fileIds as $iter734) { - $xfer += $output->writeI64($iter727); + $xfer += $output->writeI64($iter734); } } $output->writeListEnd(); @@ -24744,14 +25152,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size728 = 0; - $_etype731 = 0; - $xfer += $input->readListBegin($_etype731, $_size728); - for ($_i732 = 0; $_i732 < $_size728; ++$_i732) + $_size735 = 0; + $_etype738 = 0; + $xfer += $input->readListBegin($_etype738, $_size735); + for ($_i739 = 0; $_i739 < $_size735; ++$_i739) { - $elem733 = null; - $xfer += $input->readI64($elem733); - $this->fileIds []= $elem733; + $elem740 = null; + $xfer += $input->readI64($elem740); + $this->fileIds []= $elem740; } $xfer += $input->readListEnd(); } else { @@ -24761,14 +25169,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size734 = 0; - $_etype737 = 0; - $xfer += $input->readListBegin($_etype737, $_size734); - for ($_i738 = 0; $_i738 < $_size734; ++$_i738) + $_size741 = 0; + $_etype744 = 0; + $xfer += $input->readListBegin($_etype744, $_size741); + for ($_i745 = 0; $_i745 < $_size741; ++$_i745) { - $elem739 = null; - $xfer += $input->readString($elem739); - $this->metadata []= $elem739; + $elem746 = null; + $xfer += $input->readString($elem746); + $this->metadata []= $elem746; } $xfer += $input->readListEnd(); } else { @@ -24803,9 +25211,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter740) + foreach ($this->fileIds as $iter747) { - $xfer += $output->writeI64($iter740); + $xfer += $output->writeI64($iter747); } } $output->writeListEnd(); @@ -24820,9 +25228,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter741) + foreach ($this->metadata as $iter748) { - $xfer += $output->writeString($iter741); + $xfer += $output->writeString($iter748); } } $output->writeListEnd(); @@ -24941,14 +25349,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size742 = 0; - $_etype745 = 0; - $xfer += $input->readListBegin($_etype745, $_size742); - for ($_i746 = 0; $_i746 < $_size742; ++$_i746) + $_size749 = 0; + $_etype752 = 0; + $xfer += $input->readListBegin($_etype752, $_size749); + for ($_i753 = 0; $_i753 < $_size749; ++$_i753) { - $elem747 = null; - $xfer += $input->readI64($elem747); - $this->fileIds []= $elem747; + $elem754 = null; + $xfer += $input->readI64($elem754); + $this->fileIds []= $elem754; } $xfer += $input->readListEnd(); } else { @@ -24976,9 +25384,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter748) + foreach ($this->fileIds as $iter755) { - $xfer += $output->writeI64($iter748); + $xfer += $output->writeI64($iter755); } } $output->writeListEnd(); @@ -25262,15 +25670,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size749 = 0; - $_etype752 = 0; - $xfer += $input->readListBegin($_etype752, $_size749); - for ($_i753 = 0; $_i753 < $_size749; ++$_i753) + $_size756 = 0; + $_etype759 = 0; + $xfer += $input->readListBegin($_etype759, $_size756); + for ($_i760 = 0; $_i760 < $_size756; ++$_i760) { - $elem754 = null; - $elem754 = new \metastore\Function(); - $xfer += $elem754->read($input); - $this->functions []= $elem754; + $elem761 = null; + $elem761 = new \metastore\Function(); + $xfer += $elem761->read($input); + $this->functions []= $elem761; } $xfer += $input->readListEnd(); } else { @@ -25298,9 +25706,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter755) + foreach ($this->functions as $iter762) { - $xfer += $iter755->write($output); + $xfer += $iter762->write($output); } } $output->writeListEnd(); @@ -25364,14 +25772,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size756 = 0; - $_etype759 = 0; - $xfer += $input->readListBegin($_etype759, $_size756); - for ($_i760 = 0; $_i760 < $_size756; ++$_i760) + $_size763 = 0; + $_etype766 = 0; + $xfer += $input->readListBegin($_etype766, $_size763); + for ($_i767 = 0; $_i767 < $_size763; ++$_i767) { - $elem761 = null; - $xfer += $input->readI32($elem761); - $this->values []= $elem761; + $elem768 = null; + $xfer += $input->readI32($elem768); + $this->values []= $elem768; } $xfer += $input->readListEnd(); } else { @@ -25399,9 +25807,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter762) + foreach ($this->values as $iter769) { - $xfer += $output->writeI32($iter762); + $xfer += $output->writeI32($iter769); } } $output->writeListEnd(); @@ -25781,14 +26189,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size763 = 0; - $_etype766 = 0; - $xfer += $input->readListBegin($_etype766, $_size763); - for ($_i767 = 0; $_i767 < $_size763; ++$_i767) + $_size770 = 0; + $_etype773 = 0; + $xfer += $input->readListBegin($_etype773, $_size770); + for ($_i774 = 0; $_i774 < $_size770; ++$_i774) { - $elem768 = null; - $xfer += $input->readString($elem768); - $this->tblNames []= $elem768; + $elem775 = null; + $xfer += $input->readString($elem775); + $this->tblNames []= $elem775; } $xfer += $input->readListEnd(); } else { @@ -25836,9 +26244,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter769) + foreach ($this->tblNames as $iter776) { - $xfer += $output->writeString($iter769); + $xfer += $output->writeString($iter776); } } $output->writeListEnd(); @@ -25916,15 +26324,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size770 = 0; - $_etype773 = 0; - $xfer += $input->readListBegin($_etype773, $_size770); - for ($_i774 = 0; $_i774 < $_size770; ++$_i774) + $_size777 = 0; + $_etype780 = 0; + $xfer += $input->readListBegin($_etype780, $_size777); + for ($_i781 = 0; $_i781 < $_size777; ++$_i781) { - $elem775 = null; - $elem775 = new \metastore\Table(); - $xfer += $elem775->read($input); - $this->tables []= $elem775; + $elem782 = null; + $elem782 = new \metastore\Table(); + $xfer += $elem782->read($input); + $this->tables []= $elem782; } $xfer += $input->readListEnd(); } else { @@ -25952,9 +26360,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter776) + foreach ($this->tables as $iter783) { - $xfer += $iter776->write($output); + $xfer += $iter783->write($output); } } $output->writeListEnd(); @@ -27761,15 +28169,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size777 = 0; - $_etype780 = 0; - $xfer += $input->readListBegin($_etype780, $_size777); - for ($_i781 = 0; $_i781 < $_size777; ++$_i781) + $_size784 = 0; + $_etype787 = 0; + $xfer += $input->readListBegin($_etype787, $_size784); + for ($_i788 = 0; $_i788 < $_size784; ++$_i788) { - $elem782 = null; - $elem782 = new \metastore\WMPool(); - $xfer += $elem782->read($input); - $this->pools []= $elem782; + $elem789 = null; + $elem789 = new \metastore\WMPool(); + $xfer += $elem789->read($input); + $this->pools []= $elem789; } $xfer += $input->readListEnd(); } else { @@ -27779,15 +28187,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size783 = 0; - $_etype786 = 0; - $xfer += $input->readListBegin($_etype786, $_size783); - for ($_i787 = 0; $_i787 < $_size783; ++$_i787) + $_size790 = 0; + $_etype793 = 0; + $xfer += $input->readListBegin($_etype793, $_size790); + for ($_i794 = 0; $_i794 < $_size790; ++$_i794) { - $elem788 = null; - $elem788 = new \metastore\WMMapping(); - $xfer += $elem788->read($input); - $this->mappings []= $elem788; + $elem795 = null; + $elem795 = new \metastore\WMMapping(); + $xfer += $elem795->read($input); + $this->mappings []= $elem795; } $xfer += $input->readListEnd(); } else { @@ -27797,15 +28205,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size789 = 0; - $_etype792 = 0; - $xfer += $input->readListBegin($_etype792, $_size789); - for ($_i793 = 0; $_i793 < $_size789; ++$_i793) + $_size796 = 0; + $_etype799 = 0; + $xfer += $input->readListBegin($_etype799, $_size796); + for ($_i800 = 0; $_i800 < $_size796; ++$_i800) { - $elem794 = null; - $elem794 = new \metastore\WMTrigger(); - $xfer += $elem794->read($input); - $this->triggers []= $elem794; + $elem801 = null; + $elem801 = new \metastore\WMTrigger(); + $xfer += $elem801->read($input); + $this->triggers []= $elem801; } $xfer += $input->readListEnd(); } else { @@ -27815,15 +28223,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size795 = 0; - $_etype798 = 0; - $xfer += $input->readListBegin($_etype798, $_size795); - for ($_i799 = 0; $_i799 < $_size795; ++$_i799) + $_size802 = 0; + $_etype805 = 0; + $xfer += $input->readListBegin($_etype805, $_size802); + for ($_i806 = 0; $_i806 < $_size802; ++$_i806) { - $elem800 = null; - $elem800 = new \metastore\WMPoolTrigger(); - $xfer += $elem800->read($input); - $this->poolTriggers []= $elem800; + $elem807 = null; + $elem807 = new \metastore\WMPoolTrigger(); + $xfer += $elem807->read($input); + $this->poolTriggers []= $elem807; } $xfer += $input->readListEnd(); } else { @@ -27859,9 +28267,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter801) + foreach ($this->pools as $iter808) { - $xfer += $iter801->write($output); + $xfer += $iter808->write($output); } } $output->writeListEnd(); @@ -27876,9 +28284,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter802) + foreach ($this->mappings as $iter809) { - $xfer += $iter802->write($output); + $xfer += $iter809->write($output); } } $output->writeListEnd(); @@ -27893,9 +28301,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter803) + foreach ($this->triggers as $iter810) { - $xfer += $iter803->write($output); + $xfer += $iter810->write($output); } } $output->writeListEnd(); @@ -27910,9 +28318,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter804) + foreach ($this->poolTriggers as $iter811) { - $xfer += $iter804->write($output); + $xfer += $iter811->write($output); } } $output->writeListEnd(); @@ -28538,15 +28946,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size805 = 0; - $_etype808 = 0; - $xfer += $input->readListBegin($_etype808, $_size805); - for ($_i809 = 0; $_i809 < $_size805; ++$_i809) + $_size812 = 0; + $_etype815 = 0; + $xfer += $input->readListBegin($_etype815, $_size812); + for ($_i816 = 0; $_i816 < $_size812; ++$_i816) { - $elem810 = null; - $elem810 = new \metastore\WMResourcePlan(); - $xfer += $elem810->read($input); - $this->resourcePlans []= $elem810; + $elem817 = null; + $elem817 = new \metastore\WMResourcePlan(); + $xfer += $elem817->read($input); + $this->resourcePlans []= $elem817; } $xfer += $input->readListEnd(); } else { @@ -28574,9 +28982,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter811) + foreach ($this->resourcePlans as $iter818) { - $xfer += $iter811->write($output); + $xfer += $iter818->write($output); } } $output->writeListEnd(); @@ -29028,14 +29436,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size812 = 0; - $_etype815 = 0; - $xfer += $input->readListBegin($_etype815, $_size812); - for ($_i816 = 0; $_i816 < $_size812; ++$_i816) + $_size819 = 0; + $_etype822 = 0; + $xfer += $input->readListBegin($_etype822, $_size819); + for ($_i823 = 0; $_i823 < $_size819; ++$_i823) { - $elem817 = null; - $xfer += $input->readString($elem817); - $this->errors []= $elem817; + $elem824 = null; + $xfer += $input->readString($elem824); + $this->errors []= $elem824; } $xfer += $input->readListEnd(); } else { @@ -29045,14 +29453,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size818 = 0; - $_etype821 = 0; - $xfer += $input->readListBegin($_etype821, $_size818); - for ($_i822 = 0; $_i822 < $_size818; ++$_i822) + $_size825 = 0; + $_etype828 = 0; + $xfer += $input->readListBegin($_etype828, $_size825); + for ($_i829 = 0; $_i829 < $_size825; ++$_i829) { - $elem823 = null; - $xfer += $input->readString($elem823); - $this->warnings []= $elem823; + $elem830 = null; + $xfer += $input->readString($elem830); + $this->warnings []= $elem830; } $xfer += $input->readListEnd(); } else { @@ -29080,9 +29488,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter824) + foreach ($this->errors as $iter831) { - $xfer += $output->writeString($iter824); + $xfer += $output->writeString($iter831); } } $output->writeListEnd(); @@ -29097,9 +29505,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter825) + foreach ($this->warnings as $iter832) { - $xfer += $output->writeString($iter825); + $xfer += $output->writeString($iter832); } } $output->writeListEnd(); @@ -29841,15 +30249,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size826 = 0; - $_etype829 = 0; - $xfer += $input->readListBegin($_etype829, $_size826); - for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem831 = null; - $elem831 = new \metastore\WMTrigger(); - $xfer += $elem831->read($input); - $this->triggers []= $elem831; + $elem838 = null; + $elem838 = new \metastore\WMTrigger(); + $xfer += $elem838->read($input); + $this->triggers []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -29877,9 +30285,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter832) + foreach ($this->triggers as $iter839) { - $xfer += $iter832->write($output); + $xfer += $iter839->write($output); } } $output->writeListEnd(); @@ -31509,15 +31917,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size833 = 0; - $_etype836 = 0; - $xfer += $input->readListBegin($_etype836, $_size833); - for ($_i837 = 0; $_i837 < $_size833; ++$_i837) + $_size840 = 0; + $_etype843 = 0; + $xfer += $input->readListBegin($_etype843, $_size840); + for ($_i844 = 0; $_i844 < $_size840; ++$_i844) { - $elem838 = null; - $elem838 = new \metastore\FieldSchema(); - $xfer += $elem838->read($input); - $this->cols []= $elem838; + $elem845 = null; + $elem845 = new \metastore\FieldSchema(); + $xfer += $elem845->read($input); + $this->cols []= $elem845; } $xfer += $input->readListEnd(); } else { @@ -31606,9 +32014,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter839) + foreach ($this->cols as $iter846) { - $xfer += $iter839->write($output); + $xfer += $iter846->write($output); } } $output->writeListEnd(); @@ -31930,15 +32338,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size840 = 0; - $_etype843 = 0; - $xfer += $input->readListBegin($_etype843, $_size840); - for ($_i844 = 0; $_i844 < $_size840; ++$_i844) + $_size847 = 0; + $_etype850 = 0; + $xfer += $input->readListBegin($_etype850, $_size847); + for ($_i851 = 0; $_i851 < $_size847; ++$_i851) { - $elem845 = null; - $elem845 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem845->read($input); - $this->schemaVersions []= $elem845; + $elem852 = null; + $elem852 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem852->read($input); + $this->schemaVersions []= $elem852; } $xfer += $input->readListEnd(); } else { @@ -31966,9 +32374,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter846) + foreach ($this->schemaVersions as $iter853) { - $xfer += $iter846->write($output); + $xfer += $iter853->write($output); } } $output->writeListEnd(); @@ -32621,15 +33029,15 @@ class AlterPartitionsRequest { case 4: if ($ftype == TType::LST) { $this->partitions = array(); - $_size847 = 0; - $_etype850 = 0; - $xfer += $input->readListBegin($_etype850, $_size847); - for ($_i851 = 0; $_i851 < $_size847; ++$_i851) + $_size854 = 0; + $_etype857 = 0; + $xfer += $input->readListBegin($_etype857, $_size854); + for ($_i858 = 0; $_i858 < $_size854; ++$_i858) { - $elem852 = null; - $elem852 = new \metastore\Partition(); - $xfer += $elem852->read($input); - $this->partitions []= $elem852; + $elem859 = null; + $elem859 = new \metastore\Partition(); + $xfer += $elem859->read($input); + $this->partitions []= $elem859; } $xfer += $input->readListEnd(); } else { @@ -32694,9 +33102,9 @@ class AlterPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter853) + foreach ($this->partitions as $iter860) { - $xfer += $iter853->write($output); + $xfer += $iter860->write($output); } } $output->writeListEnd(); @@ -32905,14 +33313,14 @@ class RenamePartitionRequest { case 4: if ($ftype == TType::LST) { $this->partVals = array(); - $_size854 = 0; - $_etype857 = 0; - $xfer += $input->readListBegin($_etype857, $_size854); - for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + $_size861 = 0; + $_etype864 = 0; + $xfer += $input->readListBegin($_etype864, $_size861); + for ($_i865 = 0; $_i865 < $_size861; ++$_i865) { - $elem859 = null; - $xfer += $input->readString($elem859); - $this->partVals []= $elem859; + $elem866 = null; + $xfer += $input->readString($elem866); + $this->partVals []= $elem866; } $xfer += $input->readListEnd(); } else { @@ -32970,9 +33378,9 @@ class RenamePartitionRequest { { $output->writeListBegin(TType::STRING, count($this->partVals)); { - foreach ($this->partVals as $iter860) + foreach ($this->partVals as $iter867) { - $xfer += $output->writeString($iter860); + $xfer += $output->writeString($iter867); } } $output->writeListEnd(); @@ -33394,14 +33802,14 @@ class GetPartitionsProjectionSpec { case 1: if ($ftype == TType::LST) { $this->fieldList = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size868 = 0; + $_etype871 = 0; + $xfer += $input->readListBegin($_etype871, $_size868); + for ($_i872 = 0; $_i872 < $_size868; ++$_i872) { - $elem866 = null; - $xfer += $input->readString($elem866); - $this->fieldList []= $elem866; + $elem873 = null; + $xfer += $input->readString($elem873); + $this->fieldList []= $elem873; } $xfer += $input->readListEnd(); } else { @@ -33443,9 +33851,9 @@ class GetPartitionsProjectionSpec { { $output->writeListBegin(TType::STRING, count($this->fieldList)); { - foreach ($this->fieldList as $iter867) + foreach ($this->fieldList as $iter874) { - $xfer += $output->writeString($iter867); + $xfer += $output->writeString($iter874); } } $output->writeListEnd(); @@ -33537,14 +33945,14 @@ class GetPartitionsFilterSpec { case 8: if ($ftype == TType::LST) { $this->filters = array(); - $_size868 = 0; - $_etype871 = 0; - $xfer += $input->readListBegin($_etype871, $_size868); - for ($_i872 = 0; $_i872 < $_size868; ++$_i872) + $_size875 = 0; + $_etype878 = 0; + $xfer += $input->readListBegin($_etype878, $_size875); + for ($_i879 = 0; $_i879 < $_size875; ++$_i879) { - $elem873 = null; - $xfer += $input->readString($elem873); - $this->filters []= $elem873; + $elem880 = null; + $xfer += $input->readString($elem880); + $this->filters []= $elem880; } $xfer += $input->readListEnd(); } else { @@ -33577,9 +33985,9 @@ class GetPartitionsFilterSpec { { $output->writeListBegin(TType::STRING, count($this->filters)); { - foreach ($this->filters as $iter874) + foreach ($this->filters as $iter881) { - $xfer += $output->writeString($iter874); + $xfer += $output->writeString($iter881); } } $output->writeListEnd(); @@ -33644,15 +34052,15 @@ class GetPartitionsResponse { case 1: if ($ftype == TType::LST) { $this->partitionSpec = array(); - $_size875 = 0; - $_etype878 = 0; - $xfer += $input->readListBegin($_etype878, $_size875); - for ($_i879 = 0; $_i879 < $_size875; ++$_i879) + $_size882 = 0; + $_etype885 = 0; + $xfer += $input->readListBegin($_etype885, $_size882); + for ($_i886 = 0; $_i886 < $_size882; ++$_i886) { - $elem880 = null; - $elem880 = new \metastore\PartitionSpec(); - $xfer += $elem880->read($input); - $this->partitionSpec []= $elem880; + $elem887 = null; + $elem887 = new \metastore\PartitionSpec(); + $xfer += $elem887->read($input); + $this->partitionSpec []= $elem887; } $xfer += $input->readListEnd(); } else { @@ -33680,9 +34088,9 @@ class GetPartitionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionSpec)); { - foreach ($this->partitionSpec as $iter881) + foreach ($this->partitionSpec as $iter888) { - $xfer += $iter881->write($output); + $xfer += $iter888->write($output); } } $output->writeListEnd(); @@ -33860,14 +34268,14 @@ class GetPartitionsRequest { case 6: if ($ftype == TType::LST) { $this->groupNames = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size889 = 0; + $_etype892 = 0; + $xfer += $input->readListBegin($_etype892, $_size889); + for ($_i893 = 0; $_i893 < $_size889; ++$_i893) { - $elem887 = null; - $xfer += $input->readString($elem887); - $this->groupNames []= $elem887; + $elem894 = null; + $xfer += $input->readString($elem894); + $this->groupNames []= $elem894; } $xfer += $input->readListEnd(); } else { @@ -33936,9 +34344,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->groupNames)); { - foreach ($this->groupNames as $iter888) + foreach ($this->groupNames as $iter895) { - $xfer += $output->writeString($iter888); + $xfer += $output->writeString($iter895); } } $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..ba06c54371 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 @@ -190,6 +190,13 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' CompactionResponse compact2(CompactionRequest rqst)') print(' ShowCompactResponse show_compact(ShowCompactRequest rqst)') print(' void add_dynamic_partitions(AddDynamicPartitions rqst)') + print(' OptionalCompactionInfoStruct find_next_compact(string workerId)') + print(' void update_compactor_state(CompactionInfoStruct cr, i64 txn_id)') + 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(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)') print(' CurrentNotificationEventId get_current_notificationEventId()') print(' NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst)') @@ -1304,6 +1311,48 @@ elif cmd == 'add_dynamic_partitions': sys.exit(1) pp.pprint(client.add_dynamic_partitions(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 == 'update_compactor_state': + if len(args) != 2: + print('update_compactor_state requires 2 args') + sys.exit(1) + pp.pprint(client.update_compactor_state(eval(args[0]),eval(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 == 'get_next_notification': if len(args) != 1: print('get_next_notification requires 1 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 a896849989..37db81ff73 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 @@ -1324,6 +1324,57 @@ def add_dynamic_partitions(self, rqst): """ pass + def find_next_compact(self, workerId): + """ + Parameters: + - workerId + """ + pass + + def update_compactor_state(self, cr, txn_id): + """ + Parameters: + - cr + - txn_id + """ + 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 + def get_next_notification(self, rqst): """ Parameters: @@ -7675,6 +7726,225 @@ def recv_add_dynamic_partitions(self): raise result.o2 return + 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 update_compactor_state(self, cr, txn_id): + """ + Parameters: + - cr + - txn_id + """ + self.send_update_compactor_state(cr, txn_id) + self.recv_update_compactor_state() + + def send_update_compactor_state(self, cr, txn_id): + self._oprot.writeMessageBegin('update_compactor_state', TMessageType.CALL, self._seqid) + args = update_compactor_state_args() + args.cr = cr + args.txn_id = txn_id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_update_compactor_state(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = update_compactor_state_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 + def get_next_notification(self, rqst): """ Parameters: @@ -9507,6 +9777,13 @@ def __init__(self, handler): self._processMap["compact2"] = Processor.process_compact2 self._processMap["show_compact"] = Processor.process_show_compact self._processMap["add_dynamic_partitions"] = Processor.process_add_dynamic_partitions + self._processMap["find_next_compact"] = Processor.process_find_next_compact + self._processMap["update_compactor_state"] = Processor.process_update_compactor_state + 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 self._processMap["get_next_notification"] = Processor.process_get_next_notification self._processMap["get_current_notificationEventId"] = Processor.process_get_current_notificationEventId self._processMap["get_notification_events_count"] = Processor.process_get_notification_events_count @@ -13695,6 +13972,151 @@ def process_add_dynamic_partitions(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_update_compactor_state(self, seqid, iprot, oprot): + args = update_compactor_state_args() + args.read(iprot) + iprot.readMessageEnd() + result = update_compactor_state_result() + try: + self._handler.update_compactor_state(args.cr, args.txn_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("update_compactor_state", 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() + def process_get_next_notification(self, seqid, iprot, oprot): args = get_next_notification_args() args.read(iprot) @@ -16531,10 +16953,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) + (_etype896, _size893) = iprot.readListBegin() + for _i897 in xrange(_size893): + _elem898 = iprot.readString() + self.success.append(_elem898) iprot.readListEnd() else: iprot.skip(ftype) @@ -16557,8 +16979,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 iter899 in self.success: + oprot.writeString(iter899) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16663,10 +17085,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype896, _size893) = iprot.readListBegin() - for _i897 in xrange(_size893): - _elem898 = iprot.readString() - self.success.append(_elem898) + (_etype903, _size900) = iprot.readListBegin() + for _i904 in xrange(_size900): + _elem905 = iprot.readString() + self.success.append(_elem905) iprot.readListEnd() else: iprot.skip(ftype) @@ -16689,8 +17111,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 iter899 in self.success: - oprot.writeString(iter899) + for iter906 in self.success: + oprot.writeString(iter906) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17460,12 +17882,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype901, _vtype902, _size900 ) = iprot.readMapBegin() - for _i904 in xrange(_size900): - _key905 = iprot.readString() - _val906 = Type() - _val906.read(iprot) - self.success[_key905] = _val906 + (_ktype908, _vtype909, _size907 ) = iprot.readMapBegin() + for _i911 in xrange(_size907): + _key912 = iprot.readString() + _val913 = Type() + _val913.read(iprot) + self.success[_key912] = _val913 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17488,9 +17910,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 kiter907,viter908 in self.success.items(): - oprot.writeString(kiter907) - viter908.write(oprot) + for kiter914,viter915 in self.success.items(): + oprot.writeString(kiter914) + viter915.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -17633,11 +18055,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) + (_etype919, _size916) = iprot.readListBegin() + for _i920 in xrange(_size916): + _elem921 = FieldSchema() + _elem921.read(iprot) + self.success.append(_elem921) iprot.readListEnd() else: iprot.skip(ftype) @@ -17672,8 +18094,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 iter922 in self.success: + iter922.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17840,11 +18262,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) + (_etype926, _size923) = iprot.readListBegin() + for _i927 in xrange(_size923): + _elem928 = FieldSchema() + _elem928.read(iprot) + self.success.append(_elem928) iprot.readListEnd() else: iprot.skip(ftype) @@ -17879,8 +18301,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 iter929 in self.success: + iter929.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18033,11 +18455,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) + (_etype933, _size930) = iprot.readListBegin() + for _i934 in xrange(_size930): + _elem935 = FieldSchema() + _elem935.read(iprot) + self.success.append(_elem935) iprot.readListEnd() else: iprot.skip(ftype) @@ -18072,8 +18494,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 iter936 in self.success: + iter936.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18240,11 +18662,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype933, _size930) = iprot.readListBegin() - for _i934 in xrange(_size930): - _elem935 = FieldSchema() - _elem935.read(iprot) - self.success.append(_elem935) + (_etype940, _size937) = iprot.readListBegin() + for _i941 in xrange(_size937): + _elem942 = FieldSchema() + _elem942.read(iprot) + self.success.append(_elem942) iprot.readListEnd() else: iprot.skip(ftype) @@ -18279,8 +18701,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 iter936 in self.success: - iter936.write(oprot) + for iter943 in self.success: + iter943.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18733,66 +19155,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype940, _size937) = iprot.readListBegin() - for _i941 in xrange(_size937): - _elem942 = SQLPrimaryKey() - _elem942.read(iprot) - self.primaryKeys.append(_elem942) + (_etype947, _size944) = iprot.readListBegin() + for _i948 in xrange(_size944): + _elem949 = SQLPrimaryKey() + _elem949.read(iprot) + self.primaryKeys.append(_elem949) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype946, _size943) = iprot.readListBegin() - for _i947 in xrange(_size943): - _elem948 = SQLForeignKey() - _elem948.read(iprot) - self.foreignKeys.append(_elem948) + (_etype953, _size950) = iprot.readListBegin() + for _i954 in xrange(_size950): + _elem955 = SQLForeignKey() + _elem955.read(iprot) + self.foreignKeys.append(_elem955) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype952, _size949) = iprot.readListBegin() - for _i953 in xrange(_size949): - _elem954 = SQLUniqueConstraint() - _elem954.read(iprot) - self.uniqueConstraints.append(_elem954) + (_etype959, _size956) = iprot.readListBegin() + for _i960 in xrange(_size956): + _elem961 = SQLUniqueConstraint() + _elem961.read(iprot) + self.uniqueConstraints.append(_elem961) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype958, _size955) = iprot.readListBegin() - for _i959 in xrange(_size955): - _elem960 = SQLNotNullConstraint() - _elem960.read(iprot) - self.notNullConstraints.append(_elem960) + (_etype965, _size962) = iprot.readListBegin() + for _i966 in xrange(_size962): + _elem967 = SQLNotNullConstraint() + _elem967.read(iprot) + self.notNullConstraints.append(_elem967) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype964, _size961) = iprot.readListBegin() - for _i965 in xrange(_size961): - _elem966 = SQLDefaultConstraint() - _elem966.read(iprot) - self.defaultConstraints.append(_elem966) + (_etype971, _size968) = iprot.readListBegin() + for _i972 in xrange(_size968): + _elem973 = SQLDefaultConstraint() + _elem973.read(iprot) + self.defaultConstraints.append(_elem973) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.checkConstraints = [] - (_etype970, _size967) = iprot.readListBegin() - for _i971 in xrange(_size967): - _elem972 = SQLCheckConstraint() - _elem972.read(iprot) - self.checkConstraints.append(_elem972) + (_etype977, _size974) = iprot.readListBegin() + for _i978 in xrange(_size974): + _elem979 = SQLCheckConstraint() + _elem979.read(iprot) + self.checkConstraints.append(_elem979) iprot.readListEnd() else: iprot.skip(ftype) @@ -18813,43 +19235,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 iter973 in self.primaryKeys: - iter973.write(oprot) + for iter980 in self.primaryKeys: + iter980.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 iter974 in self.foreignKeys: - iter974.write(oprot) + for iter981 in self.foreignKeys: + iter981.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 iter975 in self.uniqueConstraints: - iter975.write(oprot) + for iter982 in self.uniqueConstraints: + iter982.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 iter976 in self.notNullConstraints: - iter976.write(oprot) + for iter983 in self.notNullConstraints: + iter983.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 iter977 in self.defaultConstraints: - iter977.write(oprot) + for iter984 in self.defaultConstraints: + iter984.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 iter978 in self.checkConstraints: - iter978.write(oprot) + for iter985 in self.checkConstraints: + iter985.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20409,10 +20831,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype982, _size979) = iprot.readListBegin() - for _i983 in xrange(_size979): - _elem984 = iprot.readString() - self.partNames.append(_elem984) + (_etype989, _size986) = iprot.readListBegin() + for _i990 in xrange(_size986): + _elem991 = iprot.readString() + self.partNames.append(_elem991) iprot.readListEnd() else: iprot.skip(ftype) @@ -20437,8 +20859,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 iter985 in self.partNames: - oprot.writeString(iter985) + for iter992 in self.partNames: + oprot.writeString(iter992) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20783,10 +21205,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) + (_etype996, _size993) = iprot.readListBegin() + for _i997 in xrange(_size993): + _elem998 = iprot.readString() + self.success.append(_elem998) iprot.readListEnd() else: iprot.skip(ftype) @@ -20809,8 +21231,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 iter999 in self.success: + oprot.writeString(iter999) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20960,10 +21382,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) + (_etype1003, _size1000) = iprot.readListBegin() + for _i1004 in xrange(_size1000): + _elem1005 = iprot.readString() + self.success.append(_elem1005) iprot.readListEnd() else: iprot.skip(ftype) @@ -20986,8 +21408,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 iter1006 in self.success: + oprot.writeString(iter1006) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21111,10 +21533,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1003, _size1000) = iprot.readListBegin() - for _i1004 in xrange(_size1000): - _elem1005 = iprot.readString() - self.success.append(_elem1005) + (_etype1010, _size1007) = iprot.readListBegin() + for _i1011 in xrange(_size1007): + _elem1012 = iprot.readString() + self.success.append(_elem1012) iprot.readListEnd() else: iprot.skip(ftype) @@ -21137,8 +21559,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 iter1006 in self.success: - oprot.writeString(iter1006) + for iter1013 in self.success: + oprot.writeString(iter1013) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21211,10 +21633,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype1010, _size1007) = iprot.readListBegin() - for _i1011 in xrange(_size1007): - _elem1012 = iprot.readString() - self.tbl_types.append(_elem1012) + (_etype1017, _size1014) = iprot.readListBegin() + for _i1018 in xrange(_size1014): + _elem1019 = iprot.readString() + self.tbl_types.append(_elem1019) iprot.readListEnd() else: iprot.skip(ftype) @@ -21239,8 +21661,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 iter1013 in self.tbl_types: - oprot.writeString(iter1013) + for iter1020 in self.tbl_types: + oprot.writeString(iter1020) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21296,11 +21718,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1017, _size1014) = iprot.readListBegin() - for _i1018 in xrange(_size1014): - _elem1019 = TableMeta() - _elem1019.read(iprot) - self.success.append(_elem1019) + (_etype1024, _size1021) = iprot.readListBegin() + for _i1025 in xrange(_size1021): + _elem1026 = TableMeta() + _elem1026.read(iprot) + self.success.append(_elem1026) iprot.readListEnd() else: iprot.skip(ftype) @@ -21323,8 +21745,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 iter1020 in self.success: - iter1020.write(oprot) + for iter1027 in self.success: + iter1027.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21448,10 +21870,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1024, _size1021) = iprot.readListBegin() - for _i1025 in xrange(_size1021): - _elem1026 = iprot.readString() - self.success.append(_elem1026) + (_etype1031, _size1028) = iprot.readListBegin() + for _i1032 in xrange(_size1028): + _elem1033 = iprot.readString() + self.success.append(_elem1033) iprot.readListEnd() else: iprot.skip(ftype) @@ -21474,8 +21896,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 iter1027 in self.success: - oprot.writeString(iter1027) + for iter1034 in self.success: + oprot.writeString(iter1034) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21711,10 +22133,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype1031, _size1028) = iprot.readListBegin() - for _i1032 in xrange(_size1028): - _elem1033 = iprot.readString() - self.tbl_names.append(_elem1033) + (_etype1038, _size1035) = iprot.readListBegin() + for _i1039 in xrange(_size1035): + _elem1040 = iprot.readString() + self.tbl_names.append(_elem1040) iprot.readListEnd() else: iprot.skip(ftype) @@ -21735,8 +22157,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 iter1034 in self.tbl_names: - oprot.writeString(iter1034) + for iter1041 in self.tbl_names: + oprot.writeString(iter1041) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21788,11 +22210,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1038, _size1035) = iprot.readListBegin() - for _i1039 in xrange(_size1035): - _elem1040 = Table() - _elem1040.read(iprot) - self.success.append(_elem1040) + (_etype1045, _size1042) = iprot.readListBegin() + for _i1046 in xrange(_size1042): + _elem1047 = Table() + _elem1047.read(iprot) + self.success.append(_elem1047) iprot.readListEnd() else: iprot.skip(ftype) @@ -21809,8 +22231,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 iter1041 in self.success: - iter1041.write(oprot) + for iter1048 in self.success: + iter1048.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22678,10 +23100,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1045, _size1042) = iprot.readListBegin() - for _i1046 in xrange(_size1042): - _elem1047 = iprot.readString() - self.success.append(_elem1047) + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in xrange(_size1049): + _elem1054 = iprot.readString() + self.success.append(_elem1054) iprot.readListEnd() else: iprot.skip(ftype) @@ -22716,8 +23138,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 iter1048 in self.success: - oprot.writeString(iter1048) + for iter1055 in self.success: + oprot.writeString(iter1055) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23846,11 +24268,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 = Partition() - _elem1054.read(iprot) - self.new_parts.append(_elem1054) + (_etype1059, _size1056) = iprot.readListBegin() + for _i1060 in xrange(_size1056): + _elem1061 = Partition() + _elem1061.read(iprot) + self.new_parts.append(_elem1061) iprot.readListEnd() else: iprot.skip(ftype) @@ -23867,8 +24289,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 iter1062 in self.new_parts: + iter1062.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24026,11 +24448,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1059, _size1056) = iprot.readListBegin() - for _i1060 in xrange(_size1056): - _elem1061 = PartitionSpec() - _elem1061.read(iprot) - self.new_parts.append(_elem1061) + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in xrange(_size1063): + _elem1068 = PartitionSpec() + _elem1068.read(iprot) + self.new_parts.append(_elem1068) iprot.readListEnd() else: iprot.skip(ftype) @@ -24047,8 +24469,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 iter1062 in self.new_parts: - iter1062.write(oprot) + for iter1069 in self.new_parts: + iter1069.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24222,10 +24644,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) + (_etype1073, _size1070) = iprot.readListBegin() + for _i1074 in xrange(_size1070): + _elem1075 = iprot.readString() + self.part_vals.append(_elem1075) iprot.readListEnd() else: iprot.skip(ftype) @@ -24250,8 +24672,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 iter1076 in self.part_vals: + oprot.writeString(iter1076) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24604,10 +25026,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) + (_etype1080, _size1077) = iprot.readListBegin() + for _i1081 in xrange(_size1077): + _elem1082 = iprot.readString() + self.part_vals.append(_elem1082) iprot.readListEnd() else: iprot.skip(ftype) @@ -24638,8 +25060,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 iter1083 in self.part_vals: + oprot.writeString(iter1083) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -25234,10 +25656,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) + (_etype1087, _size1084) = iprot.readListBegin() + for _i1088 in xrange(_size1084): + _elem1089 = iprot.readString() + self.part_vals.append(_elem1089) iprot.readListEnd() else: iprot.skip(ftype) @@ -25267,8 +25689,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 iter1090 in self.part_vals: + oprot.writeString(iter1090) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -25441,10 +25863,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) + (_etype1094, _size1091) = iprot.readListBegin() + for _i1095 in xrange(_size1091): + _elem1096 = iprot.readString() + self.part_vals.append(_elem1096) iprot.readListEnd() else: iprot.skip(ftype) @@ -25480,8 +25902,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 iter1097 in self.part_vals: + oprot.writeString(iter1097) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -26218,10 +26640,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1094, _size1091) = iprot.readListBegin() - for _i1095 in xrange(_size1091): - _elem1096 = iprot.readString() - self.part_vals.append(_elem1096) + (_etype1101, _size1098) = iprot.readListBegin() + for _i1102 in xrange(_size1098): + _elem1103 = iprot.readString() + self.part_vals.append(_elem1103) iprot.readListEnd() else: iprot.skip(ftype) @@ -26246,8 +26668,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 iter1097 in self.part_vals: - oprot.writeString(iter1097) + for iter1104 in self.part_vals: + oprot.writeString(iter1104) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26406,11 +26828,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1099, _vtype1100, _size1098 ) = iprot.readMapBegin() - for _i1102 in xrange(_size1098): - _key1103 = iprot.readString() - _val1104 = iprot.readString() - self.partitionSpecs[_key1103] = _val1104 + (_ktype1106, _vtype1107, _size1105 ) = iprot.readMapBegin() + for _i1109 in xrange(_size1105): + _key1110 = iprot.readString() + _val1111 = iprot.readString() + self.partitionSpecs[_key1110] = _val1111 iprot.readMapEnd() else: iprot.skip(ftype) @@ -26447,9 +26869,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 kiter1105,viter1106 in self.partitionSpecs.items(): - oprot.writeString(kiter1105) - oprot.writeString(viter1106) + for kiter1112,viter1113 in self.partitionSpecs.items(): + oprot.writeString(kiter1112) + oprot.writeString(viter1113) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -26654,11 +27076,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1108, _vtype1109, _size1107 ) = iprot.readMapBegin() - for _i1111 in xrange(_size1107): - _key1112 = iprot.readString() - _val1113 = iprot.readString() - self.partitionSpecs[_key1112] = _val1113 + (_ktype1115, _vtype1116, _size1114 ) = iprot.readMapBegin() + for _i1118 in xrange(_size1114): + _key1119 = iprot.readString() + _val1120 = iprot.readString() + self.partitionSpecs[_key1119] = _val1120 iprot.readMapEnd() else: iprot.skip(ftype) @@ -26695,9 +27117,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 kiter1114,viter1115 in self.partitionSpecs.items(): - oprot.writeString(kiter1114) - oprot.writeString(viter1115) + for kiter1121,viter1122 in self.partitionSpecs.items(): + oprot.writeString(kiter1121) + oprot.writeString(viter1122) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -26780,11 +27202,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1119, _size1116) = iprot.readListBegin() - for _i1120 in xrange(_size1116): - _elem1121 = Partition() - _elem1121.read(iprot) - self.success.append(_elem1121) + (_etype1126, _size1123) = iprot.readListBegin() + for _i1127 in xrange(_size1123): + _elem1128 = Partition() + _elem1128.read(iprot) + self.success.append(_elem1128) iprot.readListEnd() else: iprot.skip(ftype) @@ -26825,8 +27247,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 iter1122 in self.success: - iter1122.write(oprot) + for iter1129 in self.success: + iter1129.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26920,10 +27342,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1126, _size1123) = iprot.readListBegin() - for _i1127 in xrange(_size1123): - _elem1128 = iprot.readString() - self.part_vals.append(_elem1128) + (_etype1133, _size1130) = iprot.readListBegin() + for _i1134 in xrange(_size1130): + _elem1135 = iprot.readString() + self.part_vals.append(_elem1135) iprot.readListEnd() else: iprot.skip(ftype) @@ -26935,10 +27357,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1132, _size1129) = iprot.readListBegin() - for _i1133 in xrange(_size1129): - _elem1134 = iprot.readString() - self.group_names.append(_elem1134) + (_etype1139, _size1136) = iprot.readListBegin() + for _i1140 in xrange(_size1136): + _elem1141 = iprot.readString() + self.group_names.append(_elem1141) iprot.readListEnd() else: iprot.skip(ftype) @@ -26963,8 +27385,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 iter1135 in self.part_vals: - oprot.writeString(iter1135) + for iter1142 in self.part_vals: + oprot.writeString(iter1142) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -26974,8 +27396,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 iter1136 in self.group_names: - oprot.writeString(iter1136) + for iter1143 in self.group_names: + oprot.writeString(iter1143) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27404,11 +27826,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1140, _size1137) = iprot.readListBegin() - for _i1141 in xrange(_size1137): - _elem1142 = Partition() - _elem1142.read(iprot) - self.success.append(_elem1142) + (_etype1147, _size1144) = iprot.readListBegin() + for _i1148 in xrange(_size1144): + _elem1149 = Partition() + _elem1149.read(iprot) + self.success.append(_elem1149) iprot.readListEnd() else: iprot.skip(ftype) @@ -27437,8 +27859,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 iter1143 in self.success: - iter1143.write(oprot) + for iter1150 in self.success: + iter1150.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27532,10 +27954,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1147, _size1144) = iprot.readListBegin() - for _i1148 in xrange(_size1144): - _elem1149 = iprot.readString() - self.group_names.append(_elem1149) + (_etype1154, _size1151) = iprot.readListBegin() + for _i1155 in xrange(_size1151): + _elem1156 = iprot.readString() + self.group_names.append(_elem1156) iprot.readListEnd() else: iprot.skip(ftype) @@ -27568,8 +27990,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 iter1150 in self.group_names: - oprot.writeString(iter1150) + for iter1157 in self.group_names: + oprot.writeString(iter1157) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27630,11 +28052,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1154, _size1151) = iprot.readListBegin() - for _i1155 in xrange(_size1151): - _elem1156 = Partition() - _elem1156.read(iprot) - self.success.append(_elem1156) + (_etype1161, _size1158) = iprot.readListBegin() + for _i1162 in xrange(_size1158): + _elem1163 = Partition() + _elem1163.read(iprot) + self.success.append(_elem1163) iprot.readListEnd() else: iprot.skip(ftype) @@ -27663,8 +28085,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 iter1164 in self.success: + iter1164.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27822,11 +28244,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1161, _size1158) = iprot.readListBegin() - for _i1162 in xrange(_size1158): - _elem1163 = PartitionSpec() - _elem1163.read(iprot) - self.success.append(_elem1163) + (_etype1168, _size1165) = iprot.readListBegin() + for _i1169 in xrange(_size1165): + _elem1170 = PartitionSpec() + _elem1170.read(iprot) + self.success.append(_elem1170) iprot.readListEnd() else: iprot.skip(ftype) @@ -27855,8 +28277,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 iter1164 in self.success: - iter1164.write(oprot) + for iter1171 in self.success: + iter1171.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28014,10 +28436,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1168, _size1165) = iprot.readListBegin() - for _i1169 in xrange(_size1165): - _elem1170 = iprot.readString() - self.success.append(_elem1170) + (_etype1175, _size1172) = iprot.readListBegin() + for _i1176 in xrange(_size1172): + _elem1177 = iprot.readString() + self.success.append(_elem1177) iprot.readListEnd() else: iprot.skip(ftype) @@ -28046,8 +28468,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 iter1171 in self.success: - oprot.writeString(iter1171) + for iter1178 in self.success: + oprot.writeString(iter1178) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28287,10 +28709,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1175, _size1172) = iprot.readListBegin() - for _i1176 in xrange(_size1172): - _elem1177 = iprot.readString() - self.part_vals.append(_elem1177) + (_etype1182, _size1179) = iprot.readListBegin() + for _i1183 in xrange(_size1179): + _elem1184 = iprot.readString() + self.part_vals.append(_elem1184) iprot.readListEnd() else: iprot.skip(ftype) @@ -28320,8 +28742,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 iter1178 in self.part_vals: - oprot.writeString(iter1178) + for iter1185 in self.part_vals: + oprot.writeString(iter1185) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -28385,11 +28807,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1182, _size1179) = iprot.readListBegin() - for _i1183 in xrange(_size1179): - _elem1184 = Partition() - _elem1184.read(iprot) - self.success.append(_elem1184) + (_etype1189, _size1186) = iprot.readListBegin() + for _i1190 in xrange(_size1186): + _elem1191 = Partition() + _elem1191.read(iprot) + self.success.append(_elem1191) iprot.readListEnd() else: iprot.skip(ftype) @@ -28418,8 +28840,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 iter1185 in self.success: - iter1185.write(oprot) + for iter1192 in self.success: + iter1192.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28506,10 +28928,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1189, _size1186) = iprot.readListBegin() - for _i1190 in xrange(_size1186): - _elem1191 = iprot.readString() - self.part_vals.append(_elem1191) + (_etype1196, _size1193) = iprot.readListBegin() + for _i1197 in xrange(_size1193): + _elem1198 = iprot.readString() + self.part_vals.append(_elem1198) iprot.readListEnd() else: iprot.skip(ftype) @@ -28526,10 +28948,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1195, _size1192) = iprot.readListBegin() - for _i1196 in xrange(_size1192): - _elem1197 = iprot.readString() - self.group_names.append(_elem1197) + (_etype1202, _size1199) = iprot.readListBegin() + for _i1203 in xrange(_size1199): + _elem1204 = iprot.readString() + self.group_names.append(_elem1204) iprot.readListEnd() else: iprot.skip(ftype) @@ -28554,8 +28976,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 iter1198 in self.part_vals: - oprot.writeString(iter1198) + for iter1205 in self.part_vals: + oprot.writeString(iter1205) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -28569,8 +28991,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 iter1199 in self.group_names: - oprot.writeString(iter1199) + for iter1206 in self.group_names: + oprot.writeString(iter1206) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28632,11 +29054,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1203, _size1200) = iprot.readListBegin() - for _i1204 in xrange(_size1200): - _elem1205 = Partition() - _elem1205.read(iprot) - self.success.append(_elem1205) + (_etype1210, _size1207) = iprot.readListBegin() + for _i1211 in xrange(_size1207): + _elem1212 = Partition() + _elem1212.read(iprot) + self.success.append(_elem1212) iprot.readListEnd() else: iprot.skip(ftype) @@ -28665,8 +29087,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 iter1206 in self.success: - iter1206.write(oprot) + for iter1213 in self.success: + iter1213.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28747,10 +29169,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1210, _size1207) = iprot.readListBegin() - for _i1211 in xrange(_size1207): - _elem1212 = iprot.readString() - self.part_vals.append(_elem1212) + (_etype1217, _size1214) = iprot.readListBegin() + for _i1218 in xrange(_size1214): + _elem1219 = iprot.readString() + self.part_vals.append(_elem1219) iprot.readListEnd() else: iprot.skip(ftype) @@ -28780,8 +29202,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 iter1213 in self.part_vals: - oprot.writeString(iter1213) + for iter1220 in self.part_vals: + oprot.writeString(iter1220) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -28845,10 +29267,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1217, _size1214) = iprot.readListBegin() - for _i1218 in xrange(_size1214): - _elem1219 = iprot.readString() - self.success.append(_elem1219) + (_etype1224, _size1221) = iprot.readListBegin() + for _i1225 in xrange(_size1221): + _elem1226 = iprot.readString() + self.success.append(_elem1226) iprot.readListEnd() else: iprot.skip(ftype) @@ -28877,8 +29299,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 iter1220 in self.success: - oprot.writeString(iter1220) + for iter1227 in self.success: + oprot.writeString(iter1227) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29049,11 +29471,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1224, _size1221) = iprot.readListBegin() - for _i1225 in xrange(_size1221): - _elem1226 = Partition() - _elem1226.read(iprot) - self.success.append(_elem1226) + (_etype1231, _size1228) = iprot.readListBegin() + for _i1232 in xrange(_size1228): + _elem1233 = Partition() + _elem1233.read(iprot) + self.success.append(_elem1233) iprot.readListEnd() else: iprot.skip(ftype) @@ -29082,8 +29504,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 iter1234 in self.success: + iter1234.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29254,11 +29676,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1231, _size1228) = iprot.readListBegin() - for _i1232 in xrange(_size1228): - _elem1233 = PartitionSpec() - _elem1233.read(iprot) - self.success.append(_elem1233) + (_etype1238, _size1235) = iprot.readListBegin() + for _i1239 in xrange(_size1235): + _elem1240 = PartitionSpec() + _elem1240.read(iprot) + self.success.append(_elem1240) iprot.readListEnd() else: iprot.skip(ftype) @@ -29287,8 +29709,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 iter1234 in self.success: - iter1234.write(oprot) + for iter1241 in self.success: + iter1241.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29708,10 +30130,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1238, _size1235) = iprot.readListBegin() - for _i1239 in xrange(_size1235): - _elem1240 = iprot.readString() - self.names.append(_elem1240) + (_etype1245, _size1242) = iprot.readListBegin() + for _i1246 in xrange(_size1242): + _elem1247 = iprot.readString() + self.names.append(_elem1247) iprot.readListEnd() else: iprot.skip(ftype) @@ -29736,8 +30158,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 iter1241 in self.names: - oprot.writeString(iter1241) + for iter1248 in self.names: + oprot.writeString(iter1248) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29796,11 +30218,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1245, _size1242) = iprot.readListBegin() - for _i1246 in xrange(_size1242): - _elem1247 = Partition() - _elem1247.read(iprot) - self.success.append(_elem1247) + (_etype1252, _size1249) = iprot.readListBegin() + for _i1253 in xrange(_size1249): + _elem1254 = Partition() + _elem1254.read(iprot) + self.success.append(_elem1254) iprot.readListEnd() else: iprot.skip(ftype) @@ -29829,8 +30251,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 iter1248 in self.success: - iter1248.write(oprot) + for iter1255 in self.success: + iter1255.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30080,11 +30502,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) + (_etype1259, _size1256) = iprot.readListBegin() + for _i1260 in xrange(_size1256): + _elem1261 = Partition() + _elem1261.read(iprot) + self.new_parts.append(_elem1261) iprot.readListEnd() else: iprot.skip(ftype) @@ -30109,8 +30531,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 iter1262 in self.new_parts: + iter1262.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30263,11 +30685,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1259, _size1256) = iprot.readListBegin() - for _i1260 in xrange(_size1256): - _elem1261 = Partition() - _elem1261.read(iprot) - self.new_parts.append(_elem1261) + (_etype1266, _size1263) = iprot.readListBegin() + for _i1267 in xrange(_size1263): + _elem1268 = Partition() + _elem1268.read(iprot) + self.new_parts.append(_elem1268) iprot.readListEnd() else: iprot.skip(ftype) @@ -30298,8 +30720,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 iter1262 in self.new_parts: - iter1262.write(oprot) + for iter1269 in self.new_parts: + iter1269.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -30802,10 +31224,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1266, _size1263) = iprot.readListBegin() - for _i1267 in xrange(_size1263): - _elem1268 = iprot.readString() - self.part_vals.append(_elem1268) + (_etype1273, _size1270) = iprot.readListBegin() + for _i1274 in xrange(_size1270): + _elem1275 = iprot.readString() + self.part_vals.append(_elem1275) iprot.readListEnd() else: iprot.skip(ftype) @@ -30836,8 +31258,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 iter1269 in self.part_vals: - oprot.writeString(iter1269) + for iter1276 in self.part_vals: + oprot.writeString(iter1276) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -31138,10 +31560,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1273, _size1270) = iprot.readListBegin() - for _i1274 in xrange(_size1270): - _elem1275 = iprot.readString() - self.part_vals.append(_elem1275) + (_etype1280, _size1277) = iprot.readListBegin() + for _i1281 in xrange(_size1277): + _elem1282 = iprot.readString() + self.part_vals.append(_elem1282) iprot.readListEnd() else: iprot.skip(ftype) @@ -31163,8 +31585,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 iter1276 in self.part_vals: - oprot.writeString(iter1276) + for iter1283 in self.part_vals: + oprot.writeString(iter1283) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -31522,10 +31944,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1280, _size1277) = iprot.readListBegin() - for _i1281 in xrange(_size1277): - _elem1282 = iprot.readString() - self.success.append(_elem1282) + (_etype1287, _size1284) = iprot.readListBegin() + for _i1288 in xrange(_size1284): + _elem1289 = iprot.readString() + self.success.append(_elem1289) iprot.readListEnd() else: iprot.skip(ftype) @@ -31548,8 +31970,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 iter1283 in self.success: - oprot.writeString(iter1283) + for iter1290 in self.success: + oprot.writeString(iter1290) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31673,11 +32095,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1285, _vtype1286, _size1284 ) = iprot.readMapBegin() - for _i1288 in xrange(_size1284): - _key1289 = iprot.readString() - _val1290 = iprot.readString() - self.success[_key1289] = _val1290 + (_ktype1292, _vtype1293, _size1291 ) = iprot.readMapBegin() + for _i1295 in xrange(_size1291): + _key1296 = iprot.readString() + _val1297 = iprot.readString() + self.success[_key1296] = _val1297 iprot.readMapEnd() else: iprot.skip(ftype) @@ -31700,9 +32122,9 @@ 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 kiter1291,viter1292 in self.success.items(): - oprot.writeString(kiter1291) - oprot.writeString(viter1292) + for kiter1298,viter1299 in self.success.items(): + oprot.writeString(kiter1298) + oprot.writeString(viter1299) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31778,11 +32200,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1294, _vtype1295, _size1293 ) = iprot.readMapBegin() - for _i1297 in xrange(_size1293): - _key1298 = iprot.readString() - _val1299 = iprot.readString() - self.part_vals[_key1298] = _val1299 + (_ktype1301, _vtype1302, _size1300 ) = iprot.readMapBegin() + for _i1304 in xrange(_size1300): + _key1305 = iprot.readString() + _val1306 = iprot.readString() + self.part_vals[_key1305] = _val1306 iprot.readMapEnd() else: iprot.skip(ftype) @@ -31812,9 +32234,9 @@ def write(self, oprot): 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 kiter1300,viter1301 in self.part_vals.items(): - oprot.writeString(kiter1300) - oprot.writeString(viter1301) + for kiter1307,viter1308 in self.part_vals.items(): + oprot.writeString(kiter1307) + oprot.writeString(viter1308) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -32028,11 +32450,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1303, _vtype1304, _size1302 ) = iprot.readMapBegin() - for _i1306 in xrange(_size1302): - _key1307 = iprot.readString() - _val1308 = iprot.readString() - self.part_vals[_key1307] = _val1308 + (_ktype1310, _vtype1311, _size1309 ) = iprot.readMapBegin() + for _i1313 in xrange(_size1309): + _key1314 = iprot.readString() + _val1315 = iprot.readString() + self.part_vals[_key1314] = _val1315 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32062,9 +32484,9 @@ def write(self, oprot): 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 kiter1309,viter1310 in self.part_vals.items(): - oprot.writeString(kiter1309) - oprot.writeString(viter1310) + for kiter1316,viter1317 in self.part_vals.items(): + oprot.writeString(kiter1316) + oprot.writeString(viter1317) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -36090,10 +36512,10 @@ def read(self, iprot): 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) + (_etype1321, _size1318) = iprot.readListBegin() + for _i1322 in xrange(_size1318): + _elem1323 = iprot.readString() + self.success.append(_elem1323) iprot.readListEnd() else: iprot.skip(ftype) @@ -36116,8 +36538,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 iter1317 in self.success: - oprot.writeString(iter1317) + for iter1324 in self.success: + oprot.writeString(iter1324) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36805,10 +37227,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1321, _size1318) = iprot.readListBegin() - for _i1322 in xrange(_size1318): - _elem1323 = iprot.readString() - self.success.append(_elem1323) + (_etype1328, _size1325) = iprot.readListBegin() + for _i1329 in xrange(_size1325): + _elem1330 = iprot.readString() + self.success.append(_elem1330) iprot.readListEnd() else: iprot.skip(ftype) @@ -36831,8 +37253,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 iter1324 in self.success: - oprot.writeString(iter1324) + for iter1331 in self.success: + oprot.writeString(iter1331) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37346,11 +37768,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1328, _size1325) = iprot.readListBegin() - for _i1329 in xrange(_size1325): - _elem1330 = Role() - _elem1330.read(iprot) - self.success.append(_elem1330) + (_etype1335, _size1332) = iprot.readListBegin() + for _i1336 in xrange(_size1332): + _elem1337 = Role() + _elem1337.read(iprot) + self.success.append(_elem1337) iprot.readListEnd() else: iprot.skip(ftype) @@ -37373,8 +37795,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 iter1331 in self.success: - iter1331.write(oprot) + for iter1338 in self.success: + iter1338.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37883,10 +38305,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1335, _size1332) = iprot.readListBegin() - for _i1336 in xrange(_size1332): - _elem1337 = iprot.readString() - self.group_names.append(_elem1337) + (_etype1342, _size1339) = iprot.readListBegin() + for _i1343 in xrange(_size1339): + _elem1344 = iprot.readString() + self.group_names.append(_elem1344) iprot.readListEnd() else: iprot.skip(ftype) @@ -37911,8 +38333,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1338 in self.group_names: - oprot.writeString(iter1338) + for iter1345 in self.group_names: + oprot.writeString(iter1345) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38139,11 +38561,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1342, _size1339) = iprot.readListBegin() - for _i1343 in xrange(_size1339): - _elem1344 = HiveObjectPrivilege() - _elem1344.read(iprot) - self.success.append(_elem1344) + (_etype1349, _size1346) = iprot.readListBegin() + for _i1350 in xrange(_size1346): + _elem1351 = HiveObjectPrivilege() + _elem1351.read(iprot) + self.success.append(_elem1351) iprot.readListEnd() else: iprot.skip(ftype) @@ -38166,8 +38588,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 iter1345 in self.success: - iter1345.write(oprot) + for iter1352 in self.success: + iter1352.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38837,10 +39259,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1349, _size1346) = iprot.readListBegin() - for _i1350 in xrange(_size1346): - _elem1351 = iprot.readString() - self.group_names.append(_elem1351) + (_etype1356, _size1353) = iprot.readListBegin() + for _i1357 in xrange(_size1353): + _elem1358 = iprot.readString() + self.group_names.append(_elem1358) iprot.readListEnd() else: iprot.skip(ftype) @@ -38861,8 +39283,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1352 in self.group_names: - oprot.writeString(iter1352) + for iter1359 in self.group_names: + oprot.writeString(iter1359) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38917,10 +39339,10 @@ def read(self, iprot): 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) + (_etype1363, _size1360) = iprot.readListBegin() + for _i1364 in xrange(_size1360): + _elem1365 = iprot.readString() + self.success.append(_elem1365) iprot.readListEnd() else: iprot.skip(ftype) @@ -38943,8 +39365,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 iter1359 in self.success: - oprot.writeString(iter1359) + for iter1366 in self.success: + oprot.writeString(iter1366) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -39876,10 +40298,10 @@ def read(self, iprot): 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) + (_etype1370, _size1367) = iprot.readListBegin() + for _i1371 in xrange(_size1367): + _elem1372 = iprot.readString() + self.success.append(_elem1372) iprot.readListEnd() else: iprot.skip(ftype) @@ -39896,8 +40318,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 iter1366 in self.success: - oprot.writeString(iter1366) + for iter1373 in self.success: + oprot.writeString(iter1373) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40424,10 +40846,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1370, _size1367) = iprot.readListBegin() - for _i1371 in xrange(_size1367): - _elem1372 = iprot.readString() - self.success.append(_elem1372) + (_etype1377, _size1374) = iprot.readListBegin() + for _i1378 in xrange(_size1374): + _elem1379 = iprot.readString() + self.success.append(_elem1379) iprot.readListEnd() else: iprot.skip(ftype) @@ -40444,8 +40866,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 iter1373 in self.success: - oprot.writeString(iter1373) + for iter1380 in self.success: + oprot.writeString(iter1380) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40890,19 +41312,1350 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txn_result: +class abort_txn_result: + """ + Attributes: + - o1 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + ) + + 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: + 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 = NoSuchTxnException() + 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('abort_txn_result') + 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.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 abort_txns_args: + """ + Attributes: + - rqst + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (AbortTxnsRequest, AbortTxnsRequest.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 = AbortTxnsRequest() + 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('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() + + 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 abort_txns_result: + """ + Attributes: + - o1 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + ) + + 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: + 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 = NoSuchTxnException() + 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('abort_txns_result') + 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.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 commit_txn_args: + """ + Attributes: + - rqst + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (CommitTxnRequest, CommitTxnRequest.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 = CommitTxnRequest() + 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('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() + + 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 commit_txn_result: + """ + Attributes: + - 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 + ) + + 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 = 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() + 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('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() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + 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 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)) + return + iprot.readStructBegin() + while True: + (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() + 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('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() + + 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 repl_tbl_writeid_state_result: + + 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('repl_tbl_writeid_state_result') + 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_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)) + return + iprot.readStructBegin() + while True: + (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() + 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_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() + + 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_valid_write_ids_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 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = 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() + 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_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() + + 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) + 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 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)) + return + iprot.readStructBegin() + while True: + (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() + 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('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() + + 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 allocate_table_write_ids_result: + """ + Attributes: + - success + - o1 + - o2 + - o3 + """ + + 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)) + return + iprot.readStructBegin() + while True: + (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() + 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('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() + + 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) + 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 lock_args: + """ + Attributes: + - rqst + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (LockRequest, LockRequest.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 = LockRequest() + 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('lock_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 lock_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 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = 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() + 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('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() + + 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) + 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 check_lock_args: + """ + Attributes: + - rqst + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (CheckLockRequest, CheckLockRequest.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 = CheckLockRequest() + 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('check_lock_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 check_lock_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 + ) + + 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)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + 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() + 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('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() + + 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) + 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 unlock_args: + """ + Attributes: + - rqst + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (UnlockRequest, UnlockRequest.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 = UnlockRequest() + 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('unlock_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 unlock_result: + """ + Attributes: + - o1 + - o2 + """ + + thrift_spec = ( + None, # 0 + (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, 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 = 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() + 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('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() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + 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 show_locks_args: + """ + Attributes: + - rqst + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (ShowLocksRequest, ShowLocksRequest.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 = ShowLocksRequest() + 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('show_locks_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 show_locks_result: """ Attributes: - - o1 + - success """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (0, TType.STRUCT, 'success', (ShowLocksResponse, ShowLocksResponse.thrift_spec), 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: @@ -40913,10 +42666,10 @@ 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 = ShowLocksResponse() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -40928,10 +42681,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('abort_txn_result') - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.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() @@ -40942,7 +42695,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): @@ -40956,19 +42709,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txns_args: +class heartbeat_args: """ Attributes: - - rqst + - ids """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (AbortTxnsRequest, AbortTxnsRequest.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: @@ -40981,8 +42734,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AbortTxnsRequest() - self.rqst.read(iprot) + self.ids = HeartbeatRequest() + self.ids.read(iprot) else: iprot.skip(ftype) else: @@ -40994,10 +42747,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('abort_txns_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() @@ -41008,7 +42761,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): @@ -41022,19 +42775,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txns_result: +class heartbeat_result: """ Attributes: - o1 + - o2 + - o3 """ 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', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 3 ) - def __init__(self, o1=None,): + 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: @@ -41047,10 +42806,22 @@ 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 = 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() @@ -41060,11 +42831,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('abort_txns_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() @@ -41075,6 +42854,8 @@ 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): @@ -41088,19 +42869,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class commit_txn_args: +class heartbeat_txn_range_args: """ Attributes: - - rqst + - txns """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CommitTxnRequest, CommitTxnRequest.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: @@ -41113,8 +42894,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = CommitTxnRequest() - self.rqst.read(iprot) + self.txns = HeartbeatTxnRangeRequest() + self.txns.read(iprot) else: iprot.skip(ftype) else: @@ -41126,10 +42907,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_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() @@ -41140,7 +42921,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): @@ -41154,22 +42935,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class commit_txn_result: +class heartbeat_txn_range_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', (HeartbeatTxnRangeResponse, HeartbeatTxnRangeResponse.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 +42957,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 = HeartbeatTxnRangeResponse() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -41201,14 +42972,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('heartbeat_txn_range_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 +42986,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,7 +43000,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class repl_tbl_writeid_state_args: +class compact_args: """ Attributes: - rqst @@ -41242,7 +43008,7 @@ class repl_tbl_writeid_state_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ReplTblWriteIdStateRequest, ReplTblWriteIdStateRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41259,7 +43025,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = ReplTblWriteIdStateRequest() + self.rqst = CompactionRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41272,7 +43038,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('repl_tbl_writeid_state_args') + oprot.writeStructBegin('compact_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41300,7 +43066,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class repl_tbl_writeid_state_result: +class compact_result: thrift_spec = ( ) @@ -41323,7 +43089,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('repl_tbl_writeid_state_result') + oprot.writeStructBegin('compact_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -41346,7 +43112,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_valid_write_ids_args: +class compact2_args: """ Attributes: - rqst @@ -41354,7 +43120,7 @@ class get_valid_write_ids_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (GetValidWriteIdsRequest, GetValidWriteIdsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41371,7 +43137,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = GetValidWriteIdsRequest() + self.rqst = CompactionRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41384,7 +43150,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_valid_write_ids_args') + oprot.writeStructBegin('compact2_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41412,24 +43178,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_valid_write_ids_result: +class compact2_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', (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: @@ -41442,22 +43202,10 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetValidWriteIdsResponse() + 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 = MetaException() - self.o2.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -41467,19 +43215,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('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() @@ -41490,8 +43230,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 +43243,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class allocate_table_write_ids_args: +class show_compact_args: """ Attributes: - rqst @@ -41513,7 +43251,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', (ShowCompactRequest, ShowCompactRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41530,7 +43268,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AllocateTableWriteIdsRequest() + self.rqst = ShowCompactRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41543,7 +43281,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('show_compact_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41571,27 +43309,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class allocate_table_write_ids_result: +class show_compact_result: """ Attributes: - success - - o1 - - o2 - - o3 """ 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 + (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: @@ -41604,28 +43333,10 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AllocateTableWriteIdsResponse() + 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 = MetaException() - self.o3.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -41635,23 +43346,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('allocate_table_write_ids_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() @@ -41662,9 +43361,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 +43374,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class lock_args: +class add_dynamic_partitions_args: """ Attributes: - rqst @@ -41686,7 +43382,7 @@ class lock_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (LockRequest, LockRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (AddDynamicPartitions, AddDynamicPartitions.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -41703,7 +43399,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = LockRequest() + self.rqst = AddDynamicPartitions() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -41716,7 +43412,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('add_dynamic_partitions_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -41744,22 +43440,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class lock_result: +class add_dynamic_partitions_result: """ Attributes: - - success - o1 - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), 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, o1=None, o2=None,): - self.success = success + def __init__(self, o1=None, o2=None,): self.o1 = o1 self.o2 = o2 @@ -41772,13 +43466,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = LockResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = NoSuchTxnException() self.o1.read(iprot) @@ -41799,11 +43487,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_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('add_dynamic_partitions_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -41821,7 +43505,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 @@ -41837,19 +43520,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class check_lock_args: +class find_next_compact_args: """ Attributes: - - rqst + - workerId """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CheckLockRequest, CheckLockRequest.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: @@ -41861,9 +43544,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.rqst = CheckLockRequest() - self.rqst.read(iprot) + if ftype == TType.STRING: + self.workerId = iprot.readString() else: iprot.skip(ftype) else: @@ -41875,10 +43557,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('check_lock_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() @@ -41889,7 +43571,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): @@ -41903,27 +43585,21 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class check_lock_result: +class find_next_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', (OptionalCompactionInfoStruct, OptionalCompactionInfoStruct.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, 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: @@ -41936,28 +43612,16 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = LockResponse() + self.success = OptionalCompactionInfoStruct() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() + self.o1 = MetaException() 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,7 +43631,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_result') + oprot.writeStructBegin('find_next_compact_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -41976,14 +43640,6 @@ 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() @@ -41995,8 +43651,6 @@ 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,19 +43664,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class unlock_args: +class update_compactor_state_args: """ Attributes: - - rqst + - cr + - txn_id """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (UnlockRequest, UnlockRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 + (2, TType.I64, 'txn_id', None, None, ), # 2 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, cr=None, txn_id=None,): + self.cr = cr + self.txn_id = txn_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: @@ -42035,8 +43692,13 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = UnlockRequest() - self.rqst.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.txn_id = iprot.readI64() else: iprot.skip(ftype) else: @@ -42048,10 +43710,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('unlock_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('update_compactor_state_args') + if self.cr is not None: + oprot.writeFieldBegin('cr', TType.STRUCT, 1) + self.cr.write(oprot) + oprot.writeFieldEnd() + if self.txn_id is not None: + oprot.writeFieldBegin('txn_id', TType.I64, 2) + oprot.writeI64(self.txn_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42062,7 +43728,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.cr) + value = (value * 31) ^ hash(self.txn_id) return value def __repr__(self): @@ -42076,23 +43743,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class unlock_result: - """ - Attributes: - - o1 - - o2 - """ +class update_compactor_state_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 ) - 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)) @@ -42102,18 +43757,6 @@ 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 = TxnOpenException() - self.o2.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -42123,15 +43766,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') - 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('update_compactor_state_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -42141,8 +43776,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): @@ -42156,19 +43789,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_locks_args: +class find_columns_with_stats_args: """ Attributes: - - rqst + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ShowLocksRequest, ShowLocksRequest.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: @@ -42181,8 +43814,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = ShowLocksRequest() - self.rqst.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -42194,10 +43827,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('show_locks_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + 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() @@ -42208,7 +43841,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): @@ -42222,14 +43855,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_locks_result: +class find_columns_with_stats_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ShowLocksResponse, ShowLocksResponse.thrift_spec), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 ) def __init__(self, success=None,): @@ -42245,9 +43878,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = ShowLocksResponse() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1384, _size1381) = iprot.readListBegin() + for _i1385 in xrange(_size1381): + _elem1386 = iprot.readString() + self.success.append(_elem1386) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -42259,10 +43896,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('show_locks_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 iter1387 in self.success: + oprot.writeString(iter1387) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42287,19 +43927,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_args: +class mark_cleaned_args: """ Attributes: - - ids + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'ids', (HeartbeatRequest, HeartbeatRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 ) - def __init__(self, ids=None,): - self.ids = ids + 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: @@ -42312,8 +43952,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.ids = HeartbeatRequest() - self.ids.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -42325,10 +43965,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_args') - if self.ids is not None: - oprot.writeFieldBegin('ids', TType.STRUCT, 1) - self.ids.write(oprot) + 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() @@ -42339,7 +43979,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.ids) + value = (value * 31) ^ hash(self.cr) return value def __repr__(self): @@ -42353,25 +43993,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_result: +class mark_cleaned_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 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, o1=None, o2=None, o3=None,): + def __init__(self, o1=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: @@ -42384,22 +44018,10 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchLockException() + self.o1 = MetaException() 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() @@ -42409,19 +44031,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('heartbeat_result') + oprot.writeStructBegin('mark_cleaned_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() @@ -42432,8 +44046,6 @@ 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): @@ -42447,19 +44059,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_txn_range_args: +class mark_compacted_args: """ Attributes: - - txns + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'txns', (HeartbeatTxnRangeRequest, HeartbeatTxnRangeRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'cr', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 ) - def __init__(self, txns=None,): - self.txns = txns + 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: @@ -42472,8 +44084,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.txns = HeartbeatTxnRangeRequest() - self.txns.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -42485,10 +44097,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('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() @@ -42499,7 +44111,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.txns) + value = (value * 31) ^ hash(self.cr) return value def __repr__(self): @@ -42513,18 +44125,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_txn_range_result: +class mark_compacted_result: """ Attributes: - - success + - o1 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (HeartbeatTxnRangeResponse, HeartbeatTxnRangeResponse.thrift_spec), 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: @@ -42535,10 +44148,10 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: + if fid == 1: if ftype == TType.STRUCT: - self.success = HeartbeatTxnRangeResponse() - self.success.read(iprot) + self.o1 = MetaException() + self.o1.read(iprot) else: iprot.skip(ftype) else: @@ -42550,10 +44163,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_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeStructBegin('mark_compacted_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42564,7 +44177,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): @@ -42578,19 +44191,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact_args: +class mark_failed_args: """ Attributes: - - rqst + - cr """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.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: @@ -42603,8 +44216,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = CompactionRequest() - self.rqst.read(iprot) + self.cr = CompactionInfoStruct() + self.cr.read(iprot) else: iprot.skip(ftype) else: @@ -42616,10 +44229,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('compact_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() @@ -42630,53 +44243,7 @@ def validate(self): 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 compact_result: - - 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('compact_result') - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 + value = (value * 31) ^ hash(self.cr) return value def __repr__(self): @@ -42690,19 +44257,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact2_args: +class mark_failed_result: """ Attributes: - - rqst + - o1 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + 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: @@ -42715,73 +44282,8 @@ def read(self, iprot): 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() - 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('compact2_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 compact2_result: - """ - Attributes: - - success - """ - - 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)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.STRUCT: - self.success = CompactionResponse() - self.success.read(iprot) + self.o1 = MetaException() + self.o1.read(iprot) else: iprot.skip(ftype) else: @@ -42793,10 +44295,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('compact2_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeStructBegin('mark_failed_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42807,7 +44309,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): @@ -42821,19 +44323,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_compact_args: +class set_hadoop_jobid_args: """ Attributes: - - rqst + - jobId + - cq_id """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ShowCompactRequest, ShowCompactRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'jobId', None, None, ), # 1 + (2, TType.I64, 'cq_id', None, None, ), # 2 ) - def __init__(self, rqst=None,): - self.rqst = rqst + 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: @@ -42845,74 +44350,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.rqst = ShowCompactRequest() - self.rqst.read(iprot) + if ftype == TType.STRING: + self.jobId = iprot.readString() 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('show_compact_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 show_compact_result: - """ - Attributes: - - success - """ - - thrift_spec = ( - (0, TType.STRUCT, 'success', (ShowCompactResponse, ShowCompactResponse.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 = ShowCompactResponse() - self.success.read(iprot) + elif fid == 2: + if ftype == TType.I64: + self.cq_id = iprot.readI64() else: iprot.skip(ftype) else: @@ -42924,76 +44368,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('show_compact_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.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() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - 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 add_dynamic_partitions_args: - """ - Attributes: - - rqst - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'rqst', (AddDynamicPartitions, AddDynamicPartitions.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 = AddDynamicPartitions() - 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('add_dynamic_partitions_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + 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() @@ -43004,7 +44386,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.jobId) + value = (value * 31) ^ hash(self.cq_id) return value def __repr__(self): @@ -43018,23 +44401,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_dynamic_partitions_result: - """ - Attributes: - - o1 - - o2 - """ +class set_hadoop_jobid_result: 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, 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)) @@ -43044,18 +44415,6 @@ 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 ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -43065,15 +44424,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_dynamic_partitions_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_hadoop_jobid_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -43083,8 +44434,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): @@ -48862,11 +50211,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1377, _size1374) = iprot.readListBegin() - for _i1378 in xrange(_size1374): - _elem1379 = SchemaVersion() - _elem1379.read(iprot) - self.success.append(_elem1379) + (_etype1391, _size1388) = iprot.readListBegin() + for _i1392 in xrange(_size1388): + _elem1393 = SchemaVersion() + _elem1393.read(iprot) + self.success.append(_elem1393) iprot.readListEnd() else: iprot.skip(ftype) @@ -48895,8 +50244,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 iter1380 in self.success: - iter1380.write(oprot) + for iter1394 in self.success: + iter1394.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -50371,11 +51720,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1384, _size1381) = iprot.readListBegin() - for _i1385 in xrange(_size1381): - _elem1386 = RuntimeStat() - _elem1386.read(iprot) - self.success.append(_elem1386) + (_etype1398, _size1395) = iprot.readListBegin() + for _i1399 in xrange(_size1395): + _elem1400 = RuntimeStat() + _elem1400.read(iprot) + self.success.append(_elem1400) iprot.readListEnd() else: iprot.skip(ftype) @@ -50398,8 +51747,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 iter1387 in self.success: - iter1387.write(oprot) + for iter1401 in self.success: + iter1401.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: 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 b85731e56b..f8b862862d 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 @@ -14703,6 +14703,288 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class OptionalCompactionInfoStruct: + """ + Attributes: + - ci + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'ci', (CompactionInfoStruct, CompactionInfoStruct.thrift_spec), None, ), # 1 + ) + + def __init__(self, ci=None,): + self.ci = ci + + 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.ci = CompactionInfoStruct() + self.ci.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('OptionalCompactionInfoStruct') + if self.ci is not None: + oprot.writeFieldBegin('ci', TType.STRUCT, 1) + self.ci.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.ci) + 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 CompactionInfoStruct: + """ + Attributes: + - id + - dbname + - tablename + - partitionname + - type + - runas + - properties + - toomanyaborts + - state + - workerId + - start + - highestWriteId + """ + + 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.STRING, 'properties', None, None, ), # 7 + (8, TType.BOOL, 'toomanyaborts', None, None, ), # 8 + (9, TType.STRING, 'state', None, None, ), # 9 + (10, TType.STRING, 'workerId', None, None, ), # 10 + (11, TType.I64, 'start', None, None, ), # 11 + (12, TType.I64, 'highestWriteId', None, None, ), # 12 + ) + + def __init__(self, id=None, dbname=None, tablename=None, partitionname=None, type=None, runas=None, properties=None, toomanyaborts=None, state=None, workerId=None, start=None, highestWriteId=None,): + self.id = id + self.dbname = dbname + self.tablename = tablename + self.partitionname = partitionname + self.type = type + self.runas = runas + self.properties = properties + self.toomanyaborts = toomanyaborts + self.state = state + self.workerId = workerId + self.start = start + self.highestWriteId = highestWriteId + + 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.STRING: + self.properties = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.BOOL: + self.toomanyaborts = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.state = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.workerId = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.start = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I64: + self.highestWriteId = iprot.readI64() + 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.STRING, 7) + oprot.writeString(self.properties) + oprot.writeFieldEnd() + if self.toomanyaborts is not None: + oprot.writeFieldBegin('toomanyaborts', TType.BOOL, 8) + oprot.writeBool(self.toomanyaborts) + oprot.writeFieldEnd() + if self.state is not None: + oprot.writeFieldBegin('state', TType.STRING, 9) + oprot.writeString(self.state) + oprot.writeFieldEnd() + if self.workerId is not None: + oprot.writeFieldBegin('workerId', TType.STRING, 10) + oprot.writeString(self.workerId) + oprot.writeFieldEnd() + if self.start is not None: + oprot.writeFieldBegin('start', TType.I64, 11) + oprot.writeI64(self.start) + oprot.writeFieldEnd() + if self.highestWriteId is not None: + oprot.writeFieldBegin('highestWriteId', TType.I64, 12) + oprot.writeI64(self.highestWriteId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.id is None: + raise TProtocol.TProtocolException(message='Required field id is unset!') + if self.dbname is None: + raise TProtocol.TProtocolException(message='Required field dbname is unset!') + if self.tablename is None: + raise TProtocol.TProtocolException(message='Required field tablename is unset!') + if self.type is None: + raise TProtocol.TProtocolException(message='Required field type is unset!') + 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) + value = (value * 31) ^ hash(self.toomanyaborts) + value = (value * 31) ^ hash(self.state) + value = (value * 31) ^ hash(self.workerId) + value = (value * 31) ^ hash(self.start) + value = (value * 31) ^ hash(self.highestWriteId) + 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: @@ -15619,10 +15901,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.eventTypeSkipList = [] - (_etype647, _size644) = iprot.readListBegin() - for _i648 in xrange(_size644): - _elem649 = iprot.readString() - self.eventTypeSkipList.append(_elem649) + (_etype654, _size651) = iprot.readListBegin() + for _i655 in xrange(_size651): + _elem656 = iprot.readString() + self.eventTypeSkipList.append(_elem656) iprot.readListEnd() else: iprot.skip(ftype) @@ -15647,8 +15929,8 @@ def write(self, oprot): if self.eventTypeSkipList is not None: oprot.writeFieldBegin('eventTypeSkipList', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.eventTypeSkipList)) - for iter650 in self.eventTypeSkipList: - oprot.writeString(iter650) + for iter657 in self.eventTypeSkipList: + oprot.writeString(iter657) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15868,11 +16150,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype654, _size651) = iprot.readListBegin() - for _i655 in xrange(_size651): - _elem656 = NotificationEvent() - _elem656.read(iprot) - self.events.append(_elem656) + (_etype661, _size658) = iprot.readListBegin() + for _i662 in xrange(_size658): + _elem663 = NotificationEvent() + _elem663.read(iprot) + self.events.append(_elem663) iprot.readListEnd() else: iprot.skip(ftype) @@ -15889,8 +16171,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 iter657 in self.events: - iter657.write(oprot) + for iter664 in self.events: + iter664.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16213,30 +16495,30 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype661, _size658) = iprot.readListBegin() - for _i662 in xrange(_size658): - _elem663 = iprot.readString() - self.filesAdded.append(_elem663) + (_etype668, _size665) = iprot.readListBegin() + for _i669 in xrange(_size665): + _elem670 = iprot.readString() + self.filesAdded.append(_elem670) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype667, _size664) = iprot.readListBegin() - for _i668 in xrange(_size664): - _elem669 = iprot.readString() - self.filesAddedChecksum.append(_elem669) + (_etype674, _size671) = iprot.readListBegin() + for _i675 in xrange(_size671): + _elem676 = iprot.readString() + self.filesAddedChecksum.append(_elem676) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.subDirectoryList = [] - (_etype673, _size670) = iprot.readListBegin() - for _i674 in xrange(_size670): - _elem675 = iprot.readString() - self.subDirectoryList.append(_elem675) + (_etype680, _size677) = iprot.readListBegin() + for _i681 in xrange(_size677): + _elem682 = iprot.readString() + self.subDirectoryList.append(_elem682) iprot.readListEnd() else: iprot.skip(ftype) @@ -16257,22 +16539,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 iter676 in self.filesAdded: - oprot.writeString(iter676) + for iter683 in self.filesAdded: + oprot.writeString(iter683) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter677 in self.filesAddedChecksum: - oprot.writeString(iter677) + for iter684 in self.filesAddedChecksum: + oprot.writeString(iter684) oprot.writeListEnd() oprot.writeFieldEnd() if self.subDirectoryList is not None: oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) - for iter678 in self.subDirectoryList: - oprot.writeString(iter678) + for iter685 in self.subDirectoryList: + oprot.writeString(iter685) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16431,10 +16713,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype682, _size679) = iprot.readListBegin() - for _i683 in xrange(_size679): - _elem684 = iprot.readString() - self.partitionVals.append(_elem684) + (_etype689, _size686) = iprot.readListBegin() + for _i690 in xrange(_size686): + _elem691 = iprot.readString() + self.partitionVals.append(_elem691) iprot.readListEnd() else: iprot.skip(ftype) @@ -16472,8 +16754,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 iter685 in self.partitionVals: - oprot.writeString(iter685) + for iter692 in self.partitionVals: + oprot.writeString(iter692) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -16625,10 +16907,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionVals = [] - (_etype689, _size686) = iprot.readListBegin() - for _i690 in xrange(_size686): - _elem691 = iprot.readString() - self.partitionVals.append(_elem691) + (_etype696, _size693) = iprot.readListBegin() + for _i697 in xrange(_size693): + _elem698 = iprot.readString() + self.partitionVals.append(_elem698) iprot.readListEnd() else: iprot.skip(ftype) @@ -16665,8 +16947,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 iter692 in self.partitionVals: - oprot.writeString(iter692) + for iter699 in self.partitionVals: + oprot.writeString(iter699) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16860,12 +17142,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype694, _vtype695, _size693 ) = iprot.readMapBegin() - for _i697 in xrange(_size693): - _key698 = iprot.readI64() - _val699 = MetadataPpdResult() - _val699.read(iprot) - self.metadata[_key698] = _val699 + (_ktype701, _vtype702, _size700 ) = iprot.readMapBegin() + for _i704 in xrange(_size700): + _key705 = iprot.readI64() + _val706 = MetadataPpdResult() + _val706.read(iprot) + self.metadata[_key705] = _val706 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16887,9 +17169,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 kiter700,viter701 in self.metadata.items(): - oprot.writeI64(kiter700) - viter701.write(oprot) + for kiter707,viter708 in self.metadata.items(): + oprot.writeI64(kiter707) + viter708.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -16959,10 +17241,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype705, _size702) = iprot.readListBegin() - for _i706 in xrange(_size702): - _elem707 = iprot.readI64() - self.fileIds.append(_elem707) + (_etype712, _size709) = iprot.readListBegin() + for _i713 in xrange(_size709): + _elem714 = iprot.readI64() + self.fileIds.append(_elem714) iprot.readListEnd() else: iprot.skip(ftype) @@ -16994,8 +17276,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 iter708 in self.fileIds: - oprot.writeI64(iter708) + for iter715 in self.fileIds: + oprot.writeI64(iter715) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -17069,11 +17351,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype710, _vtype711, _size709 ) = iprot.readMapBegin() - for _i713 in xrange(_size709): - _key714 = iprot.readI64() - _val715 = iprot.readString() - self.metadata[_key714] = _val715 + (_ktype717, _vtype718, _size716 ) = iprot.readMapBegin() + for _i720 in xrange(_size716): + _key721 = iprot.readI64() + _val722 = iprot.readString() + self.metadata[_key721] = _val722 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17095,9 +17377,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 kiter716,viter717 in self.metadata.items(): - oprot.writeI64(kiter716) - oprot.writeString(viter717) + for kiter723,viter724 in self.metadata.items(): + oprot.writeI64(kiter723) + oprot.writeString(viter724) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -17158,10 +17440,10 @@ 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) + (_etype728, _size725) = iprot.readListBegin() + for _i729 in xrange(_size725): + _elem730 = iprot.readI64() + self.fileIds.append(_elem730) iprot.readListEnd() else: iprot.skip(ftype) @@ -17178,8 +17460,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 iter724 in self.fileIds: - oprot.writeI64(iter724) + for iter731 in self.fileIds: + oprot.writeI64(iter731) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17285,20 +17567,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype728, _size725) = iprot.readListBegin() - for _i729 in xrange(_size725): - _elem730 = iprot.readI64() - self.fileIds.append(_elem730) + (_etype735, _size732) = iprot.readListBegin() + for _i736 in xrange(_size732): + _elem737 = iprot.readI64() + self.fileIds.append(_elem737) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype734, _size731) = iprot.readListBegin() - for _i735 in xrange(_size731): - _elem736 = iprot.readString() - self.metadata.append(_elem736) + (_etype741, _size738) = iprot.readListBegin() + for _i742 in xrange(_size738): + _elem743 = iprot.readString() + self.metadata.append(_elem743) iprot.readListEnd() else: iprot.skip(ftype) @@ -17320,15 +17602,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 iter737 in self.fileIds: - oprot.writeI64(iter737) + for iter744 in self.fileIds: + oprot.writeI64(iter744) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter738 in self.metadata: - oprot.writeString(iter738) + for iter745 in self.metadata: + oprot.writeString(iter745) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -17436,10 +17718,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype742, _size739) = iprot.readListBegin() - for _i743 in xrange(_size739): - _elem744 = iprot.readI64() - self.fileIds.append(_elem744) + (_etype749, _size746) = iprot.readListBegin() + for _i750 in xrange(_size746): + _elem751 = iprot.readI64() + self.fileIds.append(_elem751) iprot.readListEnd() else: iprot.skip(ftype) @@ -17456,8 +17738,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 iter745 in self.fileIds: - oprot.writeI64(iter745) + for iter752 in self.fileIds: + oprot.writeI64(iter752) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17686,11 +17968,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype749, _size746) = iprot.readListBegin() - for _i750 in xrange(_size746): - _elem751 = Function() - _elem751.read(iprot) - self.functions.append(_elem751) + (_etype756, _size753) = iprot.readListBegin() + for _i757 in xrange(_size753): + _elem758 = Function() + _elem758.read(iprot) + self.functions.append(_elem758) iprot.readListEnd() else: iprot.skip(ftype) @@ -17707,8 +17989,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 iter752 in self.functions: - iter752.write(oprot) + for iter759 in self.functions: + iter759.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17760,10 +18042,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype756, _size753) = iprot.readListBegin() - for _i757 in xrange(_size753): - _elem758 = iprot.readI32() - self.values.append(_elem758) + (_etype763, _size760) = iprot.readListBegin() + for _i764 in xrange(_size760): + _elem765 = iprot.readI32() + self.values.append(_elem765) iprot.readListEnd() else: iprot.skip(ftype) @@ -17780,8 +18062,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 iter759 in self.values: - oprot.writeI32(iter759) + for iter766 in self.values: + oprot.writeI32(iter766) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18053,10 +18335,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype763, _size760) = iprot.readListBegin() - for _i764 in xrange(_size760): - _elem765 = iprot.readString() - self.tblNames.append(_elem765) + (_etype770, _size767) = iprot.readListBegin() + for _i771 in xrange(_size767): + _elem772 = iprot.readString() + self.tblNames.append(_elem772) iprot.readListEnd() else: iprot.skip(ftype) @@ -18088,8 +18370,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 iter766 in self.tblNames: - oprot.writeString(iter766) + for iter773 in self.tblNames: + oprot.writeString(iter773) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -18154,11 +18436,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype770, _size767) = iprot.readListBegin() - for _i771 in xrange(_size767): - _elem772 = Table() - _elem772.read(iprot) - self.tables.append(_elem772) + (_etype777, _size774) = iprot.readListBegin() + for _i778 in xrange(_size774): + _elem779 = Table() + _elem779.read(iprot) + self.tables.append(_elem779) iprot.readListEnd() else: iprot.skip(ftype) @@ -18175,8 +18457,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 iter773 in self.tables: - iter773.write(oprot) + for iter780 in self.tables: + iter780.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19475,44 +19757,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype777, _size774) = iprot.readListBegin() - for _i778 in xrange(_size774): - _elem779 = WMPool() - _elem779.read(iprot) - self.pools.append(_elem779) + (_etype784, _size781) = iprot.readListBegin() + for _i785 in xrange(_size781): + _elem786 = WMPool() + _elem786.read(iprot) + self.pools.append(_elem786) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype783, _size780) = iprot.readListBegin() - for _i784 in xrange(_size780): - _elem785 = WMMapping() - _elem785.read(iprot) - self.mappings.append(_elem785) + (_etype790, _size787) = iprot.readListBegin() + for _i791 in xrange(_size787): + _elem792 = WMMapping() + _elem792.read(iprot) + self.mappings.append(_elem792) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype789, _size786) = iprot.readListBegin() - for _i790 in xrange(_size786): - _elem791 = WMTrigger() - _elem791.read(iprot) - self.triggers.append(_elem791) + (_etype796, _size793) = iprot.readListBegin() + for _i797 in xrange(_size793): + _elem798 = WMTrigger() + _elem798.read(iprot) + self.triggers.append(_elem798) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype795, _size792) = iprot.readListBegin() - for _i796 in xrange(_size792): - _elem797 = WMPoolTrigger() - _elem797.read(iprot) - self.poolTriggers.append(_elem797) + (_etype802, _size799) = iprot.readListBegin() + for _i803 in xrange(_size799): + _elem804 = WMPoolTrigger() + _elem804.read(iprot) + self.poolTriggers.append(_elem804) iprot.readListEnd() else: iprot.skip(ftype) @@ -19533,29 +19815,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 iter798 in self.pools: - iter798.write(oprot) + for iter805 in self.pools: + iter805.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 iter799 in self.mappings: - iter799.write(oprot) + for iter806 in self.mappings: + iter806.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 iter800 in self.triggers: - iter800.write(oprot) + for iter807 in self.triggers: + iter807.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 iter801 in self.poolTriggers: - iter801.write(oprot) + for iter808 in self.poolTriggers: + iter808.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20080,11 +20362,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype805, _size802) = iprot.readListBegin() - for _i806 in xrange(_size802): - _elem807 = WMResourcePlan() - _elem807.read(iprot) - self.resourcePlans.append(_elem807) + (_etype812, _size809) = iprot.readListBegin() + for _i813 in xrange(_size809): + _elem814 = WMResourcePlan() + _elem814.read(iprot) + self.resourcePlans.append(_elem814) iprot.readListEnd() else: iprot.skip(ftype) @@ -20101,8 +20383,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 iter808 in self.resourcePlans: - iter808.write(oprot) + for iter815 in self.resourcePlans: + iter815.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20432,20 +20714,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype812, _size809) = iprot.readListBegin() - for _i813 in xrange(_size809): - _elem814 = iprot.readString() - self.errors.append(_elem814) + (_etype819, _size816) = iprot.readListBegin() + for _i820 in xrange(_size816): + _elem821 = iprot.readString() + self.errors.append(_elem821) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype818, _size815) = iprot.readListBegin() - for _i819 in xrange(_size815): - _elem820 = iprot.readString() - self.warnings.append(_elem820) + (_etype825, _size822) = iprot.readListBegin() + for _i826 in xrange(_size822): + _elem827 = iprot.readString() + self.warnings.append(_elem827) iprot.readListEnd() else: iprot.skip(ftype) @@ -20462,15 +20744,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 iter821 in self.errors: - oprot.writeString(iter821) + for iter828 in self.errors: + oprot.writeString(iter828) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter822 in self.warnings: - oprot.writeString(iter822) + for iter829 in self.warnings: + oprot.writeString(iter829) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21086,11 +21368,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype826, _size823) = iprot.readListBegin() - for _i827 in xrange(_size823): - _elem828 = WMTrigger() - _elem828.read(iprot) - self.triggers.append(_elem828) + (_etype833, _size830) = iprot.readListBegin() + for _i834 in xrange(_size830): + _elem835 = WMTrigger() + _elem835.read(iprot) + self.triggers.append(_elem835) iprot.readListEnd() else: iprot.skip(ftype) @@ -21107,8 +21389,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 iter829 in self.triggers: - iter829.write(oprot) + for iter836 in self.triggers: + iter836.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22318,11 +22600,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype833, _size830) = iprot.readListBegin() - for _i834 in xrange(_size830): - _elem835 = FieldSchema() - _elem835.read(iprot) - self.cols.append(_elem835) + (_etype840, _size837) = iprot.readListBegin() + for _i841 in xrange(_size837): + _elem842 = FieldSchema() + _elem842.read(iprot) + self.cols.append(_elem842) iprot.readListEnd() else: iprot.skip(ftype) @@ -22382,8 +22664,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 iter836 in self.cols: - iter836.write(oprot) + for iter843 in self.cols: + iter843.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -22638,11 +22920,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype840, _size837) = iprot.readListBegin() - for _i841 in xrange(_size837): - _elem842 = SchemaVersionDescriptor() - _elem842.read(iprot) - self.schemaVersions.append(_elem842) + (_etype847, _size844) = iprot.readListBegin() + for _i848 in xrange(_size844): + _elem849 = SchemaVersionDescriptor() + _elem849.read(iprot) + self.schemaVersions.append(_elem849) iprot.readListEnd() else: iprot.skip(ftype) @@ -22659,8 +22941,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 iter843 in self.schemaVersions: - iter843.write(oprot) + for iter850 in self.schemaVersions: + iter850.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23145,11 +23427,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitions = [] - (_etype847, _size844) = iprot.readListBegin() - for _i848 in xrange(_size844): - _elem849 = Partition() - _elem849.read(iprot) - self.partitions.append(_elem849) + (_etype854, _size851) = iprot.readListBegin() + for _i855 in xrange(_size851): + _elem856 = Partition() + _elem856.read(iprot) + self.partitions.append(_elem856) iprot.readListEnd() else: iprot.skip(ftype) @@ -23194,8 +23476,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 iter850 in self.partitions: - iter850.write(oprot) + for iter857 in self.partitions: + iter857.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environmentContext is not None: @@ -23347,10 +23629,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype854, _size851) = iprot.readListBegin() - for _i855 in xrange(_size851): - _elem856 = iprot.readString() - self.partVals.append(_elem856) + (_etype861, _size858) = iprot.readListBegin() + for _i862 in xrange(_size858): + _elem863 = iprot.readString() + self.partVals.append(_elem863) iprot.readListEnd() else: iprot.skip(ftype) @@ -23390,8 +23672,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 iter857 in self.partVals: - oprot.writeString(iter857) + for iter864 in self.partVals: + oprot.writeString(iter864) oprot.writeListEnd() oprot.writeFieldEnd() if self.newPart is not None: @@ -23713,10 +23995,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldList = [] - (_etype861, _size858) = iprot.readListBegin() - for _i862 in xrange(_size858): - _elem863 = iprot.readString() - self.fieldList.append(_elem863) + (_etype868, _size865) = iprot.readListBegin() + for _i869 in xrange(_size865): + _elem870 = iprot.readString() + self.fieldList.append(_elem870) iprot.readListEnd() else: iprot.skip(ftype) @@ -23743,8 +24025,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 iter864 in self.fieldList: - oprot.writeString(iter864) + for iter871 in self.fieldList: + oprot.writeString(iter871) oprot.writeListEnd() oprot.writeFieldEnd() if self.includeParamKeyPattern is not None: @@ -23820,10 +24102,10 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.filters = [] - (_etype868, _size865) = iprot.readListBegin() - for _i869 in xrange(_size865): - _elem870 = iprot.readString() - self.filters.append(_elem870) + (_etype875, _size872) = iprot.readListBegin() + for _i876 in xrange(_size872): + _elem877 = iprot.readString() + self.filters.append(_elem877) iprot.readListEnd() else: iprot.skip(ftype) @@ -23844,8 +24126,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 iter871 in self.filters: - oprot.writeString(iter871) + for iter878 in self.filters: + oprot.writeString(iter878) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23898,11 +24180,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionSpec = [] - (_etype875, _size872) = iprot.readListBegin() - for _i876 in xrange(_size872): - _elem877 = PartitionSpec() - _elem877.read(iprot) - self.partitionSpec.append(_elem877) + (_etype882, _size879) = iprot.readListBegin() + for _i883 in xrange(_size879): + _elem884 = PartitionSpec() + _elem884.read(iprot) + self.partitionSpec.append(_elem884) iprot.readListEnd() else: iprot.skip(ftype) @@ -23919,8 +24201,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 iter878 in self.partitionSpec: - iter878.write(oprot) + for iter885 in self.partitionSpec: + iter885.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24018,10 +24300,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.groupNames = [] - (_etype882, _size879) = iprot.readListBegin() - for _i883 in xrange(_size879): - _elem884 = iprot.readString() - self.groupNames.append(_elem884) + (_etype889, _size886) = iprot.readListBegin() + for _i890 in xrange(_size886): + _elem891 = iprot.readString() + self.groupNames.append(_elem891) iprot.readListEnd() else: iprot.skip(ftype) @@ -24070,8 +24352,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 iter885 in self.groupNames: - oprot.writeString(iter885) + for iter892 in self.groupNames: + oprot.writeString(iter892) 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 62154796d2..dfc5d7b294 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 @@ -3263,6 +3263,67 @@ class CompactionRequest ::Thrift::Struct.generate_accessors self end +class OptionalCompactionInfoStruct + include ::Thrift::Struct, ::Thrift::Struct_Union + CI = 1 + + FIELDS = { + CI => {:type => ::Thrift::Types::STRUCT, :name => 'ci', :class => ::CompactionInfoStruct, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::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 + TOOMANYABORTS = 8 + STATE = 9 + WORKERID = 10 + START = 11 + HIGHESTWRITEID = 12 + + FIELDS = { + ID => {:type => ::Thrift::Types::I64, :name => 'id'}, + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'}, + TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tablename'}, + PARTITIONNAME => {:type => ::Thrift::Types::STRING, :name => 'partitionname', :optional => true}, + TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::CompactionType}, + RUNAS => {:type => ::Thrift::Types::STRING, :name => 'runas', :optional => true}, + PROPERTIES => {:type => ::Thrift::Types::STRING, :name => 'properties', :optional => true}, + TOOMANYABORTS => {:type => ::Thrift::Types::BOOL, :name => 'toomanyaborts', :optional => true}, + STATE => {:type => ::Thrift::Types::STRING, :name => 'state', :optional => true}, + WORKERID => {:type => ::Thrift::Types::STRING, :name => 'workerId', :optional => true}, + START => {:type => ::Thrift::Types::I64, :name => 'start', :optional => true}, + HIGHESTWRITEID => {:type => ::Thrift::Types::I64, :name => 'highestWriteId', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbname is unset!') unless @dbname + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tablename is unset!') unless @tablename + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type + 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..35e1693efa 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 @@ -2782,6 +2782,110 @@ module ThriftHiveMetastore return 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 update_compactor_state(cr, txn_id) + send_update_compactor_state(cr, txn_id) + recv_update_compactor_state() + end + + def send_update_compactor_state(cr, txn_id) + send_message('update_compactor_state', Update_compactor_state_args, :cr => cr, :txn_id => txn_id) + end + + def recv_update_compactor_state() + result = receive_message(Update_compactor_state_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 + def get_next_notification(rqst) send_get_next_notification(rqst) return recv_get_next_notification() @@ -5705,6 +5809,71 @@ module ThriftHiveMetastore write_result(result, oprot, 'add_dynamic_partitions', 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_update_compactor_state(seqid, iprot, oprot) + args = read_args(iprot, Update_compactor_state_args) + result = Update_compactor_state_result.new() + @handler.update_compactor_state(args.cr, args.txn_id) + write_result(result, oprot, 'update_compactor_state', 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 + def process_get_next_notification(seqid, iprot, oprot) args = read_args(iprot, Get_next_notification_args) result = Get_next_notification_result.new() @@ -12523,6 +12692,234 @@ 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 => ::OptionalCompactionInfoStruct}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Update_compactor_state_args + include ::Thrift::Struct, ::Thrift::Struct_Union + CR = 1 + TXN_ID = 2 + + FIELDS = { + CR => {:type => ::Thrift::Types::STRUCT, :name => 'cr', :class => ::CompactionInfoStruct}, + TXN_ID => {:type => ::Thrift::Types::I64, :name => 'txn_id'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Update_compactor_state_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 + class Get_next_notification_args include ::Thrift::Struct, ::Thrift::Struct_Union RQST = 1 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 9eb1193a27..748b56b0a2 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 @@ -3701,4 +3701,39 @@ public GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request throws TException { return client.get_partitions_with_specs(request); } + + @Override + public OptionalCompactionInfoStruct findNextCompact(String workerId) throws MetaException, TException { + return client.find_next_compact(workerId); + } + + @Override + public void updateCompactorState(CompactionInfoStruct cr, long txnId) throws TException { + client.update_compactor_state(cr, txnId); + } + + @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 cqId) throws MetaException, TException { + client.set_hadoop_jobid(jobId, cqId); + } } 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..c96bf0d90e 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 @@ -129,6 +129,8 @@ 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.CompactionInfoStruct; +import org.apache.hadoop.hive.metastore.api.OptionalCompactionInfoStruct; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.ObjectPair; import org.apache.thrift.TException; @@ -3805,4 +3807,61 @@ void createOrDropTriggerToPoolMapping(String resourcePlanName, String triggerNam */ GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request) throws TException; + /** + * Get the next compaction job to do. + * @param workerId id of the worker requesting. + * @return next compaction job encapsulated in a {@link CompactionInfoStruct}. + * @throws MetaException + * @throws TException + */ + OptionalCompactionInfoStruct findNextCompact(String workerId) throws MetaException, TException; + + /** + * Set the compaction highest write id. + * @param cr compaction job being done. + * @param txnId transaction id. + * @throws TException + */ + void updateCompactorState(CompactionInfoStruct cr, long txnId) throws TException; + + /** + * Get columns. + * @param cr compaction job. + * @return + * @throws TException + */ + List findColumnsWithStats(CompactionInfoStruct cr) throws TException; + + /** + * Mark a finished compaction as cleaned. + * @param cr compaction job. + * @throws MetaException + * @throws TException + */ + void markCleaned(CompactionInfoStruct cr) throws MetaException, TException; + + /** + * Mark a finished compaction as compacted. + * @param cr compaction job. + * @throws MetaException + * @throws TException + */ + void markCompacted(CompactionInfoStruct cr) throws MetaException, TException; + + /** + * Mark a finished compaction as failed. + * @param cr compaction job. + * @throws MetaException + * @throws TException + */ + void markFailed(CompactionInfoStruct cr) throws MetaException, TException; + + /** + * Set the hadoop id for a compaction. + * @param jobId mapreduce job id that will do the compaction. + * @param cqId compaction id. + * @throws MetaException + * @throws TException + */ + void setHadoopJobid(String jobId, long cqId) 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 fb0b2fe6fb..eb95e129a1 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 @@ -1037,6 +1037,10 @@ public static ConfVars getMetaConf(String name) { "Batch size for partition and other object retrieval from the underlying DB in JDO.\n" + "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_METASTORE_RUNWORKER_IN("hive.metastore.runworker.in", + "hive.metastore.runworker.in", "metastore", new StringSetValidator("metastore", "hs2"), + "Chooses where the compactor worker threads should run, Only possible values" + + " are \"metastore\" and \"hs2\""), // Hive values we have copied and use as is // These two are used to indicate that we are running tests diff --git standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift index 9e4f3c244a..7d09a5c296 100644 --- standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift +++ standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift @@ -1076,6 +1076,25 @@ struct CompactionRequest { 6: optional map properties } +struct OptionalCompactionInfoStruct { + 1: optional CompactionInfoStruct ci, +} + +struct CompactionInfoStruct { + 1: required i64 id, + 2: required string dbname, + 3: required string tablename, + 4: optional string partitionname, + 5: required CompactionType type, + 6: optional string runas, + 7: optional string properties + 8: optional bool toomanyaborts + 9: optional string state + 10: optional string workerId + 11: optional i64 start + 12: optional i64 highestWriteId +} + struct CompactionResponse { 1: required i64 id, 2: required string state, @@ -2319,6 +2338,13 @@ service ThriftHiveMetastore extends fb303.FacebookService CompactionResponse compact2(1:CompactionRequest rqst) ShowCompactResponse show_compact(1:ShowCompactRequest rqst) void add_dynamic_partitions(1:AddDynamicPartitions rqst) throws (1:NoSuchTxnException o1, 2:TxnAbortedException o2) + OptionalCompactionInfoStruct find_next_compact(1: string workerId) throws(1:MetaException o1) + void update_compactor_state(1: CompactionInfoStruct cr, 2: i64 txn_id) + 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) // Notification logging calls NotificationEventResponse get_next_notification(1:NotificationEventRequest rqst) 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 0a1b96dcf6..a9398ae1e7 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 @@ -153,6 +153,7 @@ import org.apache.hadoop.hive.metastore.security.HadoopThriftAuthBridge; import org.apache.hadoop.hive.metastore.security.MetastoreDelegationTokenManager; import org.apache.hadoop.hive.metastore.security.TUGIContainingTransport; +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.hive.metastore.utils.MetaStoreServerUtils; @@ -7432,6 +7433,43 @@ public GetValidWriteIdsResponse get_valid_write_ids(GetValidWriteIdsRequest rqst return getTxnHandler().getValidWriteIds(rqst); } + @Override + public void set_hadoop_jobid(String jobId, long cqId) { + getTxnHandler().setHadoopJobId(jobId, cqId); + } + + @Override + public OptionalCompactionInfoStruct find_next_compact(String workerId) throws MetaException{ + return CompactionInfo.compactionInfoToOptionalStruct( + getTxnHandler().findNextToCompact(workerId)); + } + + @Override + public void mark_cleaned(CompactionInfoStruct cr) throws MetaException { + getTxnHandler().markCleaned(CompactionInfo.compactionStructToInfo(cr)); + } + + @Override + public void mark_compacted(CompactionInfoStruct cr) throws MetaException { + getTxnHandler().markCompacted(CompactionInfo.compactionStructToInfo(cr)); + } + + @Override + public void mark_failed(CompactionInfoStruct cr) throws MetaException { + getTxnHandler().markFailed(CompactionInfo.compactionStructToInfo(cr)); + } + + @Override + public List find_columns_with_stats(CompactionInfoStruct cr) throws MetaException { + return getTxnHandler().findColumnsWithStats(CompactionInfo.compactionStructToInfo(cr)); + } + + @Override + public void update_compactor_state(CompactionInfoStruct cr, long highWaterMark) throws MetaException { + getTxnHandler().updateCompactorState( + CompactionInfo.compactionStructToInfo(cr), highWaterMark); + } + @Override public AllocateTableWriteIdsResponse allocate_table_write_ids( AllocateTableWriteIdsRequest rqst) throws TException { @@ -9546,7 +9584,9 @@ public void run() { startCondition.await(); } startCompactorInitiator(conf); - startCompactorWorkers(conf); + if (MetastoreConf.getVar(conf, MetastoreConf.ConfVars.HIVE_METASTORE_RUNWORKER_IN).equals("metastore")) { + startCompactorWorkers(conf); + } startCompactorCleaner(conf); startRemoteOnlyTasks(conf); startStatsUpdater(conf); @@ -9613,7 +9653,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..ea6155200c 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 @@ -19,7 +19,6 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.hive.metastore.api.MetaException; import java.util.concurrent.atomic.AtomicBoolean; @@ -47,7 +46,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/txn/CompactionInfo.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionInfo.java index b34b7d70de..ea70503988 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionInfo.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionInfo.java @@ -18,7 +18,9 @@ package org.apache.hadoop.hive.metastore.txn; import org.apache.hadoop.hive.common.ValidCompactorWriteIdList; +import org.apache.hadoop.hive.metastore.api.CompactionInfoStruct; import org.apache.hadoop.hive.metastore.api.CompactionType; +import org.apache.hadoop.hive.metastore.api.OptionalCompactionInfoStruct; import org.apache.hadoop.hive.metastore.api.TableValidWriteIds; import java.sql.PreparedStatement; @@ -29,14 +31,22 @@ * Information on a possible or running compaction. */ public class CompactionInfo implements Comparable { + + /** + * Modifying this variables or adding new ones should be done in sync + * with the static methods {@code compactionStructToInfo()} and + * {@code compactionInfoToStruct()}. This class is going to be deserialized + * and serialized so missing this may result in the value of the field + * being resetted. This will be fixed at HIVE-21056. + */ public long id; public String dbname; public String tableName; public String partName; - char state; + public char state; public CompactionType type; - String workerId; - long start; + public String workerId; + public long start; public String runAs; public String properties; public boolean tooManyAborts = false; @@ -167,4 +177,61 @@ static void insertIntoCompletedCompactions(PreparedStatement pStmt, CompactionIn pStmt.setBytes(13, ci.metaInfo); pStmt.setString(14, ci.hadoopJobId); } + + public static CompactionInfo compactionStructToInfo(CompactionInfoStruct cr) { + if (cr == null) { + return null; + } + CompactionInfo ci = new CompactionInfo(cr.getDbname(), cr.getTablename(), cr.getPartitionname(), cr.getType()); + ci.id = cr.getId(); + ci.runAs = cr.getRunas(); + ci.properties = cr.getProperties(); + if (cr.isSetToomanyaborts()) { + ci.tooManyAborts = cr.isToomanyaborts(); + } + if (cr.isSetState() && cr.getState().length() != 1) { + throw new IllegalStateException("State should only be one character but it was set to " + cr.getState()); + } else if (cr.isSetState()) { + ci.state = cr.getState().charAt(0); + } + ci.workerId = cr.getWorkerId(); + if (cr.isSetStart()) { + ci.start = cr.getStart(); + } + if (cr.isSetHighestWriteId()) { + ci.highestWriteId = cr.getHighestWriteId(); + } + return ci; + } + + public static CompactionInfoStruct compactionInfoToStruct(CompactionInfo ci) { + if (ci == null) { + return null; + } + CompactionInfoStruct cr = new CompactionInfoStruct(ci.id, ci.dbname, ci.tableName, ci.type); + cr.setPartitionname(ci.partName); + cr.setRunas(ci.runAs); + cr.setProperties(ci.properties); + cr.setToomanyaborts(ci.tooManyAborts); + cr.setStart(ci.start); + cr.setState(Character.toString(ci.state)); + cr.setWorkerId(ci.workerId); + cr.setHighestWriteId(ci.highestWriteId); + return cr; + } + + public static OptionalCompactionInfoStruct compactionInfoToOptionalStruct(CompactionInfo ci) { + CompactionInfoStruct cis = compactionInfoToStruct(ci); + OptionalCompactionInfoStruct ocis = new OptionalCompactionInfoStruct(); + if (cis != null) { + ocis.setCi(cis); + } + return ocis; + } + public static CompactionInfo optionalCompactionInfoStructToInfo(OptionalCompactionInfoStruct ocis) { + if (ocis.isSetCi()) { + return compactionStructToInfo(ocis.getCi()); + } + return null; + } } 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..ea4e39458d 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 @@ -65,8 +65,6 @@ import org.apache.hadoop.hive.metastore.ColumnType; import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.IMetaStoreClient; -import org.apache.hadoop.hive.metastore.RawStore; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.Warehouse; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; 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..a3f5e2c754 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,39 @@ public GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request throws TException { throw new UnsupportedOperationException(); } + + @Override + public OptionalCompactionInfoStruct findNextCompact(String workerId) throws MetaException, TException { + return client.find_next_compact(workerId); + } + + @Override + public void updateCompactorState(CompactionInfoStruct cr, long txnId) throws TException { + client.update_compactor_state(cr, txnId); + } + + @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 cqId) throws MetaException, TException { + client.set_hadoop_jobid(jobId, cqId); + } } diff --git streaming/src/test/org/apache/hive/streaming/TestStreaming.java streaming/src/test/org/apache/hive/streaming/TestStreaming.java index 2170178a81..c6d7e7f27c 100644 --- streaming/src/test/org/apache/hive/streaming/TestStreaming.java +++ streaming/src/test/org/apache/hive/streaming/TestStreaming.java @@ -63,7 +63,6 @@ import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; import org.apache.hadoop.hive.metastore.api.LockState; import org.apache.hadoop.hive.metastore.api.LockType; -import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; @@ -783,7 +782,7 @@ public void testAutoRollTransactionBatch() throws Exception { /** * this is a clone from TestHiveStreamingConnection.TxnStatement2.... */ - public static void runWorker(HiveConf hiveConf) throws MetaException { + public static void runWorker(HiveConf hiveConf) throws Exception { AtomicBoolean stop = new AtomicBoolean(true); Worker t = new Worker(); t.setThreadId((int) t.getId());