diff --git a/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/IcebergCompactionService.java b/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/IcebergCompactionService.java index 32913882fc38..7568c0d9bf03 100644 --- a/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/IcebergCompactionService.java +++ b/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/IcebergCompactionService.java @@ -18,6 +18,7 @@ package org.apache.iceberg.mr.hive.compaction; +import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.txn.TxnUtils; import org.apache.hadoop.hive.metastore.txn.entities.CompactionInfo; @@ -40,15 +41,10 @@ public IcebergCompactionService() { public Boolean compact(Table table, CompactionInfo ci) throws Exception { - if (!ci.isMajorCompaction() && !ci.isMinorCompaction()) { - ci.errorMessage = String.format( - "Iceberg tables do not support %s compaction type, supported types are ['MINOR', 'MAJOR']", ci.type.name()); + if (!ci.isMajorCompaction() && !ci.isMinorCompaction() && !ci.isSmartOptimize()) { + ci.errorMessage = String.format("Iceberg tables do not support %s compaction type", ci.type.name()); LOG.error(ci.errorMessage + " Compaction info: {}", ci); - try { - msc.markRefused(CompactionInfo.compactionInfoToStruct(ci)); - } catch (Throwable tr) { - LOG.error("Caught an exception while trying to mark compaction {} as failed: {}", ci, tr); - } + msc.markRefused(CompactionInfo.compactionInfoToStruct(ci)); return false; } CompactorUtil.checkInterrupt(CLASS_NAME); @@ -63,6 +59,15 @@ public Boolean compact(Table table, CompactionInfo ci) throws Exception { return false; } + if (ci.type == CompactionType.SMART_OPTIMIZE) { + ci.type = compactionEvaluator.determineCompactionType(); + if (ci.type == null) { + msc.markRefused(CompactionInfo.compactionInfoToStruct(ci)); + return false; + } + msc.setCompactionType(CompactionInfo.compactionInfoToStruct(ci)); + } + if (ci.runAs == null) { ci.runAs = TxnUtils.findUserToRunAs(table.getSd().getLocation(), table, conf); } diff --git a/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/evaluator/CompactionEvaluator.java b/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/evaluator/CompactionEvaluator.java index ddbcdd509e50..4fd1e076a3b2 100644 --- a/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/evaluator/CompactionEvaluator.java +++ b/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/compaction/evaluator/CompactionEvaluator.java @@ -23,6 +23,7 @@ import java.util.Collections; import java.util.Map; import java.util.Optional; +import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.txn.entities.CompactionInfo; import org.apache.hadoop.hive.ql.txn.compactor.CompactorContext; import org.apache.iceberg.DataFile; @@ -89,11 +90,27 @@ public boolean isEligibleForCompaction() { return isMinorNecessary(); case MAJOR: return isMajorNecessary(); + case SMART_OPTIMIZE: + return isMinorNecessary() || isMajorNecessary(); default: return false; } } + public CompactionType determineCompactionType() { + if (ci.type == CompactionType.SMART_OPTIMIZE) { + if (isMajorNecessary()) { + return CompactionType.MAJOR; + } else if (isMinorNecessary()) { + return CompactionType.MINOR; + } else { + return null; + } + } else { + return ci.type; + } + } + private static TableRuntime createTableRuntime(Table icebergTable, Map parameters) { OptimizingConfig optimizingConfig = OptimizingConfig.parse(Collections.emptyMap()); optimizingConfig.setTargetSize(getTargetSizeBytes(parameters)); diff --git a/iceberg/iceberg-handler/src/test/queries/positive/iceberg_major_compaction_partition_evolution_ordered.q b/iceberg/iceberg-handler/src/test/queries/positive/iceberg_major_compaction_partition_evolution_ordered.q index 8c15ed861f65..0dfe28140421 100644 --- a/iceberg/iceberg-handler/src/test/queries/positive/iceberg_major_compaction_partition_evolution_ordered.q +++ b/iceberg/iceberg-handler/src/test/queries/positive/iceberg_major_compaction_partition_evolution_ordered.q @@ -12,6 +12,7 @@ --! qt:replace:/(\s+current-snapshot-timestamp-ms\s+)\S+(\s*)/$1#Masked#$2/ --! qt:replace:/(MAJOR\s+succeeded\s+)[a-zA-Z0-9\-\.\s+]+(\s+manual)/$1#Masked#$2/ --! qt:replace:/(MAJOR\s+refused\s+)[a-zA-Z0-9\-\.\s+]+(\s+manual)/$1#Masked#$2/ +--! qt:replace:/(SMART_OPTIMIZE\s+refused\s+)[a-zA-Z0-9\-\.\s+]+(\s+manual)/$1#Masked#$2/ -- Mask compaction id as they will be allocated in parallel threads --! qt:replace:/^[0-9]/#Masked#/ -- Mask removed file size @@ -60,10 +61,10 @@ select * from ice_orc where dept_id = 2 order by first_name; select * from ice_orc where dept_id = 3 order by first_name; describe formatted ice_orc; -explain alter table ice_orc COMPACT 'major' and wait order by first_name desc; +explain alter table ice_orc COMPACT 'smart_optimize' and wait order by first_name desc; explain optimize table ice_orc rewrite data order by first_name desc; -alter table ice_orc COMPACT 'major' and wait order by first_name desc; +alter table ice_orc COMPACT 'smart_optimize' and wait order by first_name desc; select * from ice_orc where company_id = 100; select * from ice_orc where dept_id = 2; diff --git a/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_partition_evolution_ordered.q.out b/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_partition_evolution_ordered.q.out index c1e7ef38431d..a4d270f0aa2b 100644 --- a/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_partition_evolution_ordered.q.out +++ b/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_partition_evolution_ordered.q.out @@ -181,11 +181,11 @@ InputFormat: org.apache.iceberg.mr.hive.HiveIcebergInputFormat OutputFormat: org.apache.iceberg.mr.hive.HiveIcebergOutputFormat Compressed: No Sort Columns: [] -PREHOOK: query: explain alter table ice_orc COMPACT 'major' and wait order by first_name desc +PREHOOK: query: explain alter table ice_orc COMPACT 'smart_optimize' and wait order by first_name desc PREHOOK: type: ALTERTABLE_COMPACT PREHOOK: Input: default@ice_orc PREHOOK: Output: default@ice_orc -POSTHOOK: query: explain alter table ice_orc COMPACT 'major' and wait order by first_name desc +POSTHOOK: query: explain alter table ice_orc COMPACT 'smart_optimize' and wait order by first_name desc POSTHOOK: type: ALTERTABLE_COMPACT POSTHOOK: Input: default@ice_orc POSTHOOK: Output: default@ice_orc @@ -195,7 +195,7 @@ STAGE DEPENDENCIES: STAGE PLANS: Stage: Stage-0 Compact - compaction type: major + compaction type: smart_optimize table name: default.ice_orc numberOfBuckets: 0 order by: order by first_name desc @@ -216,18 +216,17 @@ STAGE DEPENDENCIES: STAGE PLANS: Stage: Stage-0 Compact - compaction type: major + compaction type: smart_optimize table name: default.ice_orc numberOfBuckets: 0 order by: order by first_name desc table name: default.ice_orc - blocking: true -PREHOOK: query: alter table ice_orc COMPACT 'major' and wait order by first_name desc +PREHOOK: query: alter table ice_orc COMPACT 'smart_optimize' and wait order by first_name desc PREHOOK: type: ALTERTABLE_COMPACT PREHOOK: Input: default@ice_orc PREHOOK: Output: default@ice_orc -POSTHOOK: query: alter table ice_orc COMPACT 'major' and wait order by first_name desc +POSTHOOK: query: alter table ice_orc COMPACT 'smart_optimize' and wait order by first_name desc POSTHOOK: type: ALTERTABLE_COMPACT POSTHOOK: Input: default@ice_orc POSTHOOK: Output: default@ice_orc @@ -333,5 +332,5 @@ POSTHOOK: query: show compactions order by 'partition' POSTHOOK: type: SHOW COMPACTIONS CompactionId Database Table Partition Type State Worker host Worker Enqueue Time Start Time Duration(ms) HadoopJobId Error message Initiator host Initiator Pool name TxnId Next TxnId Commit Time Highest WriteId #Masked# default ice_orc dept_id=2 MAJOR succeeded #Masked# manual default 0 0 0 --- -#Masked# default ice_orc dept_id=3 MAJOR refused #Masked# manual default 0 0 0 --- -#Masked# default ice_orc --- MAJOR refused #Masked# manual default 0 0 0 --- +#Masked# default ice_orc dept_id=3 SMART_OPTIMIZE refused #Masked# manual default 0 0 0 --- +#Masked# default ice_orc --- SMART_OPTIMIZE refused #Masked# manual default 0 0 0 --- diff --git a/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned.q.out b/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned.q.out index e65eb47fb099..0d7ed2d6113a 100644 --- a/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned.q.out +++ b/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned.q.out @@ -248,12 +248,11 @@ STAGE DEPENDENCIES: STAGE PLANS: Stage: Stage-0 Compact - compaction type: major + compaction type: smart_optimize table name: default.ice_orc numberOfBuckets: 0 pool: iceberg table name: default.ice_orc - blocking: true PREHOOK: query: alter table ice_orc COMPACT 'major' and wait pool 'iceberg' PREHOOK: type: ALTERTABLE_COMPACT diff --git a/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned_ordered.q.out b/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned_ordered.q.out index 41f11451853e..81ccad496e39 100644 --- a/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned_ordered.q.out +++ b/iceberg/iceberg-handler/src/test/results/positive/llap/iceberg_major_compaction_unpartitioned_ordered.q.out @@ -145,12 +145,11 @@ STAGE DEPENDENCIES: STAGE PLANS: Stage: Stage-0 Compact - compaction type: major + compaction type: smart_optimize table name: default.ice_orc numberOfBuckets: 0 order by: order by last_name desc table name: default.ice_orc - blocking: true PREHOOK: query: alter table ice_orc COMPACT 'major' and wait order by last_name desc PREHOOK: type: ALTERTABLE_COMPACT diff --git a/parser/src/java/org/apache/hadoop/hive/ql/parse/AlterClauseParser.g b/parser/src/java/org/apache/hadoop/hive/ql/parse/AlterClauseParser.g index d75e6cecab21..dbdff12fd933 100644 --- a/parser/src/java/org/apache/hadoop/hive/ql/parse/AlterClauseParser.g +++ b/parser/src/java/org/apache/hadoop/hive/ql/parse/AlterClauseParser.g @@ -116,7 +116,7 @@ optimizeTblRewriteDataSuffix @init { gParent.msgs.push("compaction request"); } @after { gParent.msgs.pop(); } : KW_REWRITE KW_DATA compactPool? whereClause? orderByClause? - -> ^(TOK_ALTERTABLE_COMPACT Identifier["'MAJOR'"] TOK_BLOCKING compactPool? whereClause? orderByClause?) + -> ^(TOK_ALTERTABLE_COMPACT Identifier["'SMART_OPTIMIZE'"] compactPool? whereClause? orderByClause?) ; alterStatementPartitionKeyType diff --git a/parser/src/test/org/apache/hadoop/hive/ql/parse/TestParseOptimizeTable.java b/parser/src/test/org/apache/hadoop/hive/ql/parse/TestParseOptimizeTable.java index db5c2a060707..0aba86c99097 100644 --- a/parser/src/test/org/apache/hadoop/hive/ql/parse/TestParseOptimizeTable.java +++ b/parser/src/test/org/apache/hadoop/hive/ql/parse/TestParseOptimizeTable.java @@ -34,8 +34,7 @@ public void testOptimizeTableWithWhere() throws Exception { " TOK_TABNAME\n" + " tbl0\n" + " TOK_ALTERTABLE_COMPACT\n" + - " 'MAJOR'\n" + - " TOK_BLOCKING\n" + + " 'SMART_OPTIMIZE'\n" + " TOK_WHERE\n" + " and\n" + " TOK_FUNCTION\n" + @@ -64,8 +63,7 @@ public void testOptimizeTableWithOrderBy() throws Exception { " TOK_TABNAME\n" + " tbl0\n" + " TOK_ALTERTABLE_COMPACT\n" + - " 'MAJOR'\n" + - " TOK_BLOCKING\n" + + " 'SMART_OPTIMIZE'\n" + " TOK_ORDERBY\n" + " TOK_TABSORTCOLNAMEDESC\n" + " TOK_NULLS_FIRST\n" + @@ -87,8 +85,7 @@ public void testOptimizeTableWithPool() throws Exception { " TOK_TABNAME\n" + " tbl0\n" + " TOK_ALTERTABLE_COMPACT\n" + - " 'MAJOR'\n" + - " TOK_BLOCKING\n" + + " 'SMART_OPTIMIZE'\n" + " TOK_COMPACT_POOL\n" + " 'iceberg'\n" + " \n"; diff --git a/pom.xml b/pom.xml index 2a313aabf514..7ce31c470028 100644 --- a/pom.xml +++ b/pom.xml @@ -98,7 +98,7 @@ 2.10 3.1.0 2.16.0 - 3.5.0 + 3.6.0 3.5.1 2.7.10 2.3.0 @@ -192,7 +192,7 @@ 4.5.8 2.8 - 1.14.4 + 1.15.1 0.16.0 1.5.6 3.25.5 diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 95cb7c0e6682..96d45809d937 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -51682,6 +51682,193 @@ uint32_t ThriftHiveMetastore_update_compaction_metrics_data_presult::read(::apac } +ThriftHiveMetastore_set_compaction_type_args::~ThriftHiveMetastore_set_compaction_type_args() noexcept { +} + + +uint32_t ThriftHiveMetastore_set_compaction_type_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + ::apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->cr.read(iprot); + this->__isset.cr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_set_compaction_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + ::apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_compaction_type_args"); + + xfer += oprot->writeFieldBegin("cr", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->cr.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_set_compaction_type_pargs::~ThriftHiveMetastore_set_compaction_type_pargs() noexcept { +} + + +uint32_t ThriftHiveMetastore_set_compaction_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + ::apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_compaction_type_pargs"); + + xfer += oprot->writeFieldBegin("cr", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->cr)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_set_compaction_type_result::~ThriftHiveMetastore_set_compaction_type_result() noexcept { +} + + +uint32_t ThriftHiveMetastore_set_compaction_type_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + ::apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_set_compaction_type_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_compaction_type_result"); + + if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_set_compaction_type_presult::~ThriftHiveMetastore_set_compaction_type_presult() noexcept { +} + + +uint32_t ThriftHiveMetastore_set_compaction_type_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + ::apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + ThriftHiveMetastore_remove_compaction_metrics_data_args::~ThriftHiveMetastore_remove_compaction_metrics_data_args() noexcept { } @@ -79988,6 +80175,62 @@ bool ThriftHiveMetastoreClient::recv_update_compaction_metrics_data() throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "update_compaction_metrics_data failed: unknown result"); } +void ThriftHiveMetastoreClient::set_compaction_type(const CompactionInfoStruct& cr) +{ + send_set_compaction_type(cr); + recv_set_compaction_type(); +} + +void ThriftHiveMetastoreClient::send_set_compaction_type(const CompactionInfoStruct& cr) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("set_compaction_type", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_set_compaction_type_pargs args; + args.cr = &cr; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_set_compaction_type() +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("set_compaction_type") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_set_compaction_type_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + throw result.o1; + } + return; +} + void ThriftHiveMetastoreClient::remove_compaction_metrics_data(const CompactionMetricsDataRequest& request) { send_remove_compaction_metrics_data(request); @@ -96906,6 +97149,62 @@ void ThriftHiveMetastoreProcessor::process_update_compaction_metrics_data(int32_ } } +void ThriftHiveMetastoreProcessor::process_set_compaction_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = nullptr; + if (this->eventHandler_.get() != nullptr) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.set_compaction_type", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.set_compaction_type"); + + if (this->eventHandler_.get() != nullptr) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.set_compaction_type"); + } + + ThriftHiveMetastore_set_compaction_type_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != nullptr) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.set_compaction_type", bytes); + } + + ThriftHiveMetastore_set_compaction_type_result result; + try { + iface_->set_compaction_type(args.cr); + } catch (MetaException &o1) { + result.o1 = std::move(o1); + result.__isset.o1 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != nullptr) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.set_compaction_type"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("set_compaction_type", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != nullptr) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.set_compaction_type"); + } + + oprot->writeMessageBegin("set_compaction_type", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != nullptr) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.set_compaction_type", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_remove_compaction_metrics_data(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = nullptr; @@ -120284,6 +120583,88 @@ bool ThriftHiveMetastoreConcurrentClient::recv_update_compaction_metrics_data(co } // end while(true) } +void ThriftHiveMetastoreConcurrentClient::set_compaction_type(const CompactionInfoStruct& cr) +{ + int32_t seqid = send_set_compaction_type(cr); + recv_set_compaction_type(seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_set_compaction_type(const CompactionInfoStruct& cr) +{ + int32_t cseqid = this->sync_->generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(this->sync_.get()); + oprot_->writeMessageBegin("set_compaction_type", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_set_compaction_type_pargs args; + args.cr = &cr; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_set_compaction_type(const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(this->sync_.get(), seqid); + + while(true) { + if(!this->sync_->getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("set_compaction_type") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + // in a bad state, don't commit + using ::apache::thrift::protocol::TProtocolException; + throw TProtocolException(TProtocolException::INVALID_DATA); + } + ThriftHiveMetastore_set_compaction_type_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + sentry.commit(); + return; + } + // seqid != rseqid + this->sync_->updatePending(fname, mtype, rseqid); + + // this will temporarily unlock the readMutex, and let other clients get work done + this->sync_->waitForWork(seqid); + } // end while(true) +} + void ThriftHiveMetastoreConcurrentClient::remove_compaction_metrics_data(const CompactionMetricsDataRequest& request) { int32_t seqid = send_remove_compaction_metrics_data(request); diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 7319d9d40af3..d0b45654b396 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -239,6 +239,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void mark_failed(const CompactionInfoStruct& cr) = 0; virtual void mark_refused(const CompactionInfoStruct& cr) = 0; virtual bool update_compaction_metrics_data(const CompactionMetricsDataStruct& data) = 0; + virtual void set_compaction_type(const CompactionInfoStruct& cr) = 0; virtual void remove_compaction_metrics_data(const CompactionMetricsDataRequest& request) = 0; virtual void set_hadoop_jobid(const std::string& jobId, const int64_t cq_id) = 0; virtual void get_latest_committed_compaction_info(GetLatestCommittedCompactionInfoResponse& _return, const GetLatestCommittedCompactionInfoRequest& rqst) = 0; @@ -1009,6 +1010,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p bool _return = false; return _return; } + void set_compaction_type(const CompactionInfoStruct& /* cr */) override { + return; + } void remove_compaction_metrics_data(const CompactionMetricsDataRequest& /* request */) override { return; } @@ -27546,6 +27550,110 @@ class ThriftHiveMetastore_update_compaction_metrics_data_presult { }; +typedef struct _ThriftHiveMetastore_set_compaction_type_args__isset { + _ThriftHiveMetastore_set_compaction_type_args__isset() : cr(false) {} + bool cr :1; +} _ThriftHiveMetastore_set_compaction_type_args__isset; + +class ThriftHiveMetastore_set_compaction_type_args { + public: + + ThriftHiveMetastore_set_compaction_type_args(const ThriftHiveMetastore_set_compaction_type_args&); + ThriftHiveMetastore_set_compaction_type_args& operator=(const ThriftHiveMetastore_set_compaction_type_args&); + ThriftHiveMetastore_set_compaction_type_args() noexcept { + } + + virtual ~ThriftHiveMetastore_set_compaction_type_args() noexcept; + CompactionInfoStruct cr; + + _ThriftHiveMetastore_set_compaction_type_args__isset __isset; + + void __set_cr(const CompactionInfoStruct& val); + + bool operator == (const ThriftHiveMetastore_set_compaction_type_args & rhs) const + { + if (!(cr == rhs.cr)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_set_compaction_type_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_set_compaction_type_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_set_compaction_type_pargs { + public: + + + virtual ~ThriftHiveMetastore_set_compaction_type_pargs() noexcept; + const CompactionInfoStruct* cr; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_set_compaction_type_result__isset { + _ThriftHiveMetastore_set_compaction_type_result__isset() : o1(false) {} + bool o1 :1; +} _ThriftHiveMetastore_set_compaction_type_result__isset; + +class ThriftHiveMetastore_set_compaction_type_result { + public: + + ThriftHiveMetastore_set_compaction_type_result(const ThriftHiveMetastore_set_compaction_type_result&); + ThriftHiveMetastore_set_compaction_type_result& operator=(const ThriftHiveMetastore_set_compaction_type_result&); + ThriftHiveMetastore_set_compaction_type_result() noexcept { + } + + virtual ~ThriftHiveMetastore_set_compaction_type_result() noexcept; + MetaException o1; + + _ThriftHiveMetastore_set_compaction_type_result__isset __isset; + + void __set_o1(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_set_compaction_type_result & rhs) const + { + if (!(o1 == rhs.o1)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_set_compaction_type_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_set_compaction_type_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_set_compaction_type_presult__isset { + _ThriftHiveMetastore_set_compaction_type_presult__isset() : o1(false) {} + bool o1 :1; +} _ThriftHiveMetastore_set_compaction_type_presult__isset; + +class ThriftHiveMetastore_set_compaction_type_presult { + public: + + + virtual ~ThriftHiveMetastore_set_compaction_type_presult() noexcept; + MetaException o1; + + _ThriftHiveMetastore_set_compaction_type_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_remove_compaction_metrics_data_args__isset { _ThriftHiveMetastore_remove_compaction_metrics_data_args__isset() : request(false) {} bool request :1; @@ -36081,6 +36189,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public bool update_compaction_metrics_data(const CompactionMetricsDataStruct& data) override; void send_update_compaction_metrics_data(const CompactionMetricsDataStruct& data); bool recv_update_compaction_metrics_data(); + void set_compaction_type(const CompactionInfoStruct& cr) override; + void send_set_compaction_type(const CompactionInfoStruct& cr); + void recv_set_compaction_type(); void remove_compaction_metrics_data(const CompactionMetricsDataRequest& request) override; void send_remove_compaction_metrics_data(const CompactionMetricsDataRequest& request); void recv_remove_compaction_metrics_data(); @@ -36511,6 +36622,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_mark_failed(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_mark_refused(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_update_compaction_metrics_data(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_set_compaction_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_remove_compaction_metrics_data(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_set_hadoop_jobid(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_latest_committed_compaction_info(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -36797,6 +36909,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["mark_failed"] = &ThriftHiveMetastoreProcessor::process_mark_failed; processMap_["mark_refused"] = &ThriftHiveMetastoreProcessor::process_mark_refused; processMap_["update_compaction_metrics_data"] = &ThriftHiveMetastoreProcessor::process_update_compaction_metrics_data; + processMap_["set_compaction_type"] = &ThriftHiveMetastoreProcessor::process_set_compaction_type; processMap_["remove_compaction_metrics_data"] = &ThriftHiveMetastoreProcessor::process_remove_compaction_metrics_data; processMap_["set_hadoop_jobid"] = &ThriftHiveMetastoreProcessor::process_set_hadoop_jobid; processMap_["get_latest_committed_compaction_info"] = &ThriftHiveMetastoreProcessor::process_get_latest_committed_compaction_info; @@ -38936,6 +39049,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return ifaces_[i]->update_compaction_metrics_data(data); } + void set_compaction_type(const CompactionInfoStruct& cr) override { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->set_compaction_type(cr); + } + ifaces_[i]->set_compaction_type(cr); + } + void remove_compaction_metrics_data(const CompactionMetricsDataRequest& request) override { size_t sz = ifaces_.size(); size_t i = 0; @@ -40261,6 +40383,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf bool update_compaction_metrics_data(const CompactionMetricsDataStruct& data) override; int32_t send_update_compaction_metrics_data(const CompactionMetricsDataStruct& data); bool recv_update_compaction_metrics_data(const int32_t seqid); + void set_compaction_type(const CompactionInfoStruct& cr) override; + int32_t send_set_compaction_type(const CompactionInfoStruct& cr); + void recv_set_compaction_type(const int32_t seqid); void remove_compaction_metrics_data(const CompactionMetricsDataRequest& request) override; int32_t send_remove_compaction_metrics_data(const CompactionMetricsDataRequest& request); void recv_remove_compaction_metrics_data(const int32_t seqid); diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index e3770769ad71..f066fc504539 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -1085,6 +1085,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("update_compaction_metrics_data\n"); } + void set_compaction_type(const CompactionInfoStruct& cr) { + // Your implementation goes here + printf("set_compaction_type\n"); + } + void remove_compaction_metrics_data(const CompactionMetricsDataRequest& request) { // Your implementation goes here printf("remove_compaction_metrics_data\n"); diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index dbfb1d3145cf..fa357072fdba 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -240,15 +240,17 @@ int _kCompactionTypeValues[] = { CompactionType::MINOR, CompactionType::MAJOR, CompactionType::REBALANCE, - CompactionType::ABORT_TXN_CLEANUP + CompactionType::ABORT_TXN_CLEANUP, + CompactionType::SMART_OPTIMIZE }; const char* _kCompactionTypeNames[] = { "MINOR", "MAJOR", "REBALANCE", - "ABORT_TXN_CLEANUP" + "ABORT_TXN_CLEANUP", + "SMART_OPTIMIZE" }; -const std::map _CompactionType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kCompactionTypeValues, _kCompactionTypeNames), ::apache::thrift::TEnumIterator(-1, nullptr, nullptr)); +const std::map _CompactionType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _kCompactionTypeValues, _kCompactionTypeNames), ::apache::thrift::TEnumIterator(-1, nullptr, nullptr)); std::ostream& operator<<(std::ostream& out, const CompactionType::type& val) { std::map::const_iterator it = _CompactionType_VALUES_TO_NAMES.find(val); diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.h b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.h index da69e33bb45b..d1d6c0c462e4 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -128,7 +128,8 @@ struct CompactionType { MINOR = 1, MAJOR = 2, REBALANCE = 3, - ABORT_TXN_CLEANUP = 4 + ABORT_TXN_CLEANUP = 4, + SMART_OPTIMIZE = 5 }; }; diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java b/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java index 0dabc2868c73..3394aca64e06 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java @@ -12,7 +12,8 @@ public enum CompactionType implements org.apache.thrift.TEnum { MINOR(1), MAJOR(2), REBALANCE(3), - ABORT_TXN_CLEANUP(4); + ABORT_TXN_CLEANUP(4), + SMART_OPTIMIZE(5); private final int value; @@ -42,6 +43,8 @@ public static CompactionType findByValue(int value) { return REBALANCE; case 4: return ABORT_TXN_CLEANUP; + case 5: + return SMART_OPTIMIZE; default: return null; } diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 020cc2a65ae7..f2dbe4d1c70f 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -441,6 +441,8 @@ public boolean update_compaction_metrics_data(CompactionMetricsDataStruct data) throws MetaException, org.apache.thrift.TException; + public void set_compaction_type(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException; + public void remove_compaction_metrics_data(CompactionMetricsDataRequest request) throws MetaException, org.apache.thrift.TException; public void set_hadoop_jobid(java.lang.String jobId, long cq_id) throws org.apache.thrift.TException; @@ -1009,6 +1011,8 @@ public void update_compaction_metrics_data(CompactionMetricsDataStruct data, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void set_compaction_type(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void remove_compaction_metrics_data(CompactionMetricsDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void set_hadoop_jobid(java.lang.String jobId, long cq_id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -7283,6 +7287,29 @@ public boolean recv_update_compaction_metrics_data() throws MetaException, org.a throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "update_compaction_metrics_data failed: unknown result"); } + public void set_compaction_type(CompactionInfoStruct cr) throws MetaException, org.apache.thrift.TException + { + send_set_compaction_type(cr); + recv_set_compaction_type(); + } + + public void send_set_compaction_type(CompactionInfoStruct cr) throws org.apache.thrift.TException + { + set_compaction_type_args args = new set_compaction_type_args(); + args.setCr(cr); + sendBase("set_compaction_type", args); + } + + public void recv_set_compaction_type() throws MetaException, org.apache.thrift.TException + { + set_compaction_type_result result = new set_compaction_type_result(); + receiveBase(result, "set_compaction_type"); + if (result.o1 != null) { + throw result.o1; + } + return; + } + public void remove_compaction_metrics_data(CompactionMetricsDataRequest request) throws MetaException, org.apache.thrift.TException { send_remove_compaction_metrics_data(request); @@ -16471,6 +16498,38 @@ public java.lang.Boolean getResult() throws MetaException, org.apache.thrift.TEx } } + public void set_compaction_type(CompactionInfoStruct cr, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + set_compaction_type_call method_call = new set_compaction_type_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 set_compaction_type_call extends org.apache.thrift.async.TAsyncMethodCall { + private CompactionInfoStruct cr; + public set_compaction_type_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("set_compaction_type", org.apache.thrift.protocol.TMessageType.CALL, 0)); + set_compaction_type_args args = new set_compaction_type_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 java.lang.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 null; + } + } + public void remove_compaction_metrics_data(CompactionMetricsDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); remove_compaction_metrics_data_call method_call = new remove_compaction_metrics_data_call(request, resultHandler, this, ___protocolFactory, ___transport); @@ -18911,6 +18970,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public set_compaction_type() { + super("set_compaction_type"); + } + + public set_compaction_type_args getEmptyArgsInstance() { + return new set_compaction_type_args(); + } + + protected boolean isOneway() { + return false; + } + + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + + public set_compaction_type_result getResult(I iface, set_compaction_type_args args) throws org.apache.thrift.TException { + set_compaction_type_result result = new set_compaction_type_result(); + try { + iface.set_compaction_type(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 remove_compaction_metrics_data extends org.apache.thrift.ProcessFunction { public remove_compaction_metrics_data() { super("remove_compaction_metrics_data"); @@ -27825,6 +27914,7 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public set_compaction_type() { + super("set_compaction_type"); + } + + public set_compaction_type_args getEmptyArgsInstance() { + return new set_compaction_type_args(); + } + + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(Void o) { + set_compaction_type_result result = new set_compaction_type_result(); + try { + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); + } + } + public void onError(java.lang.Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TSerializable msg; + set_compaction_type_result result = new set_compaction_type_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); + } + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, set_compaction_type_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + iface.set_compaction_type(args.cr,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class remove_compaction_metrics_data extends org.apache.thrift.AsyncProcessFunction { public remove_compaction_metrics_data() { super("remove_compaction_metrics_data"); @@ -255698,34 +255852,723 @@ public java.lang.String getFieldName() { static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compactor_state_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compactor_state_result.class, metaDataMap); + } + + public update_compactor_state_result() { + } + + /** + * Performs a deep copy on other. + */ + public update_compactor_state_result(update_compactor_state_result other) { + } + + public update_compactor_state_result deepCopy() { + return new update_compactor_state_result(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { + switch (field) { + } + } + + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { + switch (field) { + } + throw new java.lang.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 java.lang.IllegalArgumentException(); + } + + switch (field) { + } + throw new java.lang.IllegalStateException(); + } + + @Override + public boolean equals(java.lang.Object that) { + if (that instanceof update_compactor_state_result) + return this.equals((update_compactor_state_result)that); + return false; + } + + public boolean equals(update_compactor_state_result that) { + if (that == null) + return false; + if (this == that) + return true; + + return true; + } + + @Override + public int hashCode() { + int hashCode = 1; + + return hashCode; + } + + @Override + public int compareTo(update_compactor_state_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + return 0; + } + + @org.apache.thrift.annotation.Nullable + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + scheme(iprot).read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + scheme(oprot).write(oprot, this); + } + + @Override + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("update_compactor_state_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, java.lang.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 update_compactor_state_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public update_compactor_state_resultStandardScheme getScheme() { + return new update_compactor_state_resultStandardScheme(); + } + } + + private static class update_compactor_state_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + + 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) + { + 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, update_compactor_state_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class update_compactor_state_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public update_compactor_state_resultTupleScheme getScheme() { + return new update_compactor_state_resultTupleScheme(); + } + } + + private static class update_compactor_state_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } + } + + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_columns_with_stats_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("find_columns_with_stats_args"); + + private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new find_columns_with_stats_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new find_columns_with_stats_argsTupleSchemeFactory(); + + private @org.apache.thrift.annotation.Nullable CompactionInfoStruct cr; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + CR((short)1, "cr"); + + private static final java.util.Map byName = new java.util.HashMap(); + + static { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // CR + return CR; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { + return byName.get(name); + } + + private final short _thriftId; + private final java.lang.String _fieldName; + + _Fields(short thriftId, java.lang.String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public java.lang.String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.CR, new org.apache.thrift.meta_data.FieldMetaData("cr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionInfoStruct.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_columns_with_stats_args.class, metaDataMap); + } + + public find_columns_with_stats_args() { + } + + public find_columns_with_stats_args( + CompactionInfoStruct cr) + { + this(); + this.cr = cr; + } + + /** + * Performs a deep copy on other. + */ + public find_columns_with_stats_args(find_columns_with_stats_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); + } + } + + public find_columns_with_stats_args deepCopy() { + return new find_columns_with_stats_args(this); + } + + @Override + public void clear() { + this.cr = null; + } + + @org.apache.thrift.annotation.Nullable + public CompactionInfoStruct getCr() { + return this.cr; + } + + public void setCr(@org.apache.thrift.annotation.Nullable CompactionInfoStruct cr) { + this.cr = cr; + } + + public void unsetCr() { + this.cr = null; + } + + /** Returns true if field cr is set (has been assigned a value) and false otherwise */ + public boolean isSetCr() { + return this.cr != null; + } + + public void setCrIsSet(boolean value) { + if (!value) { + this.cr = null; + } + } + + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { + switch (field) { + case CR: + if (value == null) { + unsetCr(); + } else { + setCr((CompactionInfoStruct)value); + } + break; + + } + } + + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { + switch (field) { + case CR: + return getCr(); + + } + throw new java.lang.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 java.lang.IllegalArgumentException(); + } + + switch (field) { + case CR: + return isSetCr(); + } + throw new java.lang.IllegalStateException(); + } + + @Override + public boolean equals(java.lang.Object that) { + if (that instanceof find_columns_with_stats_args) + return this.equals((find_columns_with_stats_args)that); + return false; + } + + public boolean equals(find_columns_with_stats_args that) { + if (that == null) + return false; + if (this == that) + return true; + + boolean this_present_cr = true && this.isSetCr(); + boolean that_present_cr = true && that.isSetCr(); + if (this_present_cr || that_present_cr) { + if (!(this_present_cr && that_present_cr)) + return false; + if (!this.cr.equals(that.cr)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetCr()) ? 131071 : 524287); + if (isSetCr()) + hashCode = hashCode * 8191 + cr.hashCode(); + + return hashCode; + } + + @Override + public int compareTo(find_columns_with_stats_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = java.lang.Boolean.compare(isSetCr(), other.isSetCr()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + @org.apache.thrift.annotation.Nullable + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + scheme(iprot).read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + scheme(oprot).write(oprot, this); + } + + @Override + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("find_columns_with_stats_args("); + boolean first = true; + + sb.append("cr:"); + if (this.cr == null) { + sb.append("null"); + } else { + sb.append(this.cr); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (cr != null) { + cr.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class find_columns_with_stats_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public find_columns_with_stats_argsStandardScheme getScheme() { + return new find_columns_with_stats_argsStandardScheme(); + } + } + + private static class find_columns_with_stats_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // CR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class find_columns_with_stats_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public find_columns_with_stats_argsTupleScheme getScheme() { + return new find_columns_with_stats_argsTupleScheme(); + } + } + + private static class find_columns_with_stats_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); + if (struct.isSetCr()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetCr()) { + struct.cr.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); + } + } + } + + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class find_columns_with_stats_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("find_columns_with_stats_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new find_columns_with_stats_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new find_columns_with_stats_resultTupleSchemeFactory(); + + private @org.apache.thrift.annotation.Nullable java.util.List success; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); + + private static final java.util.Map byName = new java.util.HashMap(); + + static { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { + return byName.get(name); + } + + private final short _thriftId; + private final java.lang.String _fieldName; + + _Fields(short thriftId, java.lang.String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public java.lang.String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_columns_with_stats_result.class, metaDataMap); } - public update_compactor_state_result() { + public find_columns_with_stats_result() { + } + + public find_columns_with_stats_result( + java.util.List success) + { + this(); + this.success = success; } /** * Performs a deep copy on other. */ - public update_compactor_state_result(update_compactor_state_result other) { + public find_columns_with_stats_result(find_columns_with_stats_result other) { + if (other.isSetSuccess()) { + java.util.List __this__success = new java.util.ArrayList(other.success); + this.success = __this__success; + } } - public update_compactor_state_result deepCopy() { - return new update_compactor_state_result(this); + public find_columns_with_stats_result deepCopy() { + return new find_columns_with_stats_result(this); } @Override public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(java.lang.String elem) { + if (this.success == null) { + this.success = new java.util.ArrayList(); + } + this.success.add(elem); + } + + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { + return this.success; + } + + public void setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((java.util.List)value); + } + break; + } } @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + } throw new java.lang.IllegalStateException(); } @@ -255737,23 +256580,34 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new java.lang.IllegalStateException(); } @Override public boolean equals(java.lang.Object that) { - if (that instanceof update_compactor_state_result) - return this.equals((update_compactor_state_result)that); + if (that instanceof find_columns_with_stats_result) + return this.equals((find_columns_with_stats_result)that); return false; } - public boolean equals(update_compactor_state_result that) { + public boolean equals(find_columns_with_stats_result that) { if (that == null) return false; if (this == that) return true; + 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; } @@ -255761,17 +256615,31 @@ public boolean equals(update_compactor_state_result that) { public int hashCode() { int hashCode = 1; + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); + return hashCode; } @Override - public int compareTo(update_compactor_state_result other) { + public int compareTo(find_columns_with_stats_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = java.lang.Boolean.compare(isSetSuccess(), 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; } @@ -255790,9 +256658,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("update_compactor_state_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("find_columns_with_stats_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; sb.append(")"); return sb.toString(); } @@ -255818,15 +256693,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class update_compactor_state_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public update_compactor_state_resultStandardScheme getScheme() { - return new update_compactor_state_resultStandardScheme(); + private static class find_columns_with_stats_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public find_columns_with_stats_resultStandardScheme getScheme() { + return new find_columns_with_stats_resultStandardScheme(); } } - private static class update_compactor_state_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class find_columns_with_stats_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, update_compactor_state_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) @@ -255836,6 +256711,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_compactor_st break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list2182 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list2182.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem2183; + for (int _i2184 = 0; _i2184 < _list2182.size; ++_i2184) + { + _elem2183 = iprot.readString(); + struct.success.add(_elem2183); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -255845,32 +256738,72 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_compactor_st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, update_compactor_state_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); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (java.lang.String _iter2185 : struct.success) + { + oprot.writeString(_iter2185); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class update_compactor_state_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public update_compactor_state_resultTupleScheme getScheme() { - return new update_compactor_state_resultTupleScheme(); + private static class find_columns_with_stats_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public find_columns_with_stats_resultTupleScheme getScheme() { + return new find_columns_with_stats_resultTupleScheme(); } } - private static class update_compactor_state_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class find_columns_with_stats_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_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 { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (java.lang.String _iter2186 : struct.success) + { + oprot.writeString(_iter2186); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, update_compactor_state_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 { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list2187 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.ArrayList(_list2187.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem2188; + for (int _i2189 = 0; _i2189 < _list2187.size; ++_i2189) + { + _elem2188 = iprot.readString(); + struct.success.add(_elem2188); + } + } + struct.setSuccessIsSet(true); + } } } @@ -255879,13 +256812,13 @@ private static S scheme(org.apache. } } - @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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_cleaned_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_cleaned_args"); private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new find_columns_with_stats_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new find_columns_with_stats_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_cleaned_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_cleaned_argsTupleSchemeFactory(); private @org.apache.thrift.annotation.Nullable CompactionInfoStruct cr; // required @@ -255956,13 +256889,13 @@ public java.lang.String getFieldName() { 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 = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_columns_with_stats_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_args.class, metaDataMap); } - public find_columns_with_stats_args() { + public mark_cleaned_args() { } - public find_columns_with_stats_args( + public mark_cleaned_args( CompactionInfoStruct cr) { this(); @@ -255972,14 +256905,14 @@ public find_columns_with_stats_args( /** * Performs a deep copy on other. */ - public find_columns_with_stats_args(find_columns_with_stats_args other) { + public mark_cleaned_args(mark_cleaned_args other) { if (other.isSetCr()) { this.cr = new CompactionInfoStruct(other.cr); } } - public find_columns_with_stats_args deepCopy() { - return new find_columns_with_stats_args(this); + public mark_cleaned_args deepCopy() { + return new mark_cleaned_args(this); } @Override @@ -256049,12 +256982,12 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof find_columns_with_stats_args) - return this.equals((find_columns_with_stats_args)that); + if (that instanceof mark_cleaned_args) + return this.equals((mark_cleaned_args)that); return false; } - public boolean equals(find_columns_with_stats_args that) { + public boolean equals(mark_cleaned_args that) { if (that == null) return false; if (this == that) @@ -256084,7 +257017,7 @@ public int hashCode() { } @Override - public int compareTo(find_columns_with_stats_args other) { + public int compareTo(mark_cleaned_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -256119,7 +257052,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("find_columns_with_stats_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_cleaned_args("); boolean first = true; sb.append("cr:"); @@ -256157,15 +257090,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class find_columns_with_stats_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public find_columns_with_stats_argsStandardScheme getScheme() { - return new find_columns_with_stats_argsStandardScheme(); + private static class mark_cleaned_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_cleaned_argsStandardScheme getScheme() { + return new mark_cleaned_argsStandardScheme(); } } - private static class find_columns_with_stats_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_cleaned_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_stats_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) @@ -256193,7 +257126,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_stats_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); @@ -256208,16 +257141,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_ } - private static class find_columns_with_stats_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public find_columns_with_stats_argsTupleScheme getScheme() { - return new find_columns_with_stats_argsTupleScheme(); + private static class mark_cleaned_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_cleaned_argsTupleScheme getScheme() { + return new mark_cleaned_argsTupleScheme(); } } - private static class find_columns_with_stats_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_cleaned_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_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 { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetCr()) { @@ -256230,7 +257163,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_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 { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -256246,19 +257179,19 @@ private static S scheme(org.apache. } } - @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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_cleaned_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_cleaned_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new find_columns_with_stats_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new find_columns_with_stats_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_cleaned_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_cleaned_resultTupleSchemeFactory(); - private @org.apache.thrift.annotation.Nullable java.util.List success; // required + private @org.apache.thrift.annotation.Nullable 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 java.util.Map byName = new java.util.HashMap(); @@ -256274,8 +257207,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // O1 + return O1; default: return null; } @@ -256320,89 +257253,71 @@ public java.lang.String getFieldName() { public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MetaException.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(find_columns_with_stats_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_result.class, metaDataMap); } - public find_columns_with_stats_result() { + public mark_cleaned_result() { } - public find_columns_with_stats_result( - java.util.List success) + public mark_cleaned_result( + MetaException o1) { this(); - this.success = success; + this.o1 = o1; } /** * Performs a deep copy on other. */ - public find_columns_with_stats_result(find_columns_with_stats_result other) { - if (other.isSetSuccess()) { - java.util.List __this__success = new java.util.ArrayList(other.success); - this.success = __this__success; + public mark_cleaned_result(mark_cleaned_result other) { + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public find_columns_with_stats_result deepCopy() { - return new find_columns_with_stats_result(this); + public mark_cleaned_result deepCopy() { + return new mark_cleaned_result(this); } @Override public void clear() { - this.success = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - @org.apache.thrift.annotation.Nullable - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(java.lang.String elem) { - if (this.success == null) { - this.success = new java.util.ArrayList(); - } - this.success.add(elem); + this.o1 = null; } @org.apache.thrift.annotation.Nullable - public java.util.List getSuccess() { - return this.success; + public MetaException getO1() { + return this.o1; } - public void setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { - this.success = success; + public void setO1(@org.apache.thrift.annotation.Nullable 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, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((java.util.List)value); + setO1((MetaException)value); } break; @@ -256412,8 +257327,8 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case O1: + return getO1(); } throw new java.lang.IllegalStateException(); @@ -256426,31 +257341,31 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case O1: + return isSetO1(); } throw new java.lang.IllegalStateException(); } @Override public boolean equals(java.lang.Object that) { - if (that instanceof find_columns_with_stats_result) - return this.equals((find_columns_with_stats_result)that); + if (that instanceof mark_cleaned_result) + return this.equals((mark_cleaned_result)that); return false; } - public boolean equals(find_columns_with_stats_result that) { + public boolean equals(mark_cleaned_result that) { if (that == null) return false; if (this == that) return true; - 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; } @@ -256461,27 +257376,27 @@ public boolean equals(find_columns_with_stats_result that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); - if (isSetSuccess()) - hashCode = hashCode * 8191 + success.hashCode(); + hashCode = hashCode * 8191 + ((isSetO1()) ? 131071 : 524287); + if (isSetO1()) + hashCode = hashCode * 8191 + o1.hashCode(); return hashCode; } @Override - public int compareTo(find_columns_with_stats_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 = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetO1(), 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; } @@ -256504,14 +257419,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("find_columns_with_stats_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_cleaned_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(")"); @@ -256539,15 +257454,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class find_columns_with_stats_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public find_columns_with_stats_resultStandardScheme getScheme() { - return new find_columns_with_stats_resultStandardScheme(); + private static class mark_cleaned_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_cleaned_resultStandardScheme getScheme() { + return new mark_cleaned_resultStandardScheme(); } } - private static class find_columns_with_stats_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_cleaned_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_stats_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) @@ -256557,20 +257472,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_s break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list2182 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list2182.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem2183; - for (int _i2184 = 0; _i2184 < _list2182.size; ++_i2184) - { - _elem2183 = iprot.readString(); - struct.success.add(_elem2183); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -256584,20 +257490,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_stats_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.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (java.lang.String _iter2185 : struct.success) - { - oprot.writeString(_iter2185); - } - oprot.writeListEnd(); - } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -256606,49 +257505,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_ } - private static class find_columns_with_stats_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public find_columns_with_stats_resultTupleScheme getScheme() { - return new find_columns_with_stats_resultTupleScheme(); + private static class mark_cleaned_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_cleaned_resultTupleScheme getScheme() { + return new mark_cleaned_resultTupleScheme(); } } - private static class find_columns_with_stats_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_cleaned_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_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 { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (java.lang.String _iter2186 : struct.success) - { - oprot.writeString(_iter2186); - } - } + if (struct.isSetO1()) { + struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_stats_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 { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list2187 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.ArrayList(_list2187.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem2188; - for (int _i2189 = 0; _i2189 < _list2187.size; ++_i2189) - { - _elem2188 = iprot.readString(); - struct.success.add(_elem2188); - } - } - struct.setSuccessIsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } @@ -256658,13 +257543,13 @@ private static S scheme(org.apache. } } - @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"); + @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 CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_cleaned_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_cleaned_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_compacted_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_compacted_argsTupleSchemeFactory(); private @org.apache.thrift.annotation.Nullable CompactionInfoStruct cr; // required @@ -256735,13 +257620,13 @@ public java.lang.String getFieldName() { 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 = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_args.class, metaDataMap); } - public mark_cleaned_args() { + public mark_compacted_args() { } - public mark_cleaned_args( + public mark_compacted_args( CompactionInfoStruct cr) { this(); @@ -256751,14 +257636,14 @@ public mark_cleaned_args( /** * Performs a deep copy on other. */ - public mark_cleaned_args(mark_cleaned_args other) { + public mark_compacted_args(mark_compacted_args other) { if (other.isSetCr()) { this.cr = new CompactionInfoStruct(other.cr); } } - public mark_cleaned_args deepCopy() { - return new mark_cleaned_args(this); + public mark_compacted_args deepCopy() { + return new mark_compacted_args(this); } @Override @@ -256828,12 +257713,12 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_cleaned_args) - return this.equals((mark_cleaned_args)that); + if (that instanceof mark_compacted_args) + return this.equals((mark_compacted_args)that); return false; } - public boolean equals(mark_cleaned_args that) { + public boolean equals(mark_compacted_args that) { if (that == null) return false; if (this == that) @@ -256863,7 +257748,7 @@ public int hashCode() { } @Override - public int compareTo(mark_cleaned_args other) { + public int compareTo(mark_compacted_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -256898,7 +257783,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_cleaned_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_compacted_args("); boolean first = true; sb.append("cr:"); @@ -256936,15 +257821,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class mark_cleaned_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_cleaned_argsStandardScheme getScheme() { - return new mark_cleaned_argsStandardScheme(); + private static class mark_compacted_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_compacted_argsStandardScheme getScheme() { + return new mark_compacted_argsStandardScheme(); } } - private static class mark_cleaned_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_compacted_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_cleaned_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) @@ -256972,7 +257857,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_cleaned_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_cleaned_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); @@ -256987,16 +257872,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_cleaned_args } - private static class mark_cleaned_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_cleaned_argsTupleScheme getScheme() { - return new mark_cleaned_argsTupleScheme(); + private static class mark_compacted_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_compacted_argsTupleScheme getScheme() { + return new mark_compacted_argsTupleScheme(); } } - private static class mark_cleaned_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_compacted_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_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 { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetCr()) { @@ -257009,7 +257894,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_args s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_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 { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -257025,13 +257910,13 @@ private static S scheme(org.apache. } } - @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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_compacted_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mark_compacted_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_cleaned_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_cleaned_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_compacted_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_compacted_resultTupleSchemeFactory(); private @org.apache.thrift.annotation.Nullable MetaException o1; // required @@ -257102,13 +257987,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MetaException.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_cleaned_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_result.class, metaDataMap); } - public mark_cleaned_result() { + public mark_compacted_result() { } - public mark_cleaned_result( + public mark_compacted_result( MetaException o1) { this(); @@ -257118,14 +258003,14 @@ public mark_cleaned_result( /** * Performs a deep copy on other. */ - public mark_cleaned_result(mark_cleaned_result other) { + public mark_compacted_result(mark_compacted_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public mark_cleaned_result deepCopy() { - return new mark_cleaned_result(this); + public mark_compacted_result deepCopy() { + return new mark_compacted_result(this); } @Override @@ -257195,12 +258080,12 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_cleaned_result) - return this.equals((mark_cleaned_result)that); + if (that instanceof mark_compacted_result) + return this.equals((mark_compacted_result)that); return false; } - public boolean equals(mark_cleaned_result that) { + public boolean equals(mark_compacted_result that) { if (that == null) return false; if (this == that) @@ -257230,7 +258115,7 @@ public int hashCode() { } @Override - public int compareTo(mark_cleaned_result other) { + public int compareTo(mark_compacted_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -257265,7 +258150,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_cleaned_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_compacted_result("); boolean first = true; sb.append("o1:"); @@ -257300,15 +258185,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class mark_cleaned_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_cleaned_resultStandardScheme getScheme() { - return new mark_cleaned_resultStandardScheme(); + private static class mark_compacted_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_compacted_resultStandardScheme getScheme() { + return new mark_compacted_resultStandardScheme(); } } - private static class mark_cleaned_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_compacted_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_cleaned_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) @@ -257336,7 +258221,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_cleaned_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_cleaned_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); @@ -257351,16 +258236,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_cleaned_resul } - private static class mark_cleaned_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_cleaned_resultTupleScheme getScheme() { - return new mark_cleaned_resultTupleScheme(); + private static class mark_compacted_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_compacted_resultTupleScheme getScheme() { + return new mark_compacted_resultTupleScheme(); } } - private static class mark_cleaned_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_compacted_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_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 { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetO1()) { @@ -257373,7 +258258,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_cleaned_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 { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -257389,13 +258274,13 @@ private static S scheme(org.apache. } } - @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"); + @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 CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_compacted_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_compacted_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_failed_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_failed_argsTupleSchemeFactory(); private @org.apache.thrift.annotation.Nullable CompactionInfoStruct cr; // required @@ -257466,13 +258351,13 @@ public java.lang.String getFieldName() { 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 = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_args.class, metaDataMap); } - public mark_compacted_args() { + public mark_failed_args() { } - public mark_compacted_args( + public mark_failed_args( CompactionInfoStruct cr) { this(); @@ -257482,14 +258367,14 @@ public mark_compacted_args( /** * Performs a deep copy on other. */ - public mark_compacted_args(mark_compacted_args other) { + public mark_failed_args(mark_failed_args other) { if (other.isSetCr()) { this.cr = new CompactionInfoStruct(other.cr); } } - public mark_compacted_args deepCopy() { - return new mark_compacted_args(this); + public mark_failed_args deepCopy() { + return new mark_failed_args(this); } @Override @@ -257559,12 +258444,12 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_compacted_args) - return this.equals((mark_compacted_args)that); + if (that instanceof mark_failed_args) + return this.equals((mark_failed_args)that); return false; } - public boolean equals(mark_compacted_args that) { + public boolean equals(mark_failed_args that) { if (that == null) return false; if (this == that) @@ -257594,7 +258479,7 @@ public int hashCode() { } @Override - public int compareTo(mark_compacted_args other) { + public int compareTo(mark_failed_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -257629,7 +258514,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_compacted_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_failed_args("); boolean first = true; sb.append("cr:"); @@ -257667,15 +258552,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class mark_compacted_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_compacted_argsStandardScheme getScheme() { - return new mark_compacted_argsStandardScheme(); + private static class mark_failed_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_failed_argsStandardScheme getScheme() { + return new mark_failed_argsStandardScheme(); } } - private static class mark_compacted_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_failed_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_compacted_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) @@ -257703,7 +258588,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_compacted_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_compacted_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); @@ -257718,16 +258603,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_compacted_arg } - private static class mark_compacted_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_compacted_argsTupleScheme getScheme() { - return new mark_compacted_argsTupleScheme(); + private static class mark_failed_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_failed_argsTupleScheme getScheme() { + return new mark_failed_argsTupleScheme(); } } - private static class mark_compacted_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_failed_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_compacted_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 { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetCr()) { @@ -257740,7 +258625,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, mark_compacted_args } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_compacted_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 { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -257756,13 +258641,13 @@ private static S scheme(org.apache. } } - @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"); + @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 O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_compacted_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_compacted_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_failed_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_failed_resultTupleSchemeFactory(); private @org.apache.thrift.annotation.Nullable MetaException o1; // required @@ -257833,13 +258718,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MetaException.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_compacted_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_result.class, metaDataMap); } - public mark_compacted_result() { + public mark_failed_result() { } - public mark_compacted_result( + public mark_failed_result( MetaException o1) { this(); @@ -257849,14 +258734,14 @@ public mark_compacted_result( /** * Performs a deep copy on other. */ - public mark_compacted_result(mark_compacted_result other) { + public mark_failed_result(mark_failed_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public mark_compacted_result deepCopy() { - return new mark_compacted_result(this); + public mark_failed_result deepCopy() { + return new mark_failed_result(this); } @Override @@ -257926,12 +258811,12 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_compacted_result) - return this.equals((mark_compacted_result)that); + if (that instanceof mark_failed_result) + return this.equals((mark_failed_result)that); return false; } - public boolean equals(mark_compacted_result that) { + public boolean equals(mark_failed_result that) { if (that == null) return false; if (this == that) @@ -257961,7 +258846,7 @@ public int hashCode() { } @Override - public int compareTo(mark_compacted_result other) { + public int compareTo(mark_failed_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -257996,7 +258881,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_compacted_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_failed_result("); boolean first = true; sb.append("o1:"); @@ -258031,15 +258916,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class mark_compacted_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_compacted_resultStandardScheme getScheme() { - return new mark_compacted_resultStandardScheme(); + private static class mark_failed_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_failed_resultStandardScheme getScheme() { + return new mark_failed_resultStandardScheme(); } } - private static class mark_compacted_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_failed_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_compacted_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) @@ -258067,7 +258952,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_compacted_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_compacted_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); @@ -258082,16 +258967,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_compacted_res } - private static class mark_compacted_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_compacted_resultTupleScheme getScheme() { - return new mark_compacted_resultTupleScheme(); + private static class mark_failed_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_failed_resultTupleScheme getScheme() { + return new mark_failed_resultTupleScheme(); } } - private static class mark_compacted_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_failed_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_compacted_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 { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetO1()) { @@ -258104,7 +258989,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, mark_compacted_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_compacted_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 { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -258120,13 +259005,13 @@ private static S scheme(org.apache. } } - @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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_refused_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_refused_args"); private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_failed_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_failed_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_refused_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_refused_argsTupleSchemeFactory(); private @org.apache.thrift.annotation.Nullable CompactionInfoStruct cr; // required @@ -258197,13 +259082,13 @@ public java.lang.String getFieldName() { 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 = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_refused_args.class, metaDataMap); } - public mark_failed_args() { + public mark_refused_args() { } - public mark_failed_args( + public mark_refused_args( CompactionInfoStruct cr) { this(); @@ -258213,14 +259098,14 @@ public mark_failed_args( /** * Performs a deep copy on other. */ - public mark_failed_args(mark_failed_args other) { + public mark_refused_args(mark_refused_args other) { if (other.isSetCr()) { this.cr = new CompactionInfoStruct(other.cr); } } - public mark_failed_args deepCopy() { - return new mark_failed_args(this); + public mark_refused_args deepCopy() { + return new mark_refused_args(this); } @Override @@ -258290,12 +259175,12 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_failed_args) - return this.equals((mark_failed_args)that); + if (that instanceof mark_refused_args) + return this.equals((mark_refused_args)that); return false; } - public boolean equals(mark_failed_args that) { + public boolean equals(mark_refused_args that) { if (that == null) return false; if (this == that) @@ -258325,7 +259210,7 @@ public int hashCode() { } @Override - public int compareTo(mark_failed_args other) { + public int compareTo(mark_refused_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -258360,7 +259245,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_failed_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_refused_args("); boolean first = true; sb.append("cr:"); @@ -258398,15 +259283,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class mark_failed_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_failed_argsStandardScheme getScheme() { - return new mark_failed_argsStandardScheme(); + private static class mark_refused_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_refused_argsStandardScheme getScheme() { + return new mark_refused_argsStandardScheme(); } } - private static class mark_failed_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_refused_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_failed_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -258434,7 +259319,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_failed_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_failed_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_refused_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -258449,16 +259334,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_failed_args s } - private static class mark_failed_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_failed_argsTupleScheme getScheme() { - return new mark_failed_argsTupleScheme(); + private static class mark_refused_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_refused_argsTupleScheme getScheme() { + return new mark_refused_argsTupleScheme(); } } - private static class mark_failed_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_refused_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_failed_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_refused_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetCr()) { @@ -258471,7 +259356,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, mark_failed_args st } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_failed_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_refused_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -258487,13 +259372,13 @@ private static S scheme(org.apache. } } - @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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_refused_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_refused_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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_failed_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_failed_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_refused_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_refused_resultTupleSchemeFactory(); private @org.apache.thrift.annotation.Nullable MetaException o1; // required @@ -258564,13 +259449,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MetaException.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_failed_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_refused_result.class, metaDataMap); } - public mark_failed_result() { + public mark_refused_result() { } - public mark_failed_result( + public mark_refused_result( MetaException o1) { this(); @@ -258580,14 +259465,14 @@ public mark_failed_result( /** * Performs a deep copy on other. */ - public mark_failed_result(mark_failed_result other) { + public mark_refused_result(mark_refused_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public mark_failed_result deepCopy() { - return new mark_failed_result(this); + public mark_refused_result deepCopy() { + return new mark_refused_result(this); } @Override @@ -258657,12 +259542,12 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_failed_result) - return this.equals((mark_failed_result)that); + if (that instanceof mark_refused_result) + return this.equals((mark_refused_result)that); return false; } - public boolean equals(mark_failed_result that) { + public boolean equals(mark_refused_result that) { if (that == null) return false; if (this == that) @@ -258692,7 +259577,7 @@ public int hashCode() { } @Override - public int compareTo(mark_failed_result other) { + public int compareTo(mark_refused_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -258727,7 +259612,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_failed_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_refused_result("); boolean first = true; sb.append("o1:"); @@ -258762,15 +259647,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class mark_failed_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_failed_resultStandardScheme getScheme() { - return new mark_failed_resultStandardScheme(); + private static class mark_refused_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_refused_resultStandardScheme getScheme() { + return new mark_refused_resultStandardScheme(); } } - private static class mark_failed_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class mark_refused_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_failed_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -258798,7 +259683,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_failed_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_failed_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, mark_refused_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -258813,16 +259698,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_failed_result } - private static class mark_failed_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_failed_resultTupleScheme getScheme() { - return new mark_failed_resultTupleScheme(); + private static class mark_refused_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public mark_refused_resultTupleScheme getScheme() { + return new mark_refused_resultTupleScheme(); } } - private static class mark_failed_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class mark_refused_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_failed_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, mark_refused_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetO1()) { @@ -258835,7 +259720,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, mark_failed_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_failed_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, mark_refused_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -258851,19 +259736,19 @@ private static S scheme(org.apache. } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_refused_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_refused_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_compaction_metrics_data_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_compaction_metrics_data_args"); - private static final org.apache.thrift.protocol.TField CR_FIELD_DESC = new org.apache.thrift.protocol.TField("cr", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_refused_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_refused_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new update_compaction_metrics_data_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new update_compaction_metrics_data_argsTupleSchemeFactory(); - private @org.apache.thrift.annotation.Nullable CompactionInfoStruct cr; // required + private @org.apache.thrift.annotation.Nullable CompactionMetricsDataStruct data; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - CR((short)1, "cr"); + DATA((short)1, "data"); private static final java.util.Map byName = new java.util.HashMap(); @@ -258879,8 +259764,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // CR - return CR; + case 1: // DATA + return DATA; default: return null; } @@ -258925,71 +259810,71 @@ public java.lang.String getFieldName() { public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.CR, new org.apache.thrift.meta_data.FieldMetaData("cr", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionInfoStruct.class))); + tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionMetricsDataStruct.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_refused_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compaction_metrics_data_args.class, metaDataMap); } - public mark_refused_args() { + public update_compaction_metrics_data_args() { } - public mark_refused_args( - CompactionInfoStruct cr) + public update_compaction_metrics_data_args( + CompactionMetricsDataStruct data) { this(); - this.cr = cr; + this.data = data; } /** * Performs a deep copy on other. */ - public mark_refused_args(mark_refused_args other) { - if (other.isSetCr()) { - this.cr = new CompactionInfoStruct(other.cr); + public update_compaction_metrics_data_args(update_compaction_metrics_data_args other) { + if (other.isSetData()) { + this.data = new CompactionMetricsDataStruct(other.data); } } - public mark_refused_args deepCopy() { - return new mark_refused_args(this); + public update_compaction_metrics_data_args deepCopy() { + return new update_compaction_metrics_data_args(this); } @Override public void clear() { - this.cr = null; + this.data = null; } @org.apache.thrift.annotation.Nullable - public CompactionInfoStruct getCr() { - return this.cr; + public CompactionMetricsDataStruct getData() { + return this.data; } - public void setCr(@org.apache.thrift.annotation.Nullable CompactionInfoStruct cr) { - this.cr = cr; + public void setData(@org.apache.thrift.annotation.Nullable CompactionMetricsDataStruct data) { + this.data = data; } - public void unsetCr() { - this.cr = null; + public void unsetData() { + this.data = null; } - /** Returns true if field cr is set (has been assigned a value) and false otherwise */ - public boolean isSetCr() { - return this.cr != null; + /** Returns true if field data is set (has been assigned a value) and false otherwise */ + public boolean isSetData() { + return this.data != null; } - public void setCrIsSet(boolean value) { + public void setDataIsSet(boolean value) { if (!value) { - this.cr = null; + this.data = null; } } public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case CR: + case DATA: if (value == null) { - unsetCr(); + unsetData(); } else { - setCr((CompactionInfoStruct)value); + setData((CompactionMetricsDataStruct)value); } break; @@ -258999,8 +259884,8 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case CR: - return getCr(); + case DATA: + return getData(); } throw new java.lang.IllegalStateException(); @@ -259013,31 +259898,31 @@ public boolean isSet(_Fields field) { } switch (field) { - case CR: - return isSetCr(); + case DATA: + return isSetData(); } throw new java.lang.IllegalStateException(); } @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_refused_args) - return this.equals((mark_refused_args)that); + if (that instanceof update_compaction_metrics_data_args) + return this.equals((update_compaction_metrics_data_args)that); return false; } - public boolean equals(mark_refused_args that) { + public boolean equals(update_compaction_metrics_data_args that) { if (that == null) return false; if (this == that) return true; - 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)) + boolean this_present_data = true && this.isSetData(); + boolean that_present_data = true && that.isSetData(); + if (this_present_data || that_present_data) { + if (!(this_present_data && that_present_data)) return false; - if (!this.cr.equals(that.cr)) + if (!this.data.equals(that.data)) return false; } @@ -259048,27 +259933,27 @@ public boolean equals(mark_refused_args that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((isSetCr()) ? 131071 : 524287); - if (isSetCr()) - hashCode = hashCode * 8191 + cr.hashCode(); + hashCode = hashCode * 8191 + ((isSetData()) ? 131071 : 524287); + if (isSetData()) + hashCode = hashCode * 8191 + data.hashCode(); return hashCode; } @Override - public int compareTo(mark_refused_args other) { + public int compareTo(update_compaction_metrics_data_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.Boolean.compare(isSetCr(), other.isSetCr()); + lastComparison = java.lang.Boolean.compare(isSetData(), other.isSetData()); if (lastComparison != 0) { return lastComparison; } - if (isSetCr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); + if (isSetData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, other.data); if (lastComparison != 0) { return lastComparison; } @@ -259091,14 +259976,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_refused_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("update_compaction_metrics_data_args("); boolean first = true; - sb.append("cr:"); - if (this.cr == null) { + sb.append("data:"); + if (this.data == null) { sb.append("null"); } else { - sb.append(this.cr); + sb.append(this.data); } first = false; sb.append(")"); @@ -259108,8 +259993,8 @@ public java.lang.String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (cr != null) { - cr.validate(); + if (data != null) { + data.validate(); } } @@ -259129,15 +260014,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class mark_refused_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_refused_argsStandardScheme getScheme() { - return new mark_refused_argsStandardScheme(); + private static class update_compaction_metrics_data_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public update_compaction_metrics_data_argsStandardScheme getScheme() { + return new update_compaction_metrics_data_argsStandardScheme(); } } - private static class mark_refused_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class update_compaction_metrics_data_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -259147,11 +260032,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_args s break; } switch (schemeField.id) { - case 1: // CR + case 1: // DATA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.cr = new CompactionInfoStruct(); - struct.cr.read(iprot); - struct.setCrIsSet(true); + struct.data = new CompactionMetricsDataStruct(); + struct.data.read(iprot); + struct.setDataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -259165,13 +260050,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_refused_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.cr != null) { - oprot.writeFieldBegin(CR_FIELD_DESC); - struct.cr.write(oprot); + if (struct.data != null) { + oprot.writeFieldBegin(DATA_FIELD_DESC); + struct.data.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -259180,35 +260065,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_refused_args } - private static class mark_refused_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_refused_argsTupleScheme getScheme() { - return new mark_refused_argsTupleScheme(); + private static class update_compaction_metrics_data_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public update_compaction_metrics_data_argsTupleScheme getScheme() { + return new update_compaction_metrics_data_argsTupleScheme(); } } - private static class mark_refused_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class update_compaction_metrics_data_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_refused_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetCr()) { + if (struct.isSetData()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetCr()) { - struct.cr.write(oprot); + if (struct.isSetData()) { + struct.data.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_refused_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.cr = new CompactionInfoStruct(); - struct.cr.read(iprot); - struct.setCrIsSet(true); + struct.data = new CompactionMetricsDataStruct(); + struct.data.read(iprot); + struct.setDataIsSet(true); } } } @@ -259218,18 +260103,21 @@ private static S scheme(org.apache. } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class mark_refused_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_refused_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_compaction_metrics_data_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_compaction_metrics_data_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new mark_refused_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new mark_refused_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new update_compaction_metrics_data_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new update_compaction_metrics_data_resultTupleSchemeFactory(); + private boolean success; // required private @org.apache.thrift.annotation.Nullable 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 java.util.Map byName = new java.util.HashMap(); @@ -259246,6 +260134,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; default: @@ -259289,43 +260179,76 @@ public java.lang.String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MetaException.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mark_refused_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compaction_metrics_data_result.class, metaDataMap); } - public mark_refused_result() { + public update_compaction_metrics_data_result() { } - public mark_refused_result( + public update_compaction_metrics_data_result( + boolean success, MetaException o1) { this(); + this.success = success; + setSuccessIsSet(true); this.o1 = o1; } /** * Performs a deep copy on other. */ - public mark_refused_result(mark_refused_result other) { + public update_compaction_metrics_data_result(update_compaction_metrics_data_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public mark_refused_result deepCopy() { - return new mark_refused_result(this); + public update_compaction_metrics_data_result deepCopy() { + return new update_compaction_metrics_data_result(this); } @Override public void clear() { + setSuccessIsSet(false); + this.success = false; this.o1 = null; } + public boolean isSuccess() { + return this.success; + } + + public void setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + @org.apache.thrift.annotation.Nullable public MetaException getO1() { return this.o1; @@ -259352,6 +260275,14 @@ public void setO1IsSet(boolean value) { public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((java.lang.Boolean)value); + } + break; + case O1: if (value == null) { unsetO1(); @@ -259366,6 +260297,9 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return isSuccess(); + case O1: return getO1(); @@ -259380,6 +260314,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); } @@ -259388,17 +260324,26 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof mark_refused_result) - return this.equals((mark_refused_result)that); + if (that instanceof update_compaction_metrics_data_result) + return this.equals((update_compaction_metrics_data_result)that); return false; } - public boolean equals(mark_refused_result that) { + public boolean equals(update_compaction_metrics_data_result that) { if (that == null) return false; if (this == that) return true; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -259415,6 +260360,8 @@ public boolean equals(mark_refused_result that) { public int hashCode() { int hashCode = 1; + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); + hashCode = hashCode * 8191 + ((isSetO1()) ? 131071 : 524287); if (isSetO1()) hashCode = hashCode * 8191 + o1.hashCode(); @@ -259423,13 +260370,23 @@ public int hashCode() { } @Override - public int compareTo(mark_refused_result other) { + public int compareTo(update_compaction_metrics_data_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = java.lang.Boolean.compare(isSetO1(), other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -259458,9 +260415,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("mark_refused_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("update_compaction_metrics_data_result("); boolean first = true; + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -259487,21 +260448,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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 mark_refused_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_refused_resultStandardScheme getScheme() { - return new mark_refused_resultStandardScheme(); + private static class update_compaction_metrics_data_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public update_compaction_metrics_data_resultStandardScheme getScheme() { + return new update_compaction_metrics_data_resultStandardScheme(); } } - private static class mark_refused_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class update_compaction_metrics_data_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -259511,6 +260474,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o1 = new MetaException(); @@ -259529,10 +260500,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, mark_refused_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, mark_refused_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -259544,32 +260520,42 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, mark_refused_resul } - private static class mark_refused_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public mark_refused_resultTupleScheme getScheme() { - return new mark_refused_resultTupleScheme(); + private static class update_compaction_metrics_data_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public update_compaction_metrics_data_resultTupleScheme getScheme() { + return new update_compaction_metrics_data_resultTupleScheme(); } } - private static class mark_refused_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class update_compaction_metrics_data_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, mark_refused_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } if (struct.isSetO1()) { struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, mark_refused_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); @@ -259582,19 +260568,19 @@ private static S scheme(org.apache. } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_compaction_metrics_data_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_compaction_metrics_data_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_compaction_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_compaction_type_args"); - private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", 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.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new update_compaction_metrics_data_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new update_compaction_metrics_data_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new set_compaction_type_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new set_compaction_type_argsTupleSchemeFactory(); - private @org.apache.thrift.annotation.Nullable CompactionMetricsDataStruct data; // required + private @org.apache.thrift.annotation.Nullable 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 { - DATA((short)1, "data"); + CR((short)1, "cr"); private static final java.util.Map byName = new java.util.HashMap(); @@ -259610,8 +260596,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DATA - return DATA; + case 1: // CR + return CR; default: return null; } @@ -259656,71 +260642,71 @@ public java.lang.String getFieldName() { public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionMetricsDataStruct.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 = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compaction_metrics_data_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_compaction_type_args.class, metaDataMap); } - public update_compaction_metrics_data_args() { + public set_compaction_type_args() { } - public update_compaction_metrics_data_args( - CompactionMetricsDataStruct data) + public set_compaction_type_args( + CompactionInfoStruct cr) { this(); - this.data = data; + this.cr = cr; } /** * Performs a deep copy on other. */ - public update_compaction_metrics_data_args(update_compaction_metrics_data_args other) { - if (other.isSetData()) { - this.data = new CompactionMetricsDataStruct(other.data); + public set_compaction_type_args(set_compaction_type_args other) { + if (other.isSetCr()) { + this.cr = new CompactionInfoStruct(other.cr); } } - public update_compaction_metrics_data_args deepCopy() { - return new update_compaction_metrics_data_args(this); + public set_compaction_type_args deepCopy() { + return new set_compaction_type_args(this); } @Override public void clear() { - this.data = null; + this.cr = null; } @org.apache.thrift.annotation.Nullable - public CompactionMetricsDataStruct getData() { - return this.data; + public CompactionInfoStruct getCr() { + return this.cr; } - public void setData(@org.apache.thrift.annotation.Nullable CompactionMetricsDataStruct data) { - this.data = data; + public void setCr(@org.apache.thrift.annotation.Nullable CompactionInfoStruct cr) { + this.cr = cr; } - public void unsetData() { - this.data = null; + public void unsetCr() { + this.cr = null; } - /** Returns true if field data is set (has been assigned a value) and false otherwise */ - public boolean isSetData() { - return this.data != 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 setDataIsSet(boolean value) { + public void setCrIsSet(boolean value) { if (!value) { - this.data = null; + this.cr = null; } } public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case DATA: + case CR: if (value == null) { - unsetData(); + unsetCr(); } else { - setData((CompactionMetricsDataStruct)value); + setCr((CompactionInfoStruct)value); } break; @@ -259730,8 +260716,8 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case DATA: - return getData(); + case CR: + return getCr(); } throw new java.lang.IllegalStateException(); @@ -259744,31 +260730,31 @@ public boolean isSet(_Fields field) { } switch (field) { - case DATA: - return isSetData(); + case CR: + return isSetCr(); } throw new java.lang.IllegalStateException(); } @Override public boolean equals(java.lang.Object that) { - if (that instanceof update_compaction_metrics_data_args) - return this.equals((update_compaction_metrics_data_args)that); + if (that instanceof set_compaction_type_args) + return this.equals((set_compaction_type_args)that); return false; } - public boolean equals(update_compaction_metrics_data_args that) { + public boolean equals(set_compaction_type_args that) { if (that == null) return false; if (this == that) return true; - boolean this_present_data = true && this.isSetData(); - boolean that_present_data = true && that.isSetData(); - if (this_present_data || that_present_data) { - if (!(this_present_data && that_present_data)) + 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.data.equals(that.data)) + if (!this.cr.equals(that.cr)) return false; } @@ -259779,27 +260765,27 @@ public boolean equals(update_compaction_metrics_data_args that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((isSetData()) ? 131071 : 524287); - if (isSetData()) - hashCode = hashCode * 8191 + data.hashCode(); + hashCode = hashCode * 8191 + ((isSetCr()) ? 131071 : 524287); + if (isSetCr()) + hashCode = hashCode * 8191 + cr.hashCode(); return hashCode; } @Override - public int compareTo(update_compaction_metrics_data_args other) { + public int compareTo(set_compaction_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.Boolean.compare(isSetData(), other.isSetData()); + lastComparison = java.lang.Boolean.compare(isSetCr(), other.isSetCr()); if (lastComparison != 0) { return lastComparison; } - if (isSetData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, other.data); + if (isSetCr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cr, other.cr); if (lastComparison != 0) { return lastComparison; } @@ -259822,14 +260808,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("update_compaction_metrics_data_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("set_compaction_type_args("); boolean first = true; - sb.append("data:"); - if (this.data == null) { + sb.append("cr:"); + if (this.cr == null) { sb.append("null"); } else { - sb.append(this.data); + sb.append(this.cr); } first = false; sb.append(")"); @@ -259839,8 +260825,8 @@ public java.lang.String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (data != null) { - data.validate(); + if (cr != null) { + cr.validate(); } } @@ -259860,15 +260846,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class update_compaction_metrics_data_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public update_compaction_metrics_data_argsStandardScheme getScheme() { - return new update_compaction_metrics_data_argsStandardScheme(); + private static class set_compaction_type_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public set_compaction_type_argsStandardScheme getScheme() { + return new set_compaction_type_argsStandardScheme(); } } - private static class update_compaction_metrics_data_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class set_compaction_type_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, set_compaction_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -259878,11 +260864,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_m break; } switch (schemeField.id) { - case 1: // DATA + case 1: // CR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.data = new CompactionMetricsDataStruct(); - struct.data.read(iprot); - struct.setDataIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -259896,13 +260882,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_m struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, set_compaction_type_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.data != null) { - oprot.writeFieldBegin(DATA_FIELD_DESC); - struct.data.write(oprot); + if (struct.cr != null) { + oprot.writeFieldBegin(CR_FIELD_DESC); + struct.cr.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -259911,35 +260897,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, update_compaction_ } - private static class update_compaction_metrics_data_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public update_compaction_metrics_data_argsTupleScheme getScheme() { - return new update_compaction_metrics_data_argsTupleScheme(); + private static class set_compaction_type_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public set_compaction_type_argsTupleScheme getScheme() { + return new set_compaction_type_argsTupleScheme(); } } - private static class update_compaction_metrics_data_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class set_compaction_type_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, set_compaction_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetData()) { + if (struct.isSetCr()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetData()) { - struct.data.write(oprot); + if (struct.isSetCr()) { + struct.cr.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, set_compaction_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.data = new CompactionMetricsDataStruct(); - struct.data.read(iprot); - struct.setDataIsSet(true); + struct.cr = new CompactionInfoStruct(); + struct.cr.read(iprot); + struct.setCrIsSet(true); } } } @@ -259949,21 +260935,18 @@ private static S scheme(org.apache. } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_compaction_metrics_data_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_compaction_metrics_data_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class set_compaction_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_compaction_type_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new update_compaction_metrics_data_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new update_compaction_metrics_data_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new set_compaction_type_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new set_compaction_type_resultTupleSchemeFactory(); - private boolean success; // required private @org.apache.thrift.annotation.Nullable 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 java.util.Map byName = new java.util.HashMap(); @@ -259980,8 +260963,6 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; default: @@ -260025,76 +261006,43 @@ public java.lang.String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MetaException.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_compaction_metrics_data_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(set_compaction_type_result.class, metaDataMap); } - public update_compaction_metrics_data_result() { + public set_compaction_type_result() { } - public update_compaction_metrics_data_result( - boolean success, + public set_compaction_type_result( MetaException o1) { this(); - this.success = success; - setSuccessIsSet(true); this.o1 = o1; } /** * Performs a deep copy on other. */ - public update_compaction_metrics_data_result(update_compaction_metrics_data_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public set_compaction_type_result(set_compaction_type_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public update_compaction_metrics_data_result deepCopy() { - return new update_compaction_metrics_data_result(this); + public set_compaction_type_result deepCopy() { + return new set_compaction_type_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.o1 = null; } - public boolean isSuccess() { - return this.success; - } - - public void setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - } - - public void unsetSuccess() { - __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - public void setSuccessIsSet(boolean value) { - __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); - } - @org.apache.thrift.annotation.Nullable public MetaException getO1() { return this.o1; @@ -260121,14 +261069,6 @@ public void setO1IsSet(boolean value) { public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((java.lang.Boolean)value); - } - break; - case O1: if (value == null) { unsetO1(); @@ -260143,9 +261083,6 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return isSuccess(); - case O1: return getO1(); @@ -260160,8 +261097,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); } @@ -260170,26 +261105,17 @@ public boolean isSet(_Fields field) { @Override public boolean equals(java.lang.Object that) { - if (that instanceof update_compaction_metrics_data_result) - return this.equals((update_compaction_metrics_data_result)that); + if (that instanceof set_compaction_type_result) + return this.equals((set_compaction_type_result)that); return false; } - public boolean equals(update_compaction_metrics_data_result that) { + public boolean equals(set_compaction_type_result that) { if (that == null) return false; if (this == that) return true; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -260206,8 +261132,6 @@ public boolean equals(update_compaction_metrics_data_result that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - hashCode = hashCode * 8191 + ((isSetO1()) ? 131071 : 524287); if (isSetO1()) hashCode = hashCode * 8191 + o1.hashCode(); @@ -260216,23 +261140,13 @@ public int hashCode() { } @Override - public int compareTo(update_compaction_metrics_data_result other) { + public int compareTo(set_compaction_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = java.lang.Boolean.compare(isSetO1(), other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -260261,13 +261175,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("update_compaction_metrics_data_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("set_compaction_type_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -260294,23 +261204,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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 update_compaction_metrics_data_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public update_compaction_metrics_data_resultStandardScheme getScheme() { - return new update_compaction_metrics_data_resultStandardScheme(); + private static class set_compaction_type_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public set_compaction_type_resultStandardScheme getScheme() { + return new set_compaction_type_resultStandardScheme(); } } - private static class update_compaction_metrics_data_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class set_compaction_type_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, set_compaction_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -260320,14 +261228,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_m break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o1 = new MetaException(); @@ -260346,15 +261246,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_compaction_m struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, set_compaction_type_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -260366,42 +261261,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, update_compaction_ } - private static class update_compaction_metrics_data_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public update_compaction_metrics_data_resultTupleScheme getScheme() { - return new update_compaction_metrics_data_resultTupleScheme(); + private static class set_compaction_type_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public set_compaction_type_resultTupleScheme getScheme() { + return new set_compaction_type_resultTupleScheme(); } } - private static class update_compaction_metrics_data_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class set_compaction_type_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, set_compaction_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetO1()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + optionals.set(0); } + oprot.writeBitSet(optionals, 1); if (struct.isSetO1()) { struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, update_compaction_metrics_data_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, set_compaction_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/CompactionType.php b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/CompactionType.php index 083d81ee0614..45982da0e8ba 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/CompactionType.php +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/CompactionType.php @@ -26,11 +26,14 @@ final class CompactionType const ABORT_TXN_CLEANUP = 4; + const SMART_OPTIMIZE = 5; + static public $__names = array( 1 => 'MINOR', 2 => 'MAJOR', 3 => 'REBALANCE', 4 => 'ABORT_TXN_CLEANUP', + 5 => 'SMART_OPTIMIZE', ); } diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreClient.php b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreClient.php index 10ad5749c94d..478b3dfd3492 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreClient.php +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreClient.php @@ -13806,6 +13806,65 @@ public function recv_update_compaction_metrics_data() throw new \Exception("update_compaction_metrics_data failed: unknown result"); } + public function set_compaction_type(\metastore\CompactionInfoStruct $cr) + { + $this->send_set_compaction_type($cr); + $this->recv_set_compaction_type(); + } + + public function send_set_compaction_type(\metastore\CompactionInfoStruct $cr) + { + $args = new \metastore\ThriftHiveMetastore_set_compaction_type_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_, + 'set_compaction_type', + TMessageType::CALL, + $args, + $this->seqid_, + $this->output_->isStrictWrite() + ); + } else { + $this->output_->writeMessageBegin('set_compaction_type', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_set_compaction_type() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) { + $result = thrift_protocol_read_binary( + $this->input_, + '\metastore\ThriftHiveMetastore_set_compaction_type_result', + $this->input_->isStrictRead() + ); + } else { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_set_compaction_type_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + return; + } + public function remove_compaction_metrics_data(\metastore\CompactionMetricsDataRequest $request) { $this->send_remove_compaction_metrics_data($request); diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreIf.php b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreIf.php index 6d0c0727abf0..b8dafdd80c57 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreIf.php +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastoreIf.php @@ -1601,6 +1601,11 @@ public function mark_refused(\metastore\CompactionInfoStruct $cr); * @throws \metastore\MetaException */ public function update_compaction_metrics_data(\metastore\CompactionMetricsDataStruct $data); + /** + * @param \metastore\CompactionInfoStruct $cr + * @throws \metastore\MetaException + */ + public function set_compaction_type(\metastore\CompactionInfoStruct $cr); /** * @param \metastore\CompactionMetricsDataRequest $request * @throws \metastore\MetaException diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore_set_compaction_type_args.php b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore_set_compaction_type_args.php new file mode 100644 index 000000000000..6ead0024b2f0 --- /dev/null +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore_set_compaction_type_args.php @@ -0,0 +1,99 @@ + array( + 'var' => 'cr', + 'isRequired' => false, + 'type' => TType::STRUCT, + 'class' => '\metastore\CompactionInfoStruct', + ), + ); + + /** + * @var \metastore\CompactionInfoStruct + */ + public $cr = null; + + public function __construct($vals = null) + { + if (is_array($vals)) { + if (isset($vals['cr'])) { + $this->cr = $vals['cr']; + } + } + } + + public function getName() + { + return 'ThriftHiveMetastore_set_compaction_type_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_set_compaction_type_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; + } +} diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore_set_compaction_type_result.php b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore_set_compaction_type_result.php new file mode 100644 index 000000000000..4045b80f4dee --- /dev/null +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore_set_compaction_type_result.php @@ -0,0 +1,96 @@ + array( + 'var' => 'o1', + 'isRequired' => false, + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals = null) + { + if (is_array($vals)) { + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() + { + return 'ThriftHiveMetastore_set_compaction_type_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_set_compaction_type_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; + } +} diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 46feb3126b28..77cb8a87c2c4 100755 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -237,6 +237,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void mark_failed(CompactionInfoStruct cr)') print(' void mark_refused(CompactionInfoStruct cr)') print(' bool update_compaction_metrics_data(CompactionMetricsDataStruct data)') + print(' void set_compaction_type(CompactionInfoStruct cr)') print(' void remove_compaction_metrics_data(CompactionMetricsDataRequest request)') print(' void set_hadoop_jobid(string jobId, i64 cq_id)') print(' GetLatestCommittedCompactionInfoResponse get_latest_committed_compaction_info(GetLatestCommittedCompactionInfoRequest rqst)') @@ -1676,6 +1677,12 @@ elif cmd == 'update_compaction_metrics_data': sys.exit(1) pp.pprint(client.update_compaction_metrics_data(eval(args[0]),)) +elif cmd == 'set_compaction_type': + if len(args) != 1: + print('set_compaction_type requires 1 args') + sys.exit(1) + pp.pprint(client.set_compaction_type(eval(args[0]),)) + elif cmd == 'remove_compaction_metrics_data': if len(args) != 1: print('remove_compaction_metrics_data requires 1 args') diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index c9da932d225b..8e6140172072 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1853,6 +1853,14 @@ def update_compaction_metrics_data(self, data): """ pass + def set_compaction_type(self, cr): + """ + Parameters: + - cr + + """ + pass + def remove_compaction_metrics_data(self, request): """ Parameters: @@ -10210,6 +10218,38 @@ def recv_update_compaction_metrics_data(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "update_compaction_metrics_data failed: unknown result") + def set_compaction_type(self, cr): + """ + Parameters: + - cr + + """ + self.send_set_compaction_type(cr) + self.recv_set_compaction_type() + + def send_set_compaction_type(self, cr): + self._oprot.writeMessageBegin('set_compaction_type', TMessageType.CALL, self._seqid) + args = set_compaction_type_args() + args.cr = cr + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_set_compaction_type(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = set_compaction_type_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + return + def remove_compaction_metrics_data(self, request): """ Parameters: @@ -12807,6 +12847,7 @@ def __init__(self, handler): self._processMap["mark_failed"] = Processor.process_mark_failed self._processMap["mark_refused"] = Processor.process_mark_refused self._processMap["update_compaction_metrics_data"] = Processor.process_update_compaction_metrics_data + self._processMap["set_compaction_type"] = Processor.process_set_compaction_type self._processMap["remove_compaction_metrics_data"] = Processor.process_remove_compaction_metrics_data self._processMap["set_hadoop_jobid"] = Processor.process_set_hadoop_jobid self._processMap["get_latest_committed_compaction_info"] = Processor.process_get_latest_committed_compaction_info @@ -19027,6 +19068,32 @@ def process_update_compaction_metrics_data(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_set_compaction_type(self, seqid, iprot, oprot): + args = set_compaction_type_args() + args.read(iprot) + iprot.readMessageEnd() + result = set_compaction_type_result() + try: + self._handler.set_compaction_type(args.cr) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("set_compaction_type", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_remove_compaction_metrics_data(self, seqid, iprot, oprot): args = remove_compaction_metrics_data_args() args.read(iprot) @@ -54141,6 +54208,131 @@ def __ne__(self, other): ) +class set_compaction_type_args(object): + """ + Attributes: + - cr + + """ + + + def __init__(self, cr=None,): + self.cr = cr + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.cr = CompactionInfoStruct() + self.cr.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('set_compaction_type_args') + if self.cr is not None: + oprot.writeFieldBegin('cr', TType.STRUCT, 1) + self.cr.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(set_compaction_type_args) +set_compaction_type_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'cr', [CompactionInfoStruct, None], None, ), # 1 +) + + +class set_compaction_type_result(object): + """ + Attributes: + - o1 + + """ + + + def __init__(self, o1=None,): + self.o1 = o1 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('set_compaction_type_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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(set_compaction_type_result) +set_compaction_type_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 +) + + class remove_compaction_metrics_data_args(object): """ Attributes: diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 939c77561b44..90e0205d52e1 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -157,12 +157,14 @@ class CompactionType(object): MAJOR = 2 REBALANCE = 3 ABORT_TXN_CLEANUP = 4 + SMART_OPTIMIZE = 5 _VALUES_TO_NAMES = { 1: "MINOR", 2: "MAJOR", 3: "REBALANCE", 4: "ABORT_TXN_CLEANUP", + 5: "SMART_OPTIMIZE", } _NAMES_TO_VALUES = { @@ -170,6 +172,7 @@ class CompactionType(object): "MAJOR": 2, "REBALANCE": 3, "ABORT_TXN_CLEANUP": 4, + "SMART_OPTIMIZE": 5, } diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb b/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb index c7407fe73ca2..13bba30789f1 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -72,8 +72,9 @@ module CompactionType MAJOR = 2 REBALANCE = 3 ABORT_TXN_CLEANUP = 4 - VALUE_MAP = {1 => "MINOR", 2 => "MAJOR", 3 => "REBALANCE", 4 => "ABORT_TXN_CLEANUP"} - VALID_VALUES = Set.new([MINOR, MAJOR, REBALANCE, ABORT_TXN_CLEANUP]).freeze + SMART_OPTIMIZE = 5 + VALUE_MAP = {1 => "MINOR", 2 => "MAJOR", 3 => "REBALANCE", 4 => "ABORT_TXN_CLEANUP", 5 => "SMART_OPTIMIZE"} + VALID_VALUES = Set.new([MINOR, MAJOR, REBALANCE, ABORT_TXN_CLEANUP, SMART_OPTIMIZE]).freeze end module GrantRevokeType diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 434a93904c9b..77bee505dfa1 100644 --- a/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -3557,6 +3557,21 @@ def recv_update_compaction_metrics_data() raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'update_compaction_metrics_data failed: unknown result') end + def set_compaction_type(cr) + send_set_compaction_type(cr) + recv_set_compaction_type() + end + + def send_set_compaction_type(cr) + send_message('set_compaction_type', Set_compaction_type_args, :cr => cr) + end + + def recv_set_compaction_type() + result = receive_message(Set_compaction_type_result) + raise result.o1 unless result.o1.nil? + return + end + def remove_compaction_metrics_data(request) send_remove_compaction_metrics_data(request) recv_remove_compaction_metrics_data() @@ -7388,6 +7403,17 @@ def process_update_compaction_metrics_data(seqid, iprot, oprot) write_result(result, oprot, 'update_compaction_metrics_data', seqid) end + def process_set_compaction_type(seqid, iprot, oprot) + args = read_args(iprot, Set_compaction_type_args) + result = Set_compaction_type_result.new() + begin + @handler.set_compaction_type(args.cr) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'set_compaction_type', seqid) + end + def process_remove_compaction_metrics_data(seqid, iprot, oprot) args = read_args(iprot, Remove_compaction_metrics_data_args) result = Remove_compaction_metrics_data_result.new() @@ -16077,6 +16103,38 @@ def validate ::Thrift::Struct.generate_accessors self end + class Set_compaction_type_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 Set_compaction_type_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 Remove_compaction_metrics_data_args include ::Thrift::Struct, ::Thrift::Struct_Union REQUEST = 1 diff --git a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 4d9e7b31ec21..9f78347db4fc 100644 --- a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -5262,6 +5262,11 @@ public void updateCompactorState(CompactionInfoStruct cr, long txnId) throws TEx client.update_compactor_state(cr, txnId); } + @Override + public void setCompactionType(CompactionInfoStruct cr) throws TException { + client.set_compaction_type(cr); + } + @Override public List findColumnsWithStats(CompactionInfoStruct cr) throws TException { return client.find_columns_with_stats(cr); diff --git a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 090df9216bb5..c348e48db96b 100644 --- a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -4336,6 +4336,13 @@ void createOrDropTriggerToPoolMapping(String resourcePlanName, String triggerNam */ void updateCompactorState(CompactionInfoStruct cr, long txnId) throws TException; + /** + * Set the compaction type. + * @param cr compaction job being done. + * @throws TException + */ + void setCompactionType(CompactionInfoStruct cr) throws TException; + /** * Get columns. * @param cr compaction job. diff --git a/standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift b/standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift index 09279a550bca..d4afa05a3743 100644 --- a/standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift @@ -219,6 +219,7 @@ enum CompactionType { MAJOR = 2, REBALANCE = 3, ABORT_TXN_CLEANUP = 4, + SMART_OPTIMIZE = 5, } enum GrantRevokeType { @@ -3183,6 +3184,7 @@ PartitionsResponse get_partitions_req(1:PartitionsRequest req) void mark_failed(1: CompactionInfoStruct cr) throws(1:MetaException o1) void mark_refused(1: CompactionInfoStruct cr) throws(1:MetaException o1) bool update_compaction_metrics_data(1: CompactionMetricsDataStruct data) throws(1:MetaException o1) + void set_compaction_type(1:CompactionInfoStruct cr) throws(1:MetaException o1) void remove_compaction_metrics_data(1: CompactionMetricsDataRequest request) throws(1:MetaException o1) void set_hadoop_jobid(1: string jobId, 2: i64 cq_id) GetLatestCommittedCompactionInfoResponse get_latest_committed_compaction_info(1:GetLatestCommittedCompactionInfoRequest rqst) diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java index 0b1b7c27ed61..8cd1504afd13 100644 --- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java +++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java @@ -9174,6 +9174,11 @@ public void mark_refused(CompactionInfoStruct cr) throws MetaException { getTxnHandler().markRefused(CompactionInfo.compactionStructToInfo(cr)); } + @Override + public void set_compaction_type(org.apache.hadoop.hive.metastore.api.CompactionInfoStruct cr) throws MetaException { + getTxnHandler().setCompactionType(CompactionInfo.compactionStructToInfo(cr)); + } + @Override public boolean update_compaction_metrics_data(CompactionMetricsDataStruct struct) throws MetaException, TException { return getTxnHandler().updateCompactionMetricsData(CompactionMetricsDataConverter.structToData(struct)); diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java index d3b6091574a2..9089ea364de0 100644 --- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java +++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java @@ -449,6 +449,23 @@ public void markRefused(CompactionInfo info) throws MetaException { info.state = REFUSED_STATE; updateStatus(info); } + + /** + * Set compaction type. + * @param ci compaction job. + * @throws MetaException + */ + @RetrySemantics.CannotRetry + @Override + public void setCompactionType(CompactionInfo ci) throws MetaException { + jdbcResource.execute( + "UPDATE \"COMPACTION_QUEUE\" SET \"CQ_TYPE\" = :type " + + "WHERE \"CQ_ID\" = :id", + new MapSqlParameterSource() + .addValue("type", Character.toString(thriftCompactionType2DbType(ci.type))) + .addValue("id", ci.id), + ParameterizedCommand.EXACTLY_ONE_ROW); + } @Override @RetrySemantics.CannotRetry diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java index 2cce4966cd10..d3401a497c64 100644 --- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java +++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java @@ -132,6 +132,7 @@ enum MUTEX_KEY { char MINOR_TYPE = 'i'; char REBALANCE_TYPE = 'r'; char ABORT_TXN_CLEANUP_TYPE = 'c'; + char SMART_OPTIMIZE_TYPE = '*'; String[] COMPACTION_STATES = new String[] {INITIATED_RESPONSE, WORKING_RESPONSE, CLEANING_RESPONSE, FAILED_RESPONSE, SUCCEEDED_RESPONSE, DID_NOT_INITIATE_RESPONSE, REFUSED_RESPONSE }; @@ -695,6 +696,15 @@ Set findPotentialCompactions(int abortedThreshold, long abortedT @Transactional(POOL_COMPACTOR) void markRefused(CompactionInfo info) throws MetaException; + /** + * Update compaction type. + * @param info compaction job. + * @throws MetaException + */ + @SqlRetry + @Transactional(POOL_COMPACTOR) + void setCompactionType(CompactionInfo info) throws MetaException; + /** * Stores the value of {@link CompactionInfo#retryRetention} and {@link CompactionInfo#errorMessage} fields * of the CompactionInfo either by inserting or updating the fields in the HMS database. diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnUtils.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnUtils.java index f490798be56a..d98afb7376ac 100644 --- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnUtils.java +++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnUtils.java @@ -595,6 +595,8 @@ public static CompactionType dbCompactionType2ThriftType(char dbValue) throws SQ return CompactionType.REBALANCE; case TxnStore.ABORT_TXN_CLEANUP_TYPE: return CompactionType.ABORT_TXN_CLEANUP; + case TxnStore.SMART_OPTIMIZE_TYPE: + return CompactionType.SMART_OPTIMIZE; default: throw new SQLException("Unexpected compaction type " + dbValue); } @@ -610,6 +612,8 @@ public static Character thriftCompactionType2DbType(CompactionType ct) throws Me return TxnStore.REBALANCE_TYPE; case ABORT_TXN_CLEANUP: return TxnStore.ABORT_TXN_CLEANUP_TYPE; + case SMART_OPTIMIZE: + return TxnStore.SMART_OPTIMIZE_TYPE; default: throw new MetaException("Unexpected compaction type " + ct); } diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/entities/CompactionInfo.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/entities/CompactionInfo.java index d0039378ff5e..e018d3cd8455 100644 --- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/entities/CompactionInfo.java +++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/entities/CompactionInfo.java @@ -149,6 +149,10 @@ public boolean isMinorCompaction() { return CompactionType.MINOR == type; } + public boolean isSmartOptimize() { + return CompactionType.SMART_OPTIMIZE == type; + } + public boolean isRebalanceCompaction() { return CompactionType.REBALANCE == type; } @@ -329,6 +333,7 @@ public static CompactionInfoStruct compactionInfoToStruct(CompactionInfo ci) { cr.setHasoldabort(ci.hasOldAbort); cr.setStart(ci.start); cr.setState(Character.toString(ci.state)); + cr.setType(ci.type); cr.setWorkerId(ci.workerId); cr.setHighestWriteId(ci.highestWriteId); cr.setErrorMessage(ci.errorMessage); diff --git a/standalone-metastore/metastore-server/src/main/sql/hive/hive-schema-4.1.0.hive.sql b/standalone-metastore/metastore-server/src/main/sql/hive/hive-schema-4.1.0.hive.sql index 4049ce32d530..0b29816de261 100644 --- a/standalone-metastore/metastore-server/src/main/sql/hive/hive-schema-4.1.0.hive.sql +++ b/standalone-metastore/metastore-server/src/main/sql/hive/hive-schema-4.1.0.hive.sql @@ -1215,7 +1215,7 @@ SELECT CC_DATABASE, CC_TABLE, CC_PARTITION, - CASE WHEN CC_TYPE = 'i' THEN 'minor' WHEN CC_TYPE = 'a' THEN 'major' ELSE 'UNKNOWN' END, + CASE WHEN CC_TYPE = 'i' THEN 'minor' WHEN CC_TYPE = 'a' THEN 'major' WHEN CC_TYPE = '*' THEN 'smart-optimize' ELSE 'UNKNOWN' END, CASE WHEN CC_STATE = 'f' THEN 'failed' WHEN CC_STATE = 's' THEN 'succeeded' WHEN CC_STATE = 'a' THEN 'did not initiate' WHEN CC_STATE = 'c' THEN 'refused' ELSE 'UNKNOWN' END, CASE WHEN CC_WORKER_ID IS NULL THEN cast (null as string) ELSE split(CC_WORKER_ID,"-")[0] END, diff --git a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java index 6d8525e76b10..4c4c71154614 100644 --- a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java +++ b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java @@ -3763,6 +3763,11 @@ public void updateCompactorState(CompactionInfoStruct cr, long txnId) throws TEx client.update_compactor_state(cr, txnId); } + @Override + public void setCompactionType(CompactionInfoStruct cr) throws TException { + client.set_compaction_type(cr); + } + @Override public List findColumnsWithStats(CompactionInfoStruct cr) throws TException { return client.find_columns_with_stats(cr);